(0.1ms) begin transaction Processing by Spree::CheckoutController#update as HTML Parameters: {"state"=>"payment", "order"=>{"payments_attributes"=>[{"payment_method_id"=>"fake_id"}]}} Completed 500 Internal Server Error in 7ms  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by Spree::CheckoutController#update as HTML Parameters: {"state"=>"payment", "order"=>{"payments_attributes"=>[{"payment_method_id"=>"fake_id"}]}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::CheckoutController#update as HTML Parameters: {"state"=>"payment", "order"=>{"payments_attributes"=>[{"payment_method_id"=>"fake_id"}]}} Completed 500 Internal Server Error in 7ms  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'orval_sawayn@kshlerinhomenick.com' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158209698141xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:36:09.185070"], ["email", "orval_sawayn@kshlerinhomenick.com"], ["encrypted_password", "8769a1960c502ed21856cf1576ca0e4977de591b969e0693d49600820b813d603d54fb5e7c684be0f0a4ab1cd0720e715ac91eff7e124943a0f1822866935e96"], ["login", "orval_sawayn@kshlerinhomenick.com"], ["password_salt", "fGUc7LC8RuC-BJMpQ1Jq"], ["updated_at", "2014-11-12 19:36:09.185070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:36:09.256950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:09.266515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/address_requires_state' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:36:09.309726"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:09.309726"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:09.333658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:36:09.335272"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:36:09.335272"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R053347804' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R053347804%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R053347804' LIMIT 1 Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-cdLdCBdqTnaqItH_JkLMw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:36:09.387143"], ["currency", "USD"], ["email", "orval_sawayn@kshlerinhomenick.com"], ["guest_token", "-cdLdCBdqTnaqItH_JkLMw"], ["number", "R053347804"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:36:09.387143"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:36:09.492849"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 19:36:09.492849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 886372' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:09.504418"], ["description", "Minima eos dolorem alias et nostrum aspernatur possimus soluta."], ["name", "TaxCategory - 886372"], ["updated_at", "2014-11-12 19:36:09.504418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:36:09.528443"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:09.528443"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-5224' LIMIT 1 Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/require_master_price' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-5224' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:09.467976"], ["created_at", "2014-11-12 19:36:09.535172"], ["description", "Non quasi qui rerum consequatur autem qui veritatis accusantium. Voluptates consequatur consequuntur qui corporis placeat. Sapiente aspernatur unde iure molestiae.\nDolore tempora ut voluptatem sed eligendi quae rerum provident. Est in quia quia laudantium natus provident ex. Molestiae corporis et ipsum cupiditate qui facilis. Id quia optio hic porro repellendus quos voluptas necessitatibus. Qui dolor tempore numquam praesentium voluptate.\nDolorum et placeat quaerat laborum. Aliquam vero alias nihil corporis possimus quas. Asperiores voluptates beatae ratione libero nulla occaecati excepturi. Error distinctio exercitationem magnam velit. Quas autem reprehenderit nobis autem quos tempora officia.\nEsse explicabo aperiam optio fugiat. Itaque consequuntur rerum quidem natus. Velit dicta labore ratione repellat sed dolor."], ["name", "Product #1 - 5224"], ["shipping_category_id", 1], ["slug", "product-1-5224"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:09.535172"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:36:09.537984"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.545692' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.547175' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.591003' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.592305' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:09.694024"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:09.694024"], ["variant_id", 1]] Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/binary_inventory_cache' LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.696730' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.697360' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.698702' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.699235' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.714929' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.715745' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.716423' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:09.718972"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.720640' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.721255' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.721796' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.722445' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.722928' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:09.740788"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:09.740788"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-5224' AND "spree_products"."id" != 1) LIMIT 1 Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/tax_using_ship_address' LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:09.761386' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:09.778170' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-5143' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-5143' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:09.783195"], ["created_at", "2014-11-12 19:36:09.786892"], ["description", "Labore voluptas blanditiis nihil est quasi sapiente. Omnis consectetur blanditiis incidunt ut qui ut. Earum atque deleniti ullam ut in molestiae id. Praesentium quos quod ullam illum hic temporibus corporis."], ["name", "Product #2 - 5143"], ["shipping_category_id", 1], ["slug", "product-2-5143"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:09.786892"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 19:36:09.789101"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.791030' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.792104' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.793345' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.793876' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:09.796628"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:09.796628"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.797532' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.798036' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.799063' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.799520' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.803303' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.803797' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.804283' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:09.805783"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.806458' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.806899' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.807344' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.807879' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.808302' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:09.812720"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:09.812720"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-5143' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:09.818853' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:09.824549' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-3337' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-3337' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:09.829861"], ["created_at", "2014-11-12 19:36:09.833435"], ["description", "Cumque tempora dolores dignissimos sed molestias. Nostrum maxime debitis impedit inventore nemo. Consequuntur vero voluptatem nesciunt in consequatur voluptas veritatis.\nItaque delectus asperiores nam soluta quod esse ea maiores. Eos expedita molestiae doloremque aut. Fuga officiis quis expedita nam ipsa autem libero vel. Laboriosam quidem deserunt est totam eum fugit dolorum.\nAt rem omnis et corporis minus ea molestias laborum. Incidunt ut optio quam voluptatibus voluptatum est amet inventore. Et fugiat sed ducimus ex repellat eligendi eveniet debitis."], ["name", "Product #3 - 3337"], ["shipping_category_id", 1], ["slug", "product-3-3337"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:09.833435"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:36:09.835434"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.837227' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.838283' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.839470' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.840000' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:09.842787"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:09.842787"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.843684' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.844297' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.845327' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.845786' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.849519' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.850081' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.850601' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:09.852401"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.853221' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.853762' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.854282' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.854945' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.855401' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:09.861675"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:09.861675"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-3337' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:09.868934' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:09.874698' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-1570' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-1570' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:09.880484"], ["created_at", "2014-11-12 19:36:09.884470"], ["description", "Et eius qui molestias aut officiis et. Qui vel sint impedit non. Tenetur similique quis deserunt magni doloremque ut quam odit.\nNostrum rerum reiciendis nisi aut et iste quis. Minima cumque aut sint soluta vitae. A molestias in odit tempore consectetur dolores libero.\nEum architecto adipisci deleniti porro vel tempora. Aut vel quisquam natus quia voluptatem iure. Repellat consequatur repellendus fuga velit dignissimos mollitia. Reprehenderit est voluptate sit illum distinctio. Dolorem tempore provident tenetur quia voluptatem."], ["name", "Product #4 - 1570"], ["shipping_category_id", 1], ["slug", "product-4-1570"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:09.884470"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-11-12 19:36:09.886947"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.889242' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.890812' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.892214' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.892823' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:09.896022"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:09.896022"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.897095' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.897732' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.899310' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.900387' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.905133' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.905759' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.906339' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:09.908157"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.908968' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.909501' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.910035' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.910691' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.911190' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:09.916901"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:09.916901"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-1570' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:09.923254' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:09.929233' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-7364' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-7364' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:09.936270"], ["created_at", "2014-11-12 19:36:09.941488"], ["description", "Libero inventore odio molestiae sit ut in. Voluptas molestias et consequatur doloremque. Et quaerat qui temporibus aperiam accusamus illo in aut. Non aut vero dolor eum ducimus sed dolores qui.\nVoluptatibus error quas repellendus aspernatur. Molestias quisquam quia blanditiis vel. Velit nam et consectetur quidem nisi reiciendis. Quisquam reiciendis fugiat illo repudiandae magnam ut.\nEt quaerat consequatur veritatis facere. Aut doloremque et voluptatem ab. Excepturi eius soluta sunt vel odio molestiae rem. Molestiae possimus quia omnis dolores iusto eligendi voluptate. Ut voluptatem vel neque perspiciatis sequi.\nAnimi sint in iusto id. Atque facilis qui ut alias earum fugit. Aut ipsa sint minus officia autem."], ["name", "Product #5 - 7364"], ["shipping_category_id", 1], ["slug", "product-5-7364"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:09.941488"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:36:09.944030"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.946343' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.947825' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.949159' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.949718' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:09.953019"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:09.953019"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.954129' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.955066' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.956870' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.957471' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.961677' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.962390' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.963008' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:09.964901"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.965644' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.966130' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.966598' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.967138' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:09.967569' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:09.972271"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:09.972271"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-7364' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:09.978411' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:09.983709' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:36:10.000668"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:10.000668"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.004144"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.004144"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.005050' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.006191' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.007396' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.007931' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.010309"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.010309"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.011113' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.012126' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.013182' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.013652' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.015901"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.015901"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.016702' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.017688' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.018742' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.019209' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.021786"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.021786"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.022698' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.023808' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.024893' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.025366' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.027616"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.027616"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.028416' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.029389' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.030466' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.030988' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H63551723832%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:36:10.036713"], ["number", "H63551723832"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:36:10.036713"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.037813' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.2ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:10.045285' WHERE "spree_shipments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.067288"], ["description", "At consequatur eligendi rem aliquid possimus qui vitae."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:36:10.067288"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.070553"], ["updated_at", "2014-11-12 19:36:10.070553"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.3ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:36:10.112550"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:36:10.112550"]] SQL (0.6ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:36:10.113714"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:36:10.113714"]] SQL (0.3ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.126039"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:36:10.126039"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:36:10.148172"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:36:10.148172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.177969"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:10.177969"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.179176' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.179844' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.181365"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:10.181365"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.182025' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.182498' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.183783"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:10.183783"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.184481' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.184927' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.186270"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:10.186270"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.186906' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.187389' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.188704"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:10.188704"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.189357' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.189834' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:36:10.212152' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Quis et magnam ducimus ut fugiat minus.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.228316"], ["description", "Eveniet voluptas distinctio natus amet culpa minus aperiam."], ["name", "Quis et magnam ducimus ut fugiat minus."], ["updated_at", "2014-11-12 19:36:10.228316"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 371259' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.234123"], ["description", "Mollitia adipisci aut voluptas autem nihil."], ["name", "TaxCategory - 371259"], ["updated_at", "2014-11-12 19:36:10.234123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.238944"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:36:10.238944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:36:10.246522"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:36:10.246522"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:36:10.247527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ferne@herzogmiller.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158209705102xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:36:10.265305"], ["email", "ferne@herzogmiller.name"], ["encrypted_password", "9d6f98ef6b362bbe7c18c1a5147d9f3fc127af3c782966ebe8b35e3e06ae8014dcb33f0e274c74960d8ad18e2bcce989ea51beed9c205f178cd63c285687f705"], ["login", "ferne@herzogmiller.name"], ["password_salt", "StkZar-1qsz_8LHcD9VX"], ["updated_at", "2014-11-12 19:36:10.265305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:36:10.268715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:10.270085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:36:10.271468"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:10.271468"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:10.273974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:36:10.275283"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:36:10.275283"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R645331293' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R645331293%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R645331293' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'gGlTDMlIFI_xsd7a2oA7XQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:36:10.281379"], ["currency", "USD"], ["email", "ferne@herzogmiller.name"], ["guest_token", "gGlTDMlIFI_xsd7a2oA7XQ"], ["number", "R645331293"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:36:10.281379"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:36:10.287917"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 19:36:10.287917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 95673' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.290820"], ["description", "Sunt libero aut consequuntur nesciunt repudiandae ut ut quos."], ["name", "TaxCategory - 95673"], ["updated_at", "2014-11-12 19:36:10.290820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:36:10.294249"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:10.294249"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-5418' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-5418' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:10.286852"], ["created_at", "2014-11-12 19:36:10.298223"], ["description", "Sint illo similique dolorem tempore laudantium. Occaecati repellat delectus omnis ea voluptatem. Id ipsa rerum voluptas unde inventore enim assumenda harum."], ["name", "Product #6 - 5418"], ["shipping_category_id", 1], ["slug", "product-6-5418"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.298223"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-11-12 19:36:10.300586"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.302721' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.304087' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.305742' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.306387' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.309646"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:10.309646"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.310667' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.311205' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.312298' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.312788' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.316785' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.317323' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.317865' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.319506"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.320175' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.320643' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.321115' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.321683' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.322117' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:10.326894"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.326894"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-5418' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.332758' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:10.338648' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-2697' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-2697' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:10.344234"], ["created_at", "2014-11-12 19:36:10.348178"], ["description", "Est hic animi expedita dolorem nulla id laborum et. Rerum dolor sit atque voluptates. Sunt hic placeat vel et nostrum deleniti vero. Qui ut voluptatem incidunt perferendis hic enim. Quos voluptatem et expedita ut quia.\nQuibusdam laborum est veniam voluptatum perferendis. Doloremque sequi inventore rerum dignissimos qui. Accusamus eligendi possimus et sit qui illo. Error aspernatur sit dolores consectetur facilis. Aliquid libero provident labore corrupti possimus tenetur velit est."], ["name", "Product #7 - 2697"], ["shipping_category_id", 1], ["slug", "product-7-2697"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.348178"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-11-12 19:36:10.350365"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.352320' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.353400' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.354627' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.355165' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.357978"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:10.357978"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.358948' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.359497' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.360600' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.361079' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.364961' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.365499' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.366028' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.367626"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.368312' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.368794' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.369277' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.369837' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.370286' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:10.374904"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.374904"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-2697' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.380647' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:10.386196' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3540' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3540' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:10.390549"], ["created_at", "2014-11-12 19:36:10.394252"], ["description", "Ipsa hic sed similique natus incidunt reprehenderit. Officiis aut est voluptate corrupti eligendi quia ab. Et eligendi ea sed aperiam voluptatem libero molestiae aut."], ["name", "Product #8 - 3540"], ["shipping_category_id", 1], ["slug", "product-8-3540"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.394252"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-11-12 19:36:10.396360"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.398250' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.399332' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.400535' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.401101' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.403949"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:10.403949"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.404818' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.405338' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.406426' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.406894' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.410761' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.411263' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.411825' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.413403"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.414029' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.414492' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.414963' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.415537' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.415978' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:10.420602"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.420602"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3540' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.426347' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:10.431802' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-2746' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-2746' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:10.436869"], ["created_at", "2014-11-12 19:36:10.440551"], ["description", "Et qui eaque recusandae est beatae praesentium. Aut voluptas illum id explicabo ea ut qui vel. Facere alias minima eum deserunt vel facilis. Architecto occaecati odit molestiae consequuntur omnis dolore perspiciatis praesentium.\nNumquam error veritatis velit sed a ut. Necessitatibus sequi ea minima aut rerum cum repellendus et. Quis accusantium nihil neque qui et soluta aliquam fugiat. Quas aut autem ut atque aut aut."], ["name", "Product #9 - 2746"], ["shipping_category_id", 1], ["slug", "product-9-2746"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.440551"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-11-12 19:36:10.442646"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.444480' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.445582' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.446778' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.447309' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.450304"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:10.450304"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.451208' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.451721' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.452778' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.453272' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.457187' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.457698' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.458215' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.459805"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.460432' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.460894' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.461369' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.461923' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.462364' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:10.466965"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.466965"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-2746' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.472914' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:10.478417' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-7075' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-7075' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:10.484841"], ["created_at", "2014-11-12 19:36:10.488545"], ["description", "Fugiat incidunt molestias qui exercitationem eum rerum voluptatem repellat. Omnis iste error velit quod. Quis maiores ullam odio eum id.\nConsequatur dolores ipsa iste ab. Ex velit laborum et nostrum. Enim dicta dolor autem ad odio repudiandae itaque. Corporis amet qui aperiam sit et et consequatur qui. Quae dolorem voluptate et dolores ut necessitatibus delectus.\nQuis quia porro dolores eum similique consequatur eveniet nulla. Quae ad eligendi voluptatem aut. Incidunt tempore beatae sint saepe maxime porro magnam minima. Temporibus doloribus hic et fugit quo provident.\nDolor voluptatem repudiandae ex pariatur excepturi recusandae illo. Hic voluptas id laudantium officia. Omnis sit repellat quia reprehenderit. Qui qui quia quia dolore dignissimos quidem. Qui quia voluptate illo sed quis."], ["name", "Product #10 - 7075"], ["shipping_category_id", 1], ["slug", "product-10-7075"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.488545"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-11-12 19:36:10.490628"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.492515' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.493590' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.494766' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.495309' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.498153"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:10.498153"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.499033' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.499561' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.500648' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.501124' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.504968' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.505484' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.505998' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.507541"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.508218' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.508709' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.509212' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.509767' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.510223' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:10.514842"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.514842"], ["variant_id", 5]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-7075' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.521565' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:10.527368' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:36:10.532588"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:10.532588"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.536212"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.536212"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.537396' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.538569' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.539877' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.540448' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.542955"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.542955"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.543802' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.544910' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.546049' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.546525' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.549650"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.549650"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.550543' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.551751' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.554708' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.555747' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.560233"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.560233"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.561668' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.563316' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.564932' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.565422' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.567847"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.567847"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.568840' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.570141' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.571452' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.572350' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H14414746710%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:36:10.575047"], ["number", "H14414746710"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:36:10.575047"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.575974' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:10.578993' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.583249"], ["description", "Cumque eius ut ab error hic nisi."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:36:10.583249"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.584823"], ["updated_at", "2014-11-12 19:36:10.584823"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:36:10.594612"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:36:10.594612"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:36:10.595454"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:36:10.595454"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.596812"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:36:10.596812"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:36:10.599672"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:36:10.599672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.603488"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:10.603488"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.604242' WHERE "spree_shipments"."id" = 1 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.604798' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.622908"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:10.622908"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.623723' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.624227' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.625563"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:10.625563"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.626263' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.626751' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.628073"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:10.628073"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.628727' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.629186' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.630495"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:10.630495"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.631152' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.631570' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:36:10.640133' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Qui id unde similique commodi ut eos recusandae natus.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.643500"], ["description", "Repellat incidunt quis consequuntur quibusdam qui quas."], ["name", "Qui id unde similique commodi ut eos recusandae natus."], ["updated_at", "2014-11-12 19:36:10.643500"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 573524' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.646448"], ["description", "Dolorum asperiores quia et in id totam sit hic."], ["name", "TaxCategory - 573524"], ["updated_at", "2014-11-12 19:36:10.646448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.648647"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:36:10.648647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:36:10.650328"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:36:10.650328"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:36:10.651120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'alexander.hegmann@padberg.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158209709523xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:36:10.664528"], ["email", "alexander.hegmann@padberg.us"], ["encrypted_password", "1727d3ce3de7dcf0922e71b4d7671b9187a82db1d081cd25b3344921448c7f686ec105bd112b03d8131bffd062583804b7341b80b61d8ad1ddcb6a17a8c84ddb"], ["login", "alexander.hegmann@padberg.us"], ["password_salt", "tPaGcvYzxqWGnqZ9jKqJ"], ["updated_at", "2014-11-12 19:36:10.664528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:36:10.667951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:10.669439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:36:10.671060"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:10.671060"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:10.673800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:36:10.675147"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:36:10.675147"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R482953742' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R482953742%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R482953742' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bdciSJ7RpEpBYULVBf6XWw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:36:10.681018"], ["currency", "USD"], ["email", "alexander.hegmann@padberg.us"], ["guest_token", "bdciSJ7RpEpBYULVBf6XWw"], ["number", "R482953742"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:36:10.681018"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:36:10.691541"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 19:36:10.691541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 124795' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.694725"], ["description", "Et fuga ut dolor qui distinctio rerum nisi."], ["name", "TaxCategory - 124795"], ["updated_at", "2014-11-12 19:36:10.694725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:36:10.698526"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:10.698526"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-8574' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-8574' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:10.690295"], ["created_at", "2014-11-12 19:36:10.702478"], ["description", "Ad minima necessitatibus temporibus facilis non dolor neque. Et et perferendis eius fuga quidem facere sunt. Nobis et hic assumenda consequatur voluptas quia. Minima quia rerum voluptatem alias.\nAut autem delectus reprehenderit doloribus repellendus ad dignissimos voluptatem. Eius fugit laboriosam tenetur tempore eum odio maiores reprehenderit. Cupiditate inventore laboriosam et consequatur officiis sit aliquam est. Eum fugiat consequatur voluptates et. Esse ullam exercitationem numquam vel quia.\nOptio aut accusantium beatae ullam tempore voluptatem commodi sed. Assumenda ad asperiores nostrum provident maiores. Reiciendis ipsum eveniet hic sed.\nVoluptatibus quo perferendis doloribus necessitatibus officiis iste. Ex modi eligendi consequatur et sequi. Optio dolorem cumque rerum harum et. Sequi ut voluptatem rem veniam quia et animi id. Ut voluptatem itaque odit quibusdam doloremque velit.\nRecusandae sint in sint perspiciatis ex doloremque dolore. Nisi dolor ut sed qui doloribus. Et expedita sed illum minus eveniet eligendi nam. Suscipit et nobis dolores quam et occaecati. Laudantium et velit eligendi ut quod quia aut quasi."], ["name", "Product #11 - 8574"], ["shipping_category_id", 1], ["slug", "product-11-8574"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.702478"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 19:36:10.704832"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.707296' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.708699' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.710119' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.710789' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.713810"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:10.713810"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.714781' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.715327' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.716437' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.716936' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.721120' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.722100' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.722658' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.724343"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.725071' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.725549' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.726035' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.726597' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.727052' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:10.732137"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.732137"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-8574' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.738118' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:10.743887' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-566' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-566' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:10.750779"], ["created_at", "2014-11-12 19:36:10.754964"], ["description", "Deleniti ut qui aut sit ipsam et sed delectus. Necessitatibus ab labore sed ducimus autem rerum. Fugiat commodi perspiciatis rerum corrupti necessitatibus sit. Ea ipsam quaerat nostrum in ut ipsa saepe velit. Blanditiis omnis error libero quam.\nQuam laboriosam aut vero dolores distinctio totam impedit adipisci. Perferendis maxime aut odit est natus modi. Sed et excepturi ex ut pariatur est.\nEa consequatur a et at. Nemo molestiae sequi repellendus quos. Vitae quisquam et voluptatem alias sunt in.\nIn dolor error corporis ut alias sit incidunt. Id praesentium excepturi dolorum distinctio est ut omnis aut. Enim est eos voluptatem tempore. Harum ut dignissimos fugit possimus consequatur repellendus temporibus. Sequi fuga voluptatibus officiis aut magnam qui odit sint.\nIpsa iusto dolorem recusandae et laudantium. Vel esse excepturi beatae labore impedit. Blanditiis est eius aspernatur sit nobis ducimus. Est dignissimos debitis necessitatibus beatae."], ["name", "Product #12 - 566"], ["shipping_category_id", 1], ["slug", "product-12-566"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.754964"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 19:36:10.757193"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.759241' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.760321' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.761569' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.762140' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.765056"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:10.765056"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.766055' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.766574' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.767707' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.768216' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.772079' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.772615' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.773154' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.774813"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.775469' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.775956' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.776438' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.776998' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.777487' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:10.782280"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.782280"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-566' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.788131' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:10.793719' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-5521' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-5521' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:10.800364"], ["created_at", "2014-11-12 19:36:10.804100"], ["description", "Et vitae qui non rem. Est non optio qui qui dolores nisi eum. Est laboriosam autem nisi quibusdam.\nQuia quia velit ut ut. Magnam quis totam et tenetur voluptas aut. Aut eum hic possimus quas soluta dolorem saepe.\nVeniam et sit iste eaque. Soluta distinctio optio enim quae et aut quisquam beatae. Enim sequi unde cupiditate numquam ipsum dolorum tenetur. Ipsam magni sequi occaecati a hic aliquid numquam. Suscipit eos exercitationem nemo et.\nQuia culpa minus praesentium quaerat aperiam velit rerum itaque. Voluptatibus voluptas voluptas consequatur occaecati inventore quam vero. Soluta ut et minus ut. Fugit laboriosam laudantium qui sunt nulla.\nReprehenderit ea libero nesciunt quo officiis voluptatum doloremque quibusdam. Praesentium id corporis iusto consequatur inventore et laudantium. Est officia rerum non aut. Deserunt nisi magnam sint impedit."], ["name", "Product #13 - 5521"], ["shipping_category_id", 1], ["slug", "product-13-5521"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.804100"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-11-12 19:36:10.806365"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.808264' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.809339' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.810536' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.811080' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.813995"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:10.813995"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.814858' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.815371' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.816462' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.816938' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.820775' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.821282' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.821803' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-13' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.823373"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.824037' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.824505' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.824979' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.825537' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.825983' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:10.830723"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.830723"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-5521' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.836439' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:10.841986' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-4214' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-4214' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:10.847375"], ["created_at", "2014-11-12 19:36:10.851057"], ["description", "Est aut deserunt aut animi doloribus qui vero. Deleniti neque quam excepturi quia quas repellat quos dolor. Non reiciendis dolorem laboriosam blanditiis id impedit.\nAliquid explicabo reiciendis ut ex qui ullam. Sit sed sed dolor ex id est ut voluptatem. Non sit exercitationem porro quae dolor. At veritatis ut et soluta quo.\nVoluptatem rerum dicta ut mollitia optio. Voluptatem sequi quo quia et accusamus exercitationem. Quo omnis voluptatum quam ut doloribus. Asperiores ullam non sunt sit vel."], ["name", "Product #14 - 4214"], ["shipping_category_id", 1], ["slug", "product-14-4214"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.851057"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-14"], ["updated_at", "2014-11-12 19:36:10.853190"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.855346' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.856497' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.857721' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.858280' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.861243"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:10.861243"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.862158' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.862717' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.863799' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.864280' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.868144' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.868678' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.869242' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-14' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.870829"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.871482' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.871956' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.872456' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.873055' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.873503' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:10.878208"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.878208"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-4214' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.883943' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:10.889475' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-721' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-721' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:10.895746"], ["created_at", "2014-11-12 19:36:10.899545"], ["description", "Facilis et itaque optio enim soluta repellendus omnis. Voluptatibus delectus a reprehenderit praesentium excepturi recusandae sapiente. Quia perspiciatis sequi laboriosam ipsa fugiat iusto dolores.\nSapiente qui ipsa aut nam tempore porro voluptatibus. Voluptate magni quidem quas vel officia laudantium qui consequatur. Omnis aliquid reprehenderit cupiditate ut illo aut modi.\nInventore sequi labore animi nisi modi. Sit at autem iusto dolorem eaque dicta quis quisquam. In velit quasi ducimus necessitatibus voluptatem quia aut.\nExplicabo occaecati voluptatem non magnam at quibusdam. Expedita eum inventore accusantium earum. Maxime delectus illo voluptatibus et incidunt consequatur beatae hic. Et earum provident sit maxime consequuntur.\nMolestiae fuga nemo occaecati enim voluptas. Asperiores quasi nihil dolorum impedit et. Velit qui ea sed commodi. Sed consequatur laudantium incidunt omnis ut et in."], ["name", "Product #15 - 721"], ["shipping_category_id", 1], ["slug", "product-15-721"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.899545"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-11-12 19:36:10.901741"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.903692' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.904777' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.906017' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.906570' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.909476"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:10.909476"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.910359' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.910885' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.911965' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.912479' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.916368' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.916886' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.917415' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-15' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.918970"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.919668' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.920119' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.920671' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.921235' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.921686' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:10.926366"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:10.926366"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-721' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.932261' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:10.937836' WHERE "spree_line_items"."id" = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:36:10.942814"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:10.942814"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.946353"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.946353"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.947266' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.948397' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.949644' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.950217' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.952712"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.952712"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.953531' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.954591' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.3ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.955713' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.956472' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.959140"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.959140"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.960003' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.961161' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.963552' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.964845' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.969430"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.969430"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.970888' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.972545' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.974107' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.974804' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:10.977253"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:10.977253"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.978208' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.979392' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.980620' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:10.981175' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H07574760788%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:36:10.983807"], ["number", "H07574760788"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:36:10.983807"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.984707' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:10.987762' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.991601"], ["description", "Itaque qui ipsa et eum libero incidunt animi omnis."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:36:10.991601"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:10.993007"], ["updated_at", "2014-11-12 19:36:10.993007"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:36:11.001891"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:36:11.001891"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:36:11.002700"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:36:11.002700"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.004044"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:36:11.004044"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:36:11.006850"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:36:11.006850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.010517"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.010517"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.011305' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.011890' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.013274"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.013274"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.013942' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.014398' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.015712"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.015712"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.016372' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.016839' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.018155"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.018155"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.018803' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.019257' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.020591"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.020591"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.021240' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.021699' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:36:11.030158' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Voluptas similique sint aut occaecati aut et.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.033513"], ["description", "Illum consequatur sed deserunt quos."], ["name", "Voluptas similique sint aut occaecati aut et."], ["updated_at", "2014-11-12 19:36:11.033513"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 284771' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.036532"], ["description", "Animi numquam eum nostrum voluptatem quod sunt voluptatibus et."], ["name", "TaxCategory - 284771"], ["updated_at", "2014-11-12 19:36:11.036532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.038664"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:36:11.038664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:36:11.040303"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:36:11.040303"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:36:11.041101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'pearline_boyer@veumfadel.info' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158209711794xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:36:11.055211"], ["email", "pearline_boyer@veumfadel.info"], ["encrypted_password", "ada54195b062f7c7642d167b75c9806291b58822df18e31543671dfcdc45ee0675c60c8fe99f536e949beca04a4df4ac8c19fad3d9fee94d51c05e84e2277c3d"], ["login", "pearline_boyer@veumfadel.info"], ["password_salt", "Lwp4yaqCrmsxxANa5nMJ"], ["updated_at", "2014-11-12 19:36:11.055211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:36:11.058680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:11.060177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:36:11.061741"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:11.061741"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:11.064515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:36:11.065868"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:36:11.065868"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311930834' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R311930834%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311930834' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'G30D5QMxSu0-JiK9odEYrA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:36:11.083793"], ["currency", "USD"], ["email", "pearline_boyer@veumfadel.info"], ["guest_token", "G30D5QMxSu0-JiK9odEYrA"], ["number", "R311930834"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:36:11.083793"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:36:11.092029"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 19:36:11.092029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 267773' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.095247"], ["description", "Ipsam nihil velit est et doloremque omnis placeat."], ["name", "TaxCategory - 267773"], ["updated_at", "2014-11-12 19:36:11.095247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:36:11.098598"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:11.098598"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-1085' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-1085' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:11.090755"], ["created_at", "2014-11-12 19:36:11.102274"], ["description", "Veniam omnis veritatis est nesciunt rerum. At sunt non quia sed ut maxime iste. Repudiandae est temporibus qui aut aspernatur est adipisci mollitia. Quia eos rerum fugiat ipsa qui. Vel ut distinctio debitis nisi aut laboriosam dolorem.\nDignissimos eaque sed commodi magni totam omnis. Ut officiis perferendis et veniam accusamus. Quia ut ipsum dicta optio rem. Ad ut non autem voluptas eos. Commodi quaerat sequi adipisci alias dolores dignissimos."], ["name", "Product #16 - 1085"], ["shipping_category_id", 1], ["slug", "product-16-1085"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.102274"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-16"], ["updated_at", "2014-11-12 19:36:11.104528"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.106506' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.107622' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.108878' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.109455' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.112326"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:11.112326"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.113343' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.113896' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.115015' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.115539' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.119567' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.120109' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.120636' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-16' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.122258"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.122951' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.123443' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.123929' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.124493' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.124977' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:11.129815"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.129815"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-1085' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.135932' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:11.141669' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-9183' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-9183' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:11.148135"], ["created_at", "2014-11-12 19:36:11.151884"], ["description", "Molestiae a aut fugiat voluptatem iusto. Illo ea suscipit et inventore voluptatem. Repellat deleniti autem culpa enim. Inventore sit voluptas aut tempora sit et quos sit.\nSint fugiat deleniti provident ut sint et ut corrupti. Quis consectetur necessitatibus sed possimus. Vero et est quos unde nam qui.\nTempore delectus optio est qui numquam omnis. Harum minus quae quia non omnis et sunt dolor. Nisi odit inventore eaque expedita minus maxime id.\nDeleniti quo ex vero nulla nam sed labore. Totam debitis qui quo fugit laborum non architecto. Mollitia et voluptatibus aspernatur quidem velit rem quod. Suscipit nulla itaque minus quos earum.\nDolores incidunt repudiandae natus autem at error ducimus vitae. Autem voluptas fuga sed et recusandae aut temporibus. Ut ex aliquid accusamus aliquam quos nemo id repudiandae."], ["name", "Product #17 - 9183"], ["shipping_category_id", 1], ["slug", "product-17-9183"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.151884"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-17"], ["updated_at", "2014-11-12 19:36:11.154015"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.156037' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.157108' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.158392' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.158942' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.161894"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:11.161894"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.163041' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.163582' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.164658' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.165285' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.169257' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.169781' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.170300' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-17' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.171905"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.172563' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.173044' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.173518' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.174094' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.174543' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:11.179397"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.179397"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-9183' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.185162' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:11.190819' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-6681' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-6681' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:11.195665"], ["created_at", "2014-11-12 19:36:11.199387"], ["description", "Doloremque ea voluptas quos ut quo quod occaecati. Enim adipisci pariatur id magnam non velit. Qui sit voluptatum aut veniam sint deleniti qui vel.\nQuaerat voluptatem provident qui occaecati. Eligendi aspernatur eaque reiciendis est alias unde nihil nesciunt. Aperiam consequatur velit reiciendis quia eos."], ["name", "Product #18 - 6681"], ["shipping_category_id", 1], ["slug", "product-18-6681"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.199387"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-18"], ["updated_at", "2014-11-12 19:36:11.201478"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.203378' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.204438' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.205655' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.206185' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.209021"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:11.209021"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.209909' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.210435' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.211518' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.212001' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.215914' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.216394' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.216929' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-18' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.218488"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.219126' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.219594' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.220059' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.220635' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.221076' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:11.225740"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.225740"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-6681' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.231437' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:11.236977' WHERE "spree_line_items"."id" = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-6074' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-6074' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:11.244204"], ["created_at", "2014-11-12 19:36:11.247893"], ["description", "Aliquid dignissimos et ea ipsa qui unde incidunt. Modi debitis neque architecto et quae et fugiat alias. Doloremque et voluptatibus occaecati explicabo deserunt. Repudiandae laborum et ex vero similique aut. Ipsa quas distinctio quis iusto dicta et ab.\nAperiam minus et a sit et. Quasi consectetur voluptate sint veniam sint est assumenda. Ad autem quia sint laborum consectetur praesentium corporis. Ex animi consequatur accusamus ut quia.\nPraesentium ullam nesciunt non at consequuntur adipisci. Aut reiciendis ea cum similique. Inventore et qui error in recusandae. Rerum laboriosam itaque aliquid corrupti et quis tempora qui. Maiores nobis provident aperiam est sed.\nQuae odit perspiciatis autem nostrum repellat. Sint ea quae nostrum nulla consequuntur sint. Consequatur ipsa totam et odit quas. Cupiditate repudiandae velit dolorem voluptatum molestiae.\nDeleniti aliquam dolore velit qui incidunt dolores. Voluptatem provident blanditiis minima ea perferendis temporibus est aut. Veniam cum minus odit tempora est omnis nam ipsam. Earum quia facere ipsa aspernatur quo. Molestiae ducimus ut vitae et voluptate minima alias dolorum."], ["name", "Product #19 - 6074"], ["shipping_category_id", 1], ["slug", "product-19-6074"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.247893"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-19"], ["updated_at", "2014-11-12 19:36:11.250012"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.251874' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.252924' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.254101' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.254633' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.257450"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:11.257450"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.258343' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.258861' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.259922' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.260407' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.264287' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.264801' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.265335' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-19' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.266891"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.267553' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.268020' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.268511' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.269091' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.269552' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:11.274144"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.274144"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-6074' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.279818' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:11.285325' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-6268' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-6268' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:11.290779"], ["created_at", "2014-11-12 19:36:11.294443"], ["description", "Reiciendis odit quis qui maiores occaecati nostrum quas. Et ut illum velit modi quidem. Deserunt voluptatem amet repudiandae enim vel eligendi aut.\nHarum fuga hic aspernatur exercitationem deserunt iusto odio. Tenetur et fugit veritatis aut ut. Sunt quia odio voluptate quia. Eius quae qui ut quis porro. Iusto atque et ea nisi sunt sit velit consequatur.\nOdio ut itaque nemo blanditiis sint et amet. Aliquid consequatur non est inventore voluptatem. Alias quasi dolor fugiat nostrum perferendis iste ea necessitatibus."], ["name", "Product #20 - 6268"], ["shipping_category_id", 1], ["slug", "product-20-6268"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.294443"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-20"], ["updated_at", "2014-11-12 19:36:11.296519"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.298387' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.299467' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.300654' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.301214' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.304006"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:11.304006"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.304879' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.305398' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.306455' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.306985' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.310830' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.311346' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.311852' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-20' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.313411"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.314053' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.314505' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.314996' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.315544' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.315987' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:11.320573"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.320573"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-6268' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.326278' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:11.331717' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:36:11.336570"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:11.336570"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.340009"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:11.340009"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.340882' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.341981' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.343153' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.343679' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.346080"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:11.346080"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.346914' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.347938' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.349043' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.349523' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.351842"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:11.351842"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.352714' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.353720' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.354812' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.355331' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.357918"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:11.357918"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.358860' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.359994' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.361148' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.361628' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.363947"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:11.363947"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.364753' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.365766' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.367507' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.368906' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H53288144554%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:36:11.373968"], ["number", "H53288144554"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:36:11.373968"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.375362' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:11.379686' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.383752"], ["description", "Ab atque et debitis non."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:36:11.383752"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.385296"], ["updated_at", "2014-11-12 19:36:11.385296"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:36:11.394020"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:36:11.394020"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:36:11.394839"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:36:11.394839"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.396172"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:36:11.396172"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:36:11.398971"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:36:11.398971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.402621"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.402621"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.403419' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.404023' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.405410"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.405410"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.406063' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.406515' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.407800"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.407800"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.408455' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.408921' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.410245"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.410245"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.410896' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.411353' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.412644"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.412644"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.413297' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.413744' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:36:11.422153' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Est hic ut blanditiis a omnis.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.425420"], ["description", "Dolorem quae et quos quo consequatur."], ["name", "Est hic ut blanditiis a omnis."], ["updated_at", "2014-11-12 19:36:11.425420"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 43947' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.428425"], ["description", "Saepe dolor aut eius placeat dolorem incidunt."], ["name", "TaxCategory - 43947"], ["updated_at", "2014-11-12 19:36:11.428425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.430666"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:36:11.430666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:36:11.432262"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:36:11.432262"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:36:11.433053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (4.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ulises_fadel@oconnellwuckert.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158209719905xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:36:11.447106"], ["email", "ulises_fadel@oconnellwuckert.ca"], ["encrypted_password", "50757bcb39cb5cf6d6729b4b6b1f91f94e89866ac851eb0be9c6bf1d4d2ef62ab74cfd10f04ce78672bb4a81b0f37c3f0d39d61cfc03881408d216ba053e4396"], ["login", "ulises_fadel@oconnellwuckert.ca"], ["password_salt", "zrjgT_yZhJWfj_gX88qy"], ["updated_at", "2014-11-12 19:36:11.447106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:36:11.450605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:11.452011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:36:11.453525"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:11.453525"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:11.456206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:36:11.457577"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:36:11.457577"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R030074452' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R030074452%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R030074452' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-d3Gg_g2X_xQwlzjG22gWg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:36:11.463777"], ["currency", "USD"], ["email", "ulises_fadel@oconnellwuckert.ca"], ["guest_token", "-d3Gg_g2X_xQwlzjG22gWg"], ["number", "R030074452"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:36:11.463777"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:36:11.471508"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 19:36:11.471508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 208508' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.474410"], ["description", "Perspiciatis est recusandae odit labore et."], ["name", "TaxCategory - 208508"], ["updated_at", "2014-11-12 19:36:11.474410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:36:11.478023"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:11.478023"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-5607' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-5607' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:11.470377"], ["created_at", "2014-11-12 19:36:11.482202"], ["description", "Neque cupiditate non eum consequatur autem. Modi et accusamus magnam porro excepturi quo. Qui aliquam maiores quae saepe architecto aut in.\nUnde reiciendis repellendus qui omnis corrupti qui. Ex aut ut laboriosam consectetur magni. Et earum assumenda et non quod qui accusantium totam. Vitae aut ex aliquid voluptatum aliquam dignissimos placeat ut."], ["name", "Product #21 - 5607"], ["shipping_category_id", 1], ["slug", "product-21-5607"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.482202"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-21"], ["updated_at", "2014-11-12 19:36:11.484619"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.486733' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.487871' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.489172' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.489770' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.492802"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:11.492802"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.493964' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.494757' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.496100' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.496689' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.501031' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.501593' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.502146' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-21' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.503862"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.504584' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.505093' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.505600' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.506205' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.506683' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:11.524192"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.524192"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-5607' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.529859' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:11.535560' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-9776' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-9776' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:11.542257"], ["created_at", "2014-11-12 19:36:11.545978"], ["description", "Quas id dolores qui nostrum. Explicabo ratione pariatur et ex. Dolore sunt optio quia et eaque.\nDolores fugiat pariatur blanditiis cumque. Quas assumenda animi vitae dolores officiis recusandae voluptates laborum. Est magnam et necessitatibus vitae excepturi dolorem totam. Distinctio quidem rerum velit rem doloremque et labore odit. Consequatur quis reiciendis et exercitationem saepe maxime.\nRatione reprehenderit dolores non nisi labore consectetur voluptates. Quod eum temporibus occaecati dolor possimus expedita aut in. Qui voluptas asperiores laboriosam impedit et sint maxime. Ipsa qui fugit facere quisquam quia ut. Nemo consequuntur qui et qui consequatur autem deserunt.\nA quo maiores earum est vero molestias exercitationem id. Aliquid at esse sit eos. Quibusdam sapiente voluptatibus dolores odit quidem esse minima.\nSuscipit et asperiores omnis odio odit voluptatem. Harum dolor numquam non quis aperiam magnam omnis. Quo laudantium quis voluptates totam fugit."], ["name", "Product #22 - 9776"], ["shipping_category_id", 1], ["slug", "product-22-9776"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.545978"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-22"], ["updated_at", "2014-11-12 19:36:11.548162"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.550132' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.551231' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.552448' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.552991' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.555840"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:11.555840"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.556827' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.557360' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.558579' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.559079' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.563330' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.563881' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.564419' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-22' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.566013"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.566689' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.567185' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.567673' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.568250' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.568737' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:11.573725"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.573725"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-9776' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.579528' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:11.585146' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-3989' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-3989' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:11.590608"], ["created_at", "2014-11-12 19:36:11.594282"], ["description", "Perspiciatis suscipit nemo eius recusandae sunt vitae sint. Iste ipsam eveniet ipsa voluptas eaque magnam ex. Dolorem minima accusamus eius maiores tempore cupiditate sit. Reprehenderit laborum porro amet autem voluptas in modi fuga. Ut ea natus ratione possimus.\nEst cumque ut aut doloribus sunt. Sint et qui fugiat tenetur. Voluptatem esse error quia fuga deleniti quo.\nTotam quibusdam pariatur ipsam vel. Neque mollitia praesentium possimus voluptas laudantium. Minus enim est sunt maxime."], ["name", "Product #23 - 3989"], ["shipping_category_id", 1], ["slug", "product-23-3989"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.594282"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-23"], ["updated_at", "2014-11-12 19:36:11.596389"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.598290' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.599361' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.600587' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.601134' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.604054"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:11.604054"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.604928' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.605457' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.606534' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.607014' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.610869' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.611394' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.611896' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-23' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.613492"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.614142' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.614592' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.615085' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.615659' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.616102' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:11.621674"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.621674"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-3989' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.631349' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:11.637460' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-9319' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-9319' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:11.643831"], ["created_at", "2014-11-12 19:36:11.647522"], ["description", "Sit voluptatum cumque eum sapiente enim sed necessitatibus. Rem omnis quo blanditiis rerum explicabo consequatur. Beatae qui cum suscipit iure qui culpa laborum eum. Dignissimos qui repellendus suscipit consequatur commodi nam possimus omnis. Molestiae praesentium rerum at et.\nError in cum ut velit. Sit quia nisi ea ad aut amet repellat reiciendis. Quia ducimus eos et iusto. Unde enim maiores dolorem et ex. Omnis beatae molestiae aut temporibus.\nIste doloribus sint odit iusto sunt molestiae. Sint quia sapiente expedita omnis voluptas laborum consequatur. Nihil quo ea quo nesciunt possimus et.\nBlanditiis ut soluta voluptas corrupti tempora. Asperiores consequatur porro voluptas ipsa dolorem debitis dicta. Harum quaerat autem esse hic error. Ut et officia eius blanditiis sunt."], ["name", "Product #24 - 9319"], ["shipping_category_id", 1], ["slug", "product-24-9319"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.647522"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-24"], ["updated_at", "2014-11-12 19:36:11.649638"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.651502' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.652563' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.653766' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.654331' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.657248"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:11.657248"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.658126' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.658658' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.659705' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.660186' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.664012' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.664516' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.665051' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-24' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.666616"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.667271' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.667730' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.668196' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.668741' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.669210' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:11.673873"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.673873"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-9319' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.679611' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:11.685474' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-9340' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-9340' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:11.689963"], ["created_at", "2014-11-12 19:36:11.693705"], ["description", "Est velit sapiente reprehenderit delectus at. Nobis et rerum fugiat reiciendis iure sit ut saepe. Similique hic nemo veniam fugit quaerat. Aliquid accusamus distinctio beatae tenetur exercitationem velit perferendis."], ["name", "Product #25 - 9340"], ["shipping_category_id", 1], ["slug", "product-25-9340"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.693705"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-25"], ["updated_at", "2014-11-12 19:36:11.695844"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.697717' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.698796' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.700023' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.700575' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.703574"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:11.703574"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.704446' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.704974' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.706040' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.706636' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.710712' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.711250' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.711764' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-25' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.713407"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.714040' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.714530' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.715005' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.715609' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.716065' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:11.721129"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.721129"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-9340' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.726738' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:11.732305' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:36:11.737048"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:11.737048"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.740479"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:11.740479"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.741379' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.742517' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.743712' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.744236' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.746634"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:11.746634"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.747521' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.748547' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.749647' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.750122' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.752445"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:11.752445"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.753302' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.754340' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.755419' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.755967' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.758516"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:11.758516"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.759437' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.760595' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.761949' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.762445' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.764762"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:11.764762"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.765623' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.766657' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.767788' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.768348' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H68322478677%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:36:11.771093"], ["number", "H68322478677"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:36:11.771093"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.772033' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:11.774996' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.778734"], ["description", "Molestias rerum aut in reprehenderit non."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:36:11.778734"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.781946"], ["updated_at", "2014-11-12 19:36:11.781946"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:36:11.794397"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:36:11.794397"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:36:11.795232"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:36:11.795232"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.796545"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:36:11.796545"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:36:11.799374"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:36:11.799374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.802975"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.802975"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.803783' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.804348' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.805744"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.805744"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.806390' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.806872' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.808163"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.808163"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.808813' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.809309' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.810596"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.810596"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.811234' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.811702' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.813029"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:11.813029"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.813711' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.814185' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:36:11.822421' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Illo omnis est officia odio quis.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.825712"], ["description", "Repellat et nostrum voluptatum ad rerum nisi."], ["name", "Illo omnis est officia odio quis."], ["updated_at", "2014-11-12 19:36:11.825712"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 694938' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.828648"], ["description", "Unde consequatur a vitae voluptate enim at hic voluptatibus."], ["name", "TaxCategory - 694938"], ["updated_at", "2014-11-12 19:36:11.828648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.830759"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:36:11.830759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:36:11.832423"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:36:11.832423"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:36:11.833191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sean_donnelly@kleinblanda.ca' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158209719766xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:36:11.847364"], ["email", "sean_donnelly@kleinblanda.ca"], ["encrypted_password", "e2ae3d10f753e43eff3b242f9f5849ad81f021ef8b8c07492655adf150d21536dff67e8eac83f33a575ac2b154f40402d5aaa0dbbf5b1f2ec36adde58da149f9"], ["login", "sean_donnelly@kleinblanda.ca"], ["password_salt", "X9qrH-FiusqfJEbA6oct"], ["updated_at", "2014-11-12 19:36:11.847364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:36:11.854069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:11.856038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:36:11.858303"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:11.858303"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:11.863678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:36:11.866445"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:36:11.866445"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153625823' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R153625823%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153625823' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xYxsbU0n37G_hqAbO1fv8w' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:36:11.874544"], ["currency", "USD"], ["email", "sean_donnelly@kleinblanda.ca"], ["guest_token", "xYxsbU0n37G_hqAbO1fv8w"], ["number", "R153625823"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:36:11.874544"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:36:11.884460"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 19:36:11.884460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 725510' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:11.887288"], ["description", "Tempore alias sint ut minima incidunt et."], ["name", "TaxCategory - 725510"], ["updated_at", "2014-11-12 19:36:11.887288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:36:11.890649"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:11.890649"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-2760' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-2760' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:11.883158"], ["created_at", "2014-11-12 19:36:11.894536"], ["description", "Iste vel libero laboriosam ipsa esse quia eaque. Debitis nostrum sunt ea placeat explicabo neque. Earum harum sit tempore id perspiciatis voluptatum. Exercitationem a et numquam consequuntur animi voluptatem rerum doloremque. Dolores aperiam molestiae consequatur beatae qui voluptatem perferendis expedita.\nRerum ut sit fugiat ut. Sint est nihil similique quia. Ea fugiat veniam dignissimos eius.\nDolores explicabo nihil voluptas sunt. Provident harum itaque nihil consequatur voluptatem modi fugiat autem. Laborum voluptatem autem accusamus ipsum enim veritatis.\nNon qui qui voluptatem impedit optio consequuntur sit. Omnis commodi voluptatibus atque nihil et. Id aperiam accusantium fuga dolorem.\nHic explicabo beatae tempora ipsa tenetur nihil aut animi. Exercitationem omnis iusto qui quasi et. Nisi labore maxime qui expedita nostrum itaque sed quo. In eius facilis quo aut aut. Nihil consequatur dolores minus ut tempore."], ["name", "Product #26 - 2760"], ["shipping_category_id", 1], ["slug", "product-26-2760"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.894536"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-26"], ["updated_at", "2014-11-12 19:36:11.897096"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.899598' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.900847' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.902225' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.902811' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.905829"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:11.905829"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.906832' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.907395' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.908556' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.909050' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.913176' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.913753' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.914364' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-26' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.916256"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.917071' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.917625' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.918187' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.918864' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.919391' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:11.924489"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.924489"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-2760' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.930445' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:11.936213' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-4542' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-4542' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:11.941541"], ["created_at", "2014-11-12 19:36:11.945424"], ["description", "Error est occaecati ducimus explicabo temporibus eum nemo. Non molestiae dolor ea qui. Magnam voluptate cupiditate iure autem expedita.\nSapiente dicta adipisci vitae occaecati. Ea facere laudantium et optio qui et dolor. Qui dolorum velit iure error.\nEum vitae fugiat autem aperiam cumque dolores veritatis. Id ut quisquam ut asperiores sit quae eius enim. Aliquam ipsa voluptas laudantium eaque accusamus."], ["name", "Product #27 - 4542"], ["shipping_category_id", 1], ["slug", "product-27-4542"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.945424"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-27"], ["updated_at", "2014-11-12 19:36:11.947677"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.949720' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.950831' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.952097' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.952669' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:11.967781"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:11.967781"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.968890' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.969506' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.970720' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.971232' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.975156' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.975741' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.976291' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-27' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.977938"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.978609' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.979069' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.979551' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.980121' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:11.980604' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:11.986263"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:11.986263"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-4542' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.996261' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:12.002345' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-227' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-227' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:12.008974"], ["created_at", "2014-11-12 19:36:12.012700"], ["description", "Sunt est nisi qui quae placeat fuga in. Provident consectetur mollitia nemo illo quibusdam. Aut neque similique ab ullam temporibus ducimus minima. Eum aliquam ipsam accusamus vitae rem assumenda. Quasi quis pariatur natus hic vero voluptatem illo.\nNesciunt laudantium totam consectetur tempora explicabo fuga nulla. Tempora voluptatem recusandae doloremque nobis exercitationem distinctio velit. Dolorem velit doloremque explicabo perferendis. Blanditiis ratione fuga modi aspernatur sed.\nEt expedita nulla optio reprehenderit totam molestiae pariatur. Aut eos quasi iure ipsam porro. Deleniti praesentium quaerat occaecati voluptatem nesciunt saepe. Modi reiciendis autem et praesentium aut in. Voluptatibus qui voluptates aut recusandae consequuntur esse corrupti.\nEx et et at facilis libero ut iste. Non maxime aut cupiditate nihil sequi tempore. Suscipit dolores error sed laborum nesciunt aut. Omnis quia et ut consequatur ad libero reiciendis est. Eligendi id saepe fugit laborum laudantium accusantium fugiat."], ["name", "Product #28 - 227"], ["shipping_category_id", 1], ["slug", "product-28-227"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:12.012700"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-28"], ["updated_at", "2014-11-12 19:36:12.014886"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.016776' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.017829' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.019038' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.019565' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:12.022397"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:12.022397"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.023254' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.023780' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.024879' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.025363' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.3ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.029392' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.029929' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.030433' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-28' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:12.032020"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.032636' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.033091' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.033562' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.034116' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.034578' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.4ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:12.039238"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:12.039238"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-227' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.049457' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:12.055977' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-4445' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-4445' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:12.061650"], ["created_at", "2014-11-12 19:36:12.065489"], ["description", "Ut eos dolores et distinctio omnis accusantium aspernatur nesciunt. Nam et est non delectus est architecto. Animi nobis officia hic perferendis numquam molestias dolor. Nisi voluptas harum quia ipsam cum doloremque voluptatem. Deserunt voluptas fuga reiciendis est eveniet voluptas nemo.\nLibero quis quisquam nostrum mollitia quia qui itaque distinctio. Quo at est et consectetur non molestiae. Sed exercitationem quia iure sint laborum a repellendus consequatur. Est aut possimus accusantium sunt adipisci nisi illo pariatur.\nSit beatae rerum non sit. Laboriosam et autem ut cupiditate. Ut iure vel omnis quod tempora."], ["name", "Product #29 - 4445"], ["shipping_category_id", 1], ["slug", "product-29-4445"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:12.065489"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-29"], ["updated_at", "2014-11-12 19:36:12.067619"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.069509' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.070590' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.071791' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.072336' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:12.075212"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:12.075212"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.076124' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.076650' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.077728' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.078235' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.082272' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.082769' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.083312' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-29' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:12.085105"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.085738' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.086199' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.086713' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.087306' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.087783' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:12.092690"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:12.092690"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-4445' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.098511' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:12.103990' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-8' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-8' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:36:12.109997"], ["created_at", "2014-11-12 19:36:12.113759"], ["description", "Voluptatem dolores unde veritatis ea. Itaque dicta ea ex aut nam aut repudiandae iusto. Qui in vero laborum corporis possimus fugiat qui non.\nInventore tempore ullam porro molestiae. Nostrum sunt voluptates sit et omnis. Amet magni nihil odio optio eum architecto ad est. Assumenda illo non aut veniam deserunt.\nPerspiciatis nobis sunt enim pariatur. Adipisci aut veniam eum suscipit. Voluptatibus animi a ut tenetur et voluptas consectetur omnis.\nTempore dignissimos odio ut distinctio iure qui quia. Similique sunt tenetur aut et est doloremque. Et ut dolorem quaerat ab nisi a ex nulla. Amet itaque omnis dignissimos ipsa accusamus sunt culpa ea. Sed ut molestiae est amet reiciendis et."], ["name", "Product #30 - 8"], ["shipping_category_id", 1], ["slug", "product-30-8"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:12.113759"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-30"], ["updated_at", "2014-11-12 19:36:12.115879"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.117768' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.118803' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.119994' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.120546' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:12.123396"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:36:12.123396"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.124259' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.124783' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.125865' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.126342' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.130141' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.130650' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.131172' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-30' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:36:12.132800"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.133440' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.133891' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.134380' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.134950' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.135406' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:36:12.140126"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:36:12.140126"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-8' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.146041' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:12.151582' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:36:12.156440"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:36:12.156440"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:12.159888"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:12.159888"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.160762' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.161884' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.163124' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.163664' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:12.166090"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:12.166090"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.166908' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.167949' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.169026' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.169525' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:12.171845"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:12.171845"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.172684' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.173706' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.174848' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.175370' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:12.178173"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:12.178173"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.179100' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.180270' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.181401' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.181910' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:36:12.184220"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:36:12.184220"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.185046' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.186050' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.187330' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:36:12.187890' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H74652655265%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:36:12.190571"], ["number", "H74652655265"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:36:12.190571"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.191491' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:36:12.194541' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:12.198219"], ["description", "Blanditiis tenetur et omnis corporis sit qui est."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:36:12.198219"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:12.199636"], ["updated_at", "2014-11-12 19:36:12.199636"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:36:12.208347"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:36:12.208347"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:36:12.209142"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:36:12.209142"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:12.210478"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:36:12.210478"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:36:12.213279"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:36:12.213279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:12.216894"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:12.216894"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:12.217678' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.218255' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:12.219646"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:12.219646"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:12.220323' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.220788' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:12.222065"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:12.222065"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:12.222691' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.223152' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:12.224466"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:12.224466"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:12.225100' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.225561' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:36:12.226824"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:36:12.226824"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:12.227491' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.227968' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:36:12.236133' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Recusandae est error praesentium neque.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:12.239318"], ["description", "Asperiores quia et expedita dolore quae."], ["name", "Recusandae est error praesentium neque."], ["updated_at", "2014-11-12 19:36:12.239318"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 73645' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:12.242249"], ["description", "Numquam ab qui aspernatur nulla voluptatem aliquam voluptate."], ["name", "TaxCategory - 73645"], ["updated_at", "2014-11-12 19:36:12.242249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:36:12.244364"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:36:12.244364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:36:12.245903"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:36:12.245903"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:36:12.246689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (5.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mary_toy@crist.us' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158210617101xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:37:41.022455"], ["email", "mary_toy@crist.us"], ["encrypted_password", "b69e377871ccbe6d9fcf9113df5ae9c0dade8ca6758ffb6daf14f8a17d413dff68deff97a4137f4c070b47cb0e98af48fd01b6781e47cb07274fa3e2ecbc112f"], ["login", "mary_toy@crist.us"], ["password_salt", "eByNJipxgyysr6nYAXs3"], ["updated_at", "2014-11-12 19:37:41.022455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:37:41.054774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:41.060944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:37:41.070954"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:41.070954"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:41.095919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:37:41.097353"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:37:41.097353"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R409427301' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R409427301%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R409427301' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'JNTTp8l4Bsp3K1XAp8aK6g' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:37:41.114608"], ["currency", "USD"], ["email", "mary_toy@crist.us"], ["guest_token", "JNTTp8l4Bsp3K1XAp8aK6g"], ["number", "R409427301"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:37:41.114608"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:37:41.167495"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 19:37:41.167495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 752411' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:41.177805"], ["description", "At rerum tenetur quae sit beatae."], ["name", "TaxCategory - 752411"], ["updated_at", "2014-11-12 19:37:41.177805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:37:41.201368"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:41.201368"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-692' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-692' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:41.163553"], ["created_at", "2014-11-12 19:37:41.206434"], ["description", "Error dolores quod dolor voluptates perferendis ad deleniti. Natus numquam nobis possimus laudantium alias dicta ad. Autem ut nobis eveniet error corrupti perspiciatis. Perferendis quia doloremque est laudantium. Hic consectetur beatae temporibus esse.\nQuam libero explicabo culpa at. Voluptatem reiciendis quia minus qui et labore. Eveniet voluptatem aliquid facere facilis quidem earum et. Ut provident est sed eaque quo impedit quae.\nQuia exercitationem inventore itaque aut nesciunt incidunt. Debitis ullam similique rerum unde hic. Voluptatem esse ex ullam beatae voluptas itaque."], ["name", "Product #1 - 692"], ["shipping_category_id", 1], ["slug", "product-1-692"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.206434"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:37:41.209090"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.216449' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.217700' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.231436' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.232626' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:41.339055"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:41.339055"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.340399' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.340980' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.342200' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.342705' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.353283' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.353899' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.354463' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:41.356216"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.357439' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.357928' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.358418' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.358965' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.359468' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:41.382095"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.382095"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-692' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.398412' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:41.409469' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-1936' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-1936' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:41.418786"], ["created_at", "2014-11-12 19:37:41.422801"], ["description", "Et earum ipsum iste recusandae placeat velit quia. Iure sed inventore molestiae fugit rem. Vero deserunt nisi iure eius optio. Aperiam beatae error ipsam eum quam quidem molestiae nihil.\nMolestiae officiis et voluptate aut itaque perferendis. Nihil voluptates debitis earum et ipsam. Dignissimos praesentium ut nostrum repellendus sint minima aut.\nTempore quia vitae officiis ab ratione. Non distinctio nihil quia rerum. Autem doloremque laborum non porro vitae natus autem consequatur."], ["name", "Product #2 - 1936"], ["shipping_category_id", 1], ["slug", "product-2-1936"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.422801"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 19:37:41.424902"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.426762' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.427793' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.428978' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.429504' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:41.432249"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:41.432249"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.433223' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.433757' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.434824' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.435297' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.439151' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.439693' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.440179' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:41.441726"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.442441' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.442922' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.443410' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.443989' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.444464' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:41.449052"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.449052"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-1936' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.458928' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:41.465421' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-1377' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-1377' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:41.472665"], ["created_at", "2014-11-12 19:37:41.476143"], ["description", "Nostrum unde id et aut dolore sit explicabo corporis. Reiciendis nemo dolores delectus quisquam. Voluptas laborum velit ab quaerat. Quia ut minima nemo possimus quod. Quisquam temporibus aperiam dolores est officia.\nVelit dolorem voluptatum rerum reprehenderit dolore. Molestias at itaque consequatur numquam aut ducimus ipsam consequatur. Tenetur non animi eligendi delectus. Porro ea doloribus eos esse rem reprehenderit facilis. Nesciunt excepturi sit commodi ab.\nMagnam error sed ratione sapiente. Est quidem consectetur non eius distinctio. Quo rerum praesentium voluptas nulla sit tenetur. Et velit debitis iste sequi optio dignissimos quo quis. Repellendus maxime quae velit ut quo ut.\nPorro nisi praesentium nulla quae. Tenetur officiis minima quod modi autem repudiandae. Ad mollitia voluptate ducimus nostrum dolorem.\nAsperiores consequuntur magnam blanditiis quis aut nihil quia repellat. Sit nulla dignissimos eum consectetur eum molestiae. Sed in dolor ut fugiat. Repudiandae placeat est illo aspernatur. Qui illo et quos consequatur."], ["name", "Product #3 - 1377"], ["shipping_category_id", 1], ["slug", "product-3-1377"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.476143"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:37:41.478128"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.480164' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.481166' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.482508' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.483035' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:41.485795"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:41.485795"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.486652' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.487142' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.488278' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.488738' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.492492' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.492992' WHERE 1=0 SQL (0.5ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.493474' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:41.495416"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.496054' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.496474' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.496921' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.497437' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.497859' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:41.502594"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.502594"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-1377' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.512371' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:41.518523' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-7913' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-7913' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:41.524758"], ["created_at", "2014-11-12 19:37:41.528250"], ["description", "Illo rerum explicabo et magnam. Voluptatem sint error atque aut et iure accusantium excepturi. Culpa veritatis ad dolores accusamus omnis sed dolores. Accusantium vitae fuga laboriosam eveniet ipsum hic ratione dolorem.\nFacere ad repellendus eius dolorum eligendi. Velit sint nam odit ea. Ipsa non sed tenetur repudiandae ut accusantium. Ut quisquam sequi adipisci sint officiis aliquid.\nQuia eius voluptas fugit natus repudiandae at qui. Accusantium quisquam omnis nesciunt et sequi fuga id quia. Impedit recusandae similique ipsa qui. Similique repellat ut facilis deleniti rerum magni ratione.\nQuis molestias consequuntur quo rerum dignissimos voluptatem rerum dolor. Autem minus eum neque repellendus voluptatem ipsam reprehenderit. Itaque ipsam incidunt eveniet voluptatum inventore dicta. Rerum consectetur eum voluptatem distinctio alias. Non aut sed laborum aut commodi ut."], ["name", "Product #4 - 7913"], ["shipping_category_id", 1], ["slug", "product-4-7913"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.528250"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-11-12 19:37:41.530218"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.532057' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.533091' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.534278' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.534803' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:41.537587"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:41.537587"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.538438' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.538910' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.540067' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.540580' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.544454' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.544947' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.545429' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:41.546895"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.547528' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.547954' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.548406' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.548939' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.549368' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:41.553792"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.553792"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-7913' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.559164' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:41.564367' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-4316' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-4316' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:41.570839"], ["created_at", "2014-11-12 19:37:41.574256"], ["description", "Eaque harum dolores est repellendus ad error quam ut. Voluptatem quis ab nulla consequatur ullam dolorum provident deleniti. Blanditiis rerum voluptatem consequatur ex deleniti quis tenetur.\nTenetur culpa eligendi minus eius. Est inventore qui rerum ut qui dolore est. Commodi nam saepe doloribus consequuntur vel ut.\nRepellendus ratione nisi ut eum. Repellendus quos officiis quia dignissimos recusandae aut numquam voluptatem. Consectetur quas harum dolores saepe.\nEaque qui enim tempora praesentium consequatur voluptatem vel ut. Sapiente ea voluptas suscipit est. Odit quod non est reprehenderit quisquam vitae veritatis. Cupiditate est molestias sit aut ea. Quis dolorum aut enim corrupti velit tempore soluta.\nAut aperiam facilis laborum sunt ex quisquam. Qui repellat veritatis aut tempora praesentium quo voluptas. Quod rerum commodi sunt et doloremque dolores sed. Sequi eveniet ut quaerat quod quam voluptas reiciendis vitae. Reiciendis expedita voluptatem nam dolorum ut labore voluptas aspernatur."], ["name", "Product #5 - 4316"], ["shipping_category_id", 1], ["slug", "product-5-4316"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.574256"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:37:41.576370"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.578182' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.579197' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.580360' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.580871' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:41.583533"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:41.583533"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.584370' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.584841' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.585875' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.586340' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.590005' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.590481' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.590957' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:41.592389"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.593020' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.593435' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.593877' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.594390' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.594818' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:41.599185"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.599185"], ["variant_id", 5]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-4316' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.608463' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:41.615197' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:37:41.636498"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:41.636498"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:41.641049"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:41.641049"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.641931' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.643094' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.644408' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.644999' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:41.647505"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:41.647505"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.648435' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.649415' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.650529' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.650994' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:41.653333"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:41.653333"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.654128' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.655112' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.656183' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.656667' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:41.659139"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:41.659139"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.660019' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.661113' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.662233' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.662694' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:41.664916"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:41.664916"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.665684' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.666628' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.667825' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.668331' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H41664880610%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:37:41.673779"], ["number", "H41664880610"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:37:41.673779"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.674824' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:41.680553' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:41.703949"], ["description", "Error sed quod alias corporis molestiae."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:37:41.703949"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:41.706933"], ["updated_at", "2014-11-12 19:37:41.706933"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:37:41.747443"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:37:41.747443"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:37:41.748536"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:37:41.748536"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:41.750239"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:37:41.750239"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:37:41.763721"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:37:41.763721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:41.792679"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:41.792679"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:41.794045' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.794779' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:41.796389"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:41.796389"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:41.797122' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.797619' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:41.798902"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:41.798902"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:41.799573' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.800025' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:41.801344"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:41.801344"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:41.802015' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.802501' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:41.805152"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:41.805152"], ["variant_id", 5]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:41.806702' WHERE "spree_shipments"."id" = 1 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.807613' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:37:41.826866' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Hic quo pariatur asperiores sed.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:41.844263"], ["description", "Atque id nihil voluptatem magni architecto rem."], ["name", "Hic quo pariatur asperiores sed."], ["updated_at", "2014-11-12 19:37:41.844263"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 281886' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:41.850014"], ["description", "Alias omnis recusandae quas sed voluptatum."], ["name", "TaxCategory - 281886"], ["updated_at", "2014-11-12 19:37:41.850014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:41.854730"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:37:41.854730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:37:41.862552"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:37:41.862552"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:37:41.863558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (5.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'greg@schuster.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158210617892xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:37:41.886884"], ["email", "greg@schuster.com"], ["encrypted_password", "5748f3143e7b9199e79de987c0cc0a941b0177f06ceb982aee15b92ae3046cd5cc14319a5f82d66ca6094090eec85a2dbc293f6a71e0770fe4cc51190128925f"], ["login", "greg@schuster.com"], ["password_salt", "e8sbxP865Qm_-6wEvEKy"], ["updated_at", "2014-11-12 19:37:41.886884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:37:41.890430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:41.891741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:37:41.893234"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:41.893234"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:41.895825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:37:41.897133"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:37:41.897133"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R194511379' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R194511379%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R194511379' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Fpr2NraL8KGXsOvxnXCd7g' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:37:41.903406"], ["currency", "USD"], ["email", "greg@schuster.com"], ["guest_token", "Fpr2NraL8KGXsOvxnXCd7g"], ["number", "R194511379"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:37:41.903406"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:37:41.912539"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 19:37:41.912539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 166378' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:41.915235"], ["description", "Qui voluptatibus eveniet quis fugiat quasi atque error ipsa."], ["name", "TaxCategory - 166378"], ["updated_at", "2014-11-12 19:37:41.915235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:37:41.918880"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:41.918880"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-503' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-503' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:41.911445"], ["created_at", "2014-11-12 19:37:41.922738"], ["description", "Aspernatur eligendi eum nobis nihil distinctio asperiores quae debitis. Maxime eaque nesciunt iure vel nulla. Consequatur cumque facere dolore expedita odio iusto laudantium. Et non culpa sint aliquid omnis perferendis. Corporis totam laboriosam velit iusto saepe ad.\nHarum quam sunt illo provident et alias. Ea ipsam voluptates non illo distinctio culpa et. Consequatur facilis voluptatem molestiae voluptas minima et ipsam non. Esse fugiat vel nobis est sapiente soluta qui vitae.\nVero alias qui dolorem aut nostrum. Accusamus dolores animi voluptate voluptates. Molestias est sed et placeat repellat molestiae dolor. Nihil iure atque repudiandae facere adipisci commodi non dolores.\nExcepturi quis magnam nemo voluptate dignissimos et. Voluptatem nesciunt et non earum dicta repellat inventore aut. Earum est ratione culpa velit et.\nDignissimos molestiae et placeat quod in explicabo illum. Ut consectetur illum molestiae non dignissimos provident impedit. Soluta excepturi optio aperiam cum id aliquid."], ["name", "Product #6 - 503"], ["shipping_category_id", 1], ["slug", "product-6-503"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.922738"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-11-12 19:37:41.924995"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.927009' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.928096' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.929359' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.929937' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:41.933199"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:41.933199"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.934280' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.934859' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.936041' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.936560' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.940527' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.941089' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.941621' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:41.943183"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.943847' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.944319' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.944817' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.945398' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.945935' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:41.950684"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.950684"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-503' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.956625' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:41.962415' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-3176' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-3176' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:41.967950"], ["created_at", "2014-11-12 19:37:41.971556"], ["description", "Aut itaque explicabo quisquam praesentium magnam. Qui nostrum nemo aut quia fugit recusandae quisquam. Mollitia omnis distinctio in consectetur neque voluptates vel.\nNon inventore qui assumenda quisquam et expedita voluptate repudiandae. Sit et optio fuga dolorem sint voluptatibus perspiciatis consectetur. Sit omnis dolorum corporis quia. Eum sed mollitia beatae velit. Fugit ex voluptas et occaecati voluptate officia repudiandae rem.\nVelit provident accusamus dicta neque quo expedita. Pariatur dolorum ab eos nihil. Aut officiis dignissimos dicta aut. Quaerat dignissimos porro autem cum officia sint quas inventore."], ["name", "Product #7 - 3176"], ["shipping_category_id", 1], ["slug", "product-7-3176"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.971556"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-11-12 19:37:41.973581"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.975522' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.976595' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.977790' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.978343' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:41.981161"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:41.981161"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.982056' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.982567' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.983641' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.984137' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.987924' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.988448' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.988974' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:41.990600"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.991292' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.991781' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.992242' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.992823' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:41.993269' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:41.998093"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:41.998093"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-3176' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.003813' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.009351' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-209' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-209' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:42.015595"], ["created_at", "2014-11-12 19:37:42.019194"], ["description", "Minus iusto reiciendis consectetur quisquam itaque beatae ipsa. Dicta adipisci commodi labore voluptatem. Et qui mollitia eos earum. Ut nisi quod quis ea nulla temporibus impedit dolor.\nUt natus sequi debitis eum ducimus consectetur. Vero debitis aut eaque et sapiente. Facilis sed non laborum molestiae amet quo consectetur ad. Quia quo consequatur nemo optio qui illum accusamus veniam. Sed recusandae ad et amet.\nPraesentium illum et quos dolor temporibus. Suscipit ea dicta quis incidunt. Ipsum est qui exercitationem aut itaque reiciendis.\nDignissimos et qui delectus omnis consequatur recusandae. Illo beatae quas facere aut dicta sit eveniet modi. Sed culpa mollitia facere recusandae et quis voluptatem. Atque repellendus maxime blanditiis ad ea magnam. Voluptatem consectetur similique amet veritatis qui."], ["name", "Product #8 - 209"], ["shipping_category_id", 1], ["slug", "product-8-209"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.019194"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-11-12 19:37:42.021236"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.023054' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.024127' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.025390' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.025944' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.028713"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:42.028713"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.029591' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.030108' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.031289' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.031906' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.036485' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.037088' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.037669' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.039419"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.040157' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.040662' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.041187' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.041800' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.042266' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:42.047770"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.047770"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-209' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.053533' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.059592' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-5948' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-5948' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:42.066382"], ["created_at", "2014-11-12 19:37:42.070936"], ["description", "Eum dolor maxime mollitia qui rem. Tempora dignissimos nam tenetur beatae repellat consequuntur nobis autem. Cum non quia dignissimos sed recusandae architecto.\nEum temporibus sed perspiciatis aliquam incidunt. Cum iure quas veniam nihil harum. Sit voluptatem dolorem consequuntur quas culpa maxime est rerum.\nEt alias molestiae doloribus adipisci placeat aliquam et. At illum sed cum repudiandae quia. Quisquam reprehenderit minima eaque eum iure. Soluta quod esse voluptas voluptas natus animi fugiat.\nDolores optio itaque aut dignissimos explicabo quam odio placeat. Eos error adipisci consequatur nam qui quis. Dolor consectetur dolores illo harum distinctio eius modi.\nSed qui recusandae qui rerum a minima. Vero explicabo consequatur libero aut dolorum. Non dignissimos minus eum fuga."], ["name", "Product #9 - 5948"], ["shipping_category_id", 1], ["slug", "product-9-5948"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.070936"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-11-12 19:37:42.073283"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.075554' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.076866' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.079028' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.079743' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.083127"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:42.083127"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.084245' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.084875' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.086213' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.086762' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.091433' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.092130' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.092721' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.094626"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.095389' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.095940' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.096546' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.097215' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.097726' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:42.103309"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.103309"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-5948' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.109733' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.116718' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2914' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2914' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:42.124194"], ["created_at", "2014-11-12 19:37:42.128750"], ["description", "Et aut rerum ducimus harum dolore repellat voluptatem. Eligendi et atque id cumque voluptas. Commodi temporibus et tempore iste repudiandae.\nImpedit exercitationem nobis maxime voluptatem odit architecto. Consequatur unde aliquam officiis laborum voluptate facilis perspiciatis. Eius deleniti iste libero praesentium culpa. Debitis aliquid voluptatum totam commodi qui ut.\nQuae praesentium et ut architecto iusto inventore vel. Dicta vero ut deserunt ipsum consequatur ducimus. Hic sit quis vel adipisci ipsum.\nHarum corporis rerum dolorem tempore necessitatibus. Vel consequatur illo voluptatibus aut incidunt animi amet. Consequuntur fugiat eius nihil nisi consequatur. Eum error tempore esse et."], ["name", "Product #10 - 2914"], ["shipping_category_id", 1], ["slug", "product-10-2914"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.128750"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-11-12 19:37:42.131394"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.134026' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.135903' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.137415' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.138021' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.141203"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:42.141203"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.142236' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.142868' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.144111' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.144590' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.148516' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.149028' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.149533' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.151102"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.151815' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.152364' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.152981' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.153834' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.154412' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:42.160154"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.160154"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2914' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.165485' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.4ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.175530' WHERE "spree_line_items"."id" = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:37:42.181887"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:42.181887"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.185566"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:42.185566"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.186526' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.187698' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.188951' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.189496' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.192115"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:42.192115"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.193003' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.194143' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.195384' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.195902' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.198316"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:42.198316"], ["variant_id", 3]] SQL (0.3ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.199472' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.202470' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.204747' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.205685' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.209690"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:42.209690"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.210970' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.212414' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.213572' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.214063' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.216645"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:42.216645"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.217596' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.218841' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.220160' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.220688' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H26137072564%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:37:42.223417"], ["number", "H26137072564"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:37:42.223417"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.224313' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.227390' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.231127"], ["description", "Ipsum optio quas alias excepturi temporibus."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:37:42.231127"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.3ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.233181"], ["updated_at", "2014-11-12 19:37:42.233181"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:37:42.247452"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:37:42.247452"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:37:42.248253"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:37:42.248253"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.249591"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:37:42.249591"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:37:42.252607"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:37:42.252607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.256406"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:42.256406"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.257298' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.257993' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.259467"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:42.259467"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.260127' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.260608' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.261940"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:42.261940"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.262653' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.263112' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.264418"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:42.264418"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.280231' WHERE "spree_shipments"."id" = 1 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.280835' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.282413"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:42.282413"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.283119' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.283622' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:37:42.292156' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Dolore qui asperiores rerum sit sapiente corporis molestias quis.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.295570"], ["description", "Consequatur ea praesentium impedit voluptatem."], ["name", "Dolore qui asperiores rerum sit sapiente corporis molestias quis."], ["updated_at", "2014-11-12 19:37:42.295570"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 167104' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.298535"], ["description", "In quam consequatur consectetur in laborum nobis."], ["name", "TaxCategory - 167104"], ["updated_at", "2014-11-12 19:37:42.298535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.300655"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:37:42.300655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:37:42.302250"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:37:42.302250"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:37:42.303034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (5.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'leopold_schulist@waelchi.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158210628113xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:37:42.321653"], ["email", "leopold_schulist@waelchi.name"], ["encrypted_password", "f81b411b0a7702c115315ec7852ac7dafb6a15c7136d010fd93f2cbbd2d3f1ce7e86342e289b043a3b78d51148e48e8f87d49fc1ea21e79f386df5939f384a44"], ["login", "leopold_schulist@waelchi.name"], ["password_salt", "EppZzNwrzHhq7Y5xAFQC"], ["updated_at", "2014-11-12 19:37:42.321653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:37:42.325173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:42.326354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:37:42.327796"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:42.327796"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:42.330296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:37:42.331570"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:37:42.331570"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R755844314' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R755844314%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R755844314' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bjf7vRLND4_zJRWD5UlWFg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:37:42.337719"], ["currency", "USD"], ["email", "leopold_schulist@waelchi.name"], ["guest_token", "bjf7vRLND4_zJRWD5UlWFg"], ["number", "R755844314"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:37:42.337719"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:37:42.346122"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 19:37:42.346122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 482117' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.348793"], ["description", "Porro eum fugit sunt et itaque."], ["name", "TaxCategory - 482117"], ["updated_at", "2014-11-12 19:37:42.348793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:37:42.352150"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:42.352150"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-771' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-771' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:42.345032"], ["created_at", "2014-11-12 19:37:42.356124"], ["description", "Nisi ad quae blanditiis est earum qui eos. Molestias illum ducimus aut qui. Distinctio nihil eum eos deserunt magni voluptate et. Aut pariatur maxime tenetur ut blanditiis. Eum aut delectus reprehenderit qui harum temporibus ipsa et.\nRepudiandae vitae soluta esse eveniet ducimus. Dicta magni tenetur necessitatibus non. Facilis iure nesciunt dicta autem repudiandae minus omnis fugit. Et consequatur et ut tempora quae autem repellat. Aut veritatis accusantium expedita vitae nostrum molestiae.\nIusto debitis expedita vel corrupti. Eligendi mollitia deleniti saepe quos aut repudiandae voluptatem. Eos illo nemo ullam facilis nesciunt. Ex architecto assumenda et vel impedit. Id corporis maxime architecto quam dolores rerum nam et."], ["name", "Product #11 - 771"], ["shipping_category_id", 1], ["slug", "product-11-771"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.356124"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 19:37:42.358394"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.360328' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.361477' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.362736' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.363287' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.366145"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:42.366145"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.367072' WHERE "spree_variants"."id" = 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.368599' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.371432' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.372450' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.378960' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.379691' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.380348' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.381995"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.382717' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.383234' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.383689' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.384253' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.384730' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:42.389619"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.389619"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-771' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.395400' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.401089' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-6330' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-6330' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:42.406386"], ["created_at", "2014-11-12 19:37:42.410188"], ["description", "Et dolores enim possimus perferendis quasi eum et nihil. Vel rem aut et sit. Aut quia consequatur natus non voluptatem. Aut enim veritatis a exercitationem et ipsam sunt eos.\nModi quo distinctio corporis placeat voluptas voluptatum amet vel. Et ipsa aliquam consequatur et culpa sunt nihil. Blanditiis accusamus qui consequatur aperiam quod quasi. Dicta deserunt molestias exercitationem enim possimus qui nobis. Velit tempore est odit animi."], ["name", "Product #12 - 6330"], ["shipping_category_id", 1], ["slug", "product-12-6330"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.410188"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 19:37:42.412313"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.414294' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.415344' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.416565' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.417128' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.419922"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:42.419922"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.420814' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.421298' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.422367' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.422847' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.426654' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.427188' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.427684' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.429187"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.429816' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.430286' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.430740' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.431281' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.431750' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:42.436270"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.436270"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-6330' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.441898' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.447478' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-744' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-744' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:42.453404"], ["created_at", "2014-11-12 19:37:42.456974"], ["description", "Inventore sint atque culpa quasi. Praesentium cum consequatur id corporis. Qui numquam expedita est exercitationem ea molestiae perspiciatis quo. Animi pariatur id eaque consequatur aut ipsam.\nUllam aut recusandae aliquid dolore. Harum molestias facilis quos consequatur ut dolorem non dolorem. Et non assumenda temporibus quas dignissimos. Sint quisquam laboriosam reprehenderit eum provident repellat id aut.\nQui et nam quaerat laborum et rerum quas. Sapiente qui atque ea molestiae. Consequatur in nulla eius unde.\nOmnis doloribus eos est consequuntur ut dicta. Sed ducimus qui corporis eligendi omnis quaerat. Cupiditate et molestiae in occaecati exercitationem quas veritatis cumque. Rerum odio ut eum dolor."], ["name", "Product #13 - 744"], ["shipping_category_id", 1], ["slug", "product-13-744"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.456974"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-11-12 19:37:42.459081"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.460909' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.461929' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.463155' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.463667' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.466499"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:42.466499"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.467374' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.467947' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.469047' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.469550' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.473417' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.473935' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.474437' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-13' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.475984"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.476597' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.477037' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.477539' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.478084' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.478574' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:42.483161"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.483161"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-744' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.493056' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.499668' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-8888' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-8888' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:42.504063"], ["created_at", "2014-11-12 19:37:42.507790"], ["description", "Pariatur nostrum eos delectus voluptatem adipisci dolorum nobis repudiandae. Dolore a quia et sed ea iure. Accusantium nulla ab laudantium est quia enim. Itaque modi dolorum est ratione."], ["name", "Product #14 - 8888"], ["shipping_category_id", 1], ["slug", "product-14-8888"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.507790"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-14"], ["updated_at", "2014-11-12 19:37:42.509895"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.511734' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.512766' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.514008' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.514567' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.517343"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:42.517343"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.518233' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.518728' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.519827' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.520300' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.524097' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.524592' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.525092' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-14' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.526623"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.527236' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.527680' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.528148' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.528762' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.529272' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:42.534416"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.534416"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-8888' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.544369' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.550740' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-6852' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-6852' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:42.555835"], ["created_at", "2014-11-12 19:37:42.559445"], ["description", "Est placeat dignissimos non repudiandae et voluptatum et. Ab et dignissimos aut perferendis culpa laborum maxime eveniet. Temporibus ut culpa doloribus corporis. Laborum corporis repellat tempore accusamus. Dolor libero aperiam maiores nulla.\nVitae nulla ut est soluta tenetur. Dolores et optio sunt voluptatibus. Ipsam ad fugiat sit mollitia et vel omnis voluptatibus. Corporis nesciunt velit amet non."], ["name", "Product #15 - 6852"], ["shipping_category_id", 1], ["slug", "product-15-6852"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.559445"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-11-12 19:37:42.561504"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.563356' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.564455' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.565644' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.566158' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.568945"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:42.568945"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.569847' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.570382' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.571497' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.571963' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.575760' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.576260' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.576759' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-15' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.578286"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.578889' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.579403' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.579934' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.580521' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.581028' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:42.585566"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.585566"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-6852' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.595616' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.602162' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:37:42.606925"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:42.606925"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.610842"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:42.610842"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.611840' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.613061' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.614314' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.614843' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.617280"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:42.617280"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.618081' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.619116' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.620275' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.620733' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.623044"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:42.623044"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.623832' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.624844' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.625954' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.626456' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.629071"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:42.629071"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.630018' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.631187' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.632353' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.632834' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.635124"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:42.635124"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.635952' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.636951' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.638069' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.638634' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H35447178078%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:37:42.641351"], ["number", "H35447178078"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:37:42.641351"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.642331' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.645402' WHERE "spree_shipments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.649180"], ["description", "Et animi accusantium reiciendis minima qui beatae."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:37:42.649180"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.650632"], ["updated_at", "2014-11-12 19:37:42.650632"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:37:42.659413"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:37:42.659413"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:37:42.660185"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:37:42.660185"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.661533"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:37:42.661533"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:37:42.664294"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:37:42.664294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.667896"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:42.667896"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.668684' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.669285' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.670660"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:42.670660"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.671313' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.671760' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.673049"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:42.673049"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.673688' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.674135' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.675403"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:42.675403"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.676042' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.676496' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.677840"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:42.677840"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.678488' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.678945' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:37:42.687324' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Ut molestiae perferendis dolorum molestias voluptas doloremque.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.690621"], ["description", "Ut ut sunt veritatis sed expedita magnam."], ["name", "Ut molestiae perferendis dolorum molestias voluptas doloremque."], ["updated_at", "2014-11-12 19:37:42.690621"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 1061' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.693548"], ["description", "Qui quae assumenda nesciunt neque deserunt voluptate fugit quas."], ["name", "TaxCategory - 1061"], ["updated_at", "2014-11-12 19:37:42.693548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.695673"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:37:42.695673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:37:42.697257"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:37:42.697257"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:37:42.698040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jenifer@eichmann.biz' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158210627864xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:37:42.712215"], ["email", "jenifer@eichmann.biz"], ["encrypted_password", "d1d282859f42c232cb4255b130fef052239053188002aa2fc5181d5f0804919807a2ee8c7774c98cba71a73dc90d50b3249c6656b7d675831cc11289ac9d50ad"], ["login", "jenifer@eichmann.biz"], ["password_salt", "mY9q7vSrD_LEQbXDdbHy"], ["updated_at", "2014-11-12 19:37:42.712215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:37:42.718415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:42.720370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:37:42.722505"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:42.722505"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:42.727838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:37:42.730578"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:37:42.730578"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R418101679' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R418101679%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R418101679' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '0NOM63Nu2_VQq_MsA6cYzg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:37:42.738633"], ["currency", "USD"], ["email", "jenifer@eichmann.biz"], ["guest_token", "0NOM63Nu2_VQq_MsA6cYzg"], ["number", "R418101679"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:37:42.738633"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:37:42.758393"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 19:37:42.758393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 902861' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:42.761277"], ["description", "Ut tenetur odio incidunt qui rerum fugit quam."], ["name", "TaxCategory - 902861"], ["updated_at", "2014-11-12 19:37:42.761277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:37:42.764552"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:42.764552"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-9827' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-9827' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:42.756944"], ["created_at", "2014-11-12 19:37:42.768184"], ["description", "Pariatur id et illo perspiciatis quisquam excepturi soluta odio. Est dolor eum voluptas inventore sunt alias architecto et. Deleniti aperiam iure tempore sequi dicta.\nExplicabo et beatae incidunt qui provident sunt rerum. Qui quasi ratione doloribus iusto quis molestiae. Molestias et sit dolorem tenetur sit quia dolor quod. Veniam sint consequatur qui voluptatem aut rerum doloremque vel."], ["name", "Product #16 - 9827"], ["shipping_category_id", 1], ["slug", "product-16-9827"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.768184"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-16"], ["updated_at", "2014-11-12 19:37:42.770442"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.772483' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.773596' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.774870' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.775426' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.778309"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:42.778309"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.779212' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.779719' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.780839' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.781310' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.785309' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.785871' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.786410' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-16' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.788032"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.788725' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.789196' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.789683' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.790262' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.790720' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:42.795650"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.795650"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-9827' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.801533' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.807498' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-8961' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-8961' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:42.813823"], ["created_at", "2014-11-12 19:37:42.817652"], ["description", "Velit voluptatem animi at aut excepturi omnis. Commodi et unde incidunt quae consequatur rerum animi repudiandae. Quod voluptatem laudantium odio dolore dolores deleniti.\nAmet commodi animi est rerum. Eligendi et nihil nam ipsa est earum. Atque aut laboriosam ipsam sed doloribus ut.\nIncidunt sunt ullam sed qui. Sequi id blanditiis beatae corporis libero. Eum reprehenderit iure ea aliquam asperiores animi dolore nesciunt. Dolores voluptatem omnis velit nisi reprehenderit impedit. Officia hic iusto sit non occaecati omnis.\nOdit sequi error tempore numquam tempora. Aut exercitationem molestiae ratione dolorem. Ab quis aliquam quia molestias velit omnis aut. Dolores vel cum nihil velit fugit laudantium voluptas."], ["name", "Product #17 - 8961"], ["shipping_category_id", 1], ["slug", "product-17-8961"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.817652"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-17"], ["updated_at", "2014-11-12 19:37:42.819701"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.821619' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.822669' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.823939' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.824479' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.827308"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:42.827308"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.828203' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.828710' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.829791' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.830266' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.834102' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.834657' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.835213' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-17' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.836743"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.837398' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.837862' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.838325' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.838879' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.839347' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:42.844026"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.844026"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-8961' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.849740' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.855405' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-6641' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-6641' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:42.859891"], ["created_at", "2014-11-12 19:37:42.863560"], ["description", "Assumenda alias id ducimus accusantium blanditiis. Quis perspiciatis repellendus mollitia placeat sapiente. Aliquam non maxime nihil quae omnis et. Non nam aliquid in non voluptatem expedita sint. Sunt architecto expedita corrupti sit nobis dolore ut doloremque."], ["name", "Product #18 - 6641"], ["shipping_category_id", 1], ["slug", "product-18-6641"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.863560"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-18"], ["updated_at", "2014-11-12 19:37:42.865591"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.867429' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.868445' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.869651' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.870174' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.872927"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:42.872927"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.873805' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.874292' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.875373' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.875866' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.879738' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.880236' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.880734' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-18' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.882255"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.882846' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.883283' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.883743' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.884294' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.884763' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:42.889315"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.889315"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-6641' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.897214' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.906178' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-284' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-284' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:42.913377"], ["created_at", "2014-11-12 19:37:42.917173"], ["description", "Repellendus facere perspiciatis facilis voluptas qui porro. Quis qui quia sint id nihil. Sed tempore facere accusantium pariatur quaerat rem quibusdam doloribus.\nNecessitatibus ipsam modi sed iusto ut perferendis. Rerum ut sequi magnam esse voluptas quis quaerat ullam. Sed animi quaerat maxime dolor perspiciatis impedit. Nihil repudiandae commodi ut quos quis et.\nAut porro quaerat cupiditate esse. Possimus recusandae sed itaque atque autem aliquam nemo. Repudiandae aut quisquam dolorem sunt. Voluptates velit aliquid non cum quibusdam sunt. Unde nesciunt ullam autem voluptatibus numquam.\nAd facilis totam asperiores quae. Mollitia nemo atque sunt omnis dolore non qui. Aliquid tempore ut sunt et iste consequatur odit. Et praesentium ut quis hic voluptatem. Voluptatem dolor sunt sed illo nihil.\nUnde perferendis animi ut excepturi tempora aperiam ea blanditiis. Et ipsam quod corporis praesentium cupiditate architecto laudantium molestiae. Quam ipsa dolores delectus velit est exercitationem magnam omnis. Laudantium animi libero incidunt quam asperiores voluptatibus et qui. Quas distinctio sit error architecto."], ["name", "Product #19 - 284"], ["shipping_category_id", 1], ["slug", "product-19-284"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.917173"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-19"], ["updated_at", "2014-11-12 19:37:42.919323"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.921312' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.922445' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.923791' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.924343' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.927238"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:42.927238"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.928127' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.928650' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.929765' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.930247' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.934052' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.934566' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.935068' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-19' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.936613"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.937226' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.937661' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.938120' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.938685' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.939127' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:42.943719"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.943719"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-284' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.949384' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:42.954961' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-5195' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-5195' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:42.959321"], ["created_at", "2014-11-12 19:37:42.962904"], ["description", "Praesentium cum sint et saepe culpa. Molestiae ea et sunt id at doloremque est. Veritatis quas eos unde id. Dignissimos sit inventore consequuntur maxime ullam."], ["name", "Product #20 - 5195"], ["shipping_category_id", 1], ["slug", "product-20-5195"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.962904"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-20"], ["updated_at", "2014-11-12 19:37:42.964936"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.966849' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.967881' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.969088' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.969609' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:42.972401"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:42.972401"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.973265' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.973746' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.974855' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.975321' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.979152' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.979644' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.980163' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-20' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.981665"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.982276' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.982725' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.983184' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.983764' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:42.984214' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:42.988735"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:42.988735"], ["variant_id", 5]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-5195' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.998400' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.005308' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:37:43.010217"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:43.010217"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.013631"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.013631"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.014553' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.015706' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.016943' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.017459' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.019945"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.019945"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.020789' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.021986' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.023073' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.023538' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.025831"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.025831"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.026688' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.027742' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.028852' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.029395' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.032078"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.032078"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.032994' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.034115' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.035249' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.035711' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.037989"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.037989"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.038841' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.039886' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.041372' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.042823' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H32222440007%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:37:43.048041"], ["number", "H32222440007"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:37:43.048041"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.049455' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.053882' WHERE "spree_shipments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.058116"], ["description", "Consequatur adipisci praesentium id ex vel distinctio ratione perferendis."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:37:43.058116"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.059498"], ["updated_at", "2014-11-12 19:37:43.059498"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:37:43.067812"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:37:43.067812"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:37:43.068577"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:37:43.068577"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.069945"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:37:43.069945"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:37:43.072673"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:37:43.072673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.076264"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.076264"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.077012' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.077581' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.078940"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.078940"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.079571' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.080020' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.081273"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.081273"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.081883' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.082317' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.083575"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.083575"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.084197' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.084640' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.085956"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.085956"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.086615' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.087060' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:37:43.095129' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Esse ea voluptates mollitia inventore est.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.098497"], ["description", "Eligendi ut ea molestiae vel."], ["name", "Esse ea voluptates mollitia inventore est."], ["updated_at", "2014-11-12 19:37:43.098497"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 518081' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.101405"], ["description", "Ea explicabo sunt ad rerum esse et."], ["name", "TaxCategory - 518081"], ["updated_at", "2014-11-12 19:37:43.101405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.103548"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:37:43.103548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:37:43.105120"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:37:43.105120"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:37:43.105937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dave_ritchie@breitenbergkohler.us' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158210633275xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:37:43.119503"], ["email", "dave_ritchie@breitenbergkohler.us"], ["encrypted_password", "b77fb2379cc6bd0db4f059d88b5f6517b5058db7f266c609291b589e4c8bc52d8f178de2cc99b9ad39b9dba157a169cbb933b0dcaabbe074f3beace9499c075d"], ["login", "dave_ritchie@breitenbergkohler.us"], ["password_salt", "t1vjggULQyc3qeiQPHse"], ["updated_at", "2014-11-12 19:37:43.119503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:37:43.125791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:43.127915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:37:43.130195"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:43.130195"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:43.133916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:37:43.135401"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:37:43.135401"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R336360709' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R336360709%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R336360709' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hrNucw0oJfhrd18CEf-0tA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:37:43.141273"], ["currency", "USD"], ["email", "dave_ritchie@breitenbergkohler.us"], ["guest_token", "hrNucw0oJfhrd18CEf-0tA"], ["number", "R336360709"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:37:43.141273"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:37:43.150048"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 19:37:43.150048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 282817' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.153061"], ["description", "Nam iste placeat sunt beatae consequatur."], ["name", "TaxCategory - 282817"], ["updated_at", "2014-11-12 19:37:43.153061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:37:43.156831"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:43.156831"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-4121' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-4121' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:43.148970"], ["created_at", "2014-11-12 19:37:43.160860"], ["description", "Quia enim quia est ipsa autem temporibus illo facilis. Rerum quod ab sit qui fuga. Molestiae vel non laudantium ea.\nModi illo vel enim est itaque beatae illum. Autem exercitationem incidunt quibusdam delectus distinctio et molestiae est. Itaque sed iusto eaque reiciendis vero nihil reprehenderit.\nLabore aspernatur molestiae pariatur maiores dolorum. Possimus laborum sint corporis in. Assumenda porro omnis sunt animi ab occaecati et expedita.\nSunt nihil non maiores tempora odit qui laboriosam natus. Totam quia possimus magnam aspernatur repellat ut aliquid autem. Illum magni enim dicta aut. Consequuntur recusandae unde consequatur quidem esse autem. Non quis quidem ab quo maxime ut officia.\nUt iure sit expedita illo enim est debitis in. Consequatur ipsa suscipit a veritatis. Omnis commodi quae qui ut perferendis. Omnis voluptatem expedita nemo id placeat."], ["name", "Product #21 - 4121"], ["shipping_category_id", 1], ["slug", "product-21-4121"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.160860"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-21"], ["updated_at", "2014-11-12 19:37:43.163043"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.165060' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.166213' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.167491' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.168066' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.170969"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:43.170969"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.171953' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.172452' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.173577' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.174083' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.178108' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.178670' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.179181' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-21' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.180766"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.181478' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.181953' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.182466' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.183030' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.183518' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:43.188312"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.188312"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-4121' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.194315' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.217127' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-7113' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-7113' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:43.222131"], ["created_at", "2014-11-12 19:37:43.226039"], ["description", "Soluta et autem dolores qui. Aut et quam incidunt quasi modi. Quos totam et inventore deleniti omnis."], ["name", "Product #22 - 7113"], ["shipping_category_id", 1], ["slug", "product-22-7113"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.226039"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-22"], ["updated_at", "2014-11-12 19:37:43.228153"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.230078' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.231131' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.232351' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.232894' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.235913"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:43.235913"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.236956' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.237510' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.238752' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.239248' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.243102' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.243646' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.244161' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-22' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.245752"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.246427' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.246890' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.247379' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.247939' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.248383' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:43.253004"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.253004"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-7113' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.258693' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.264237' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-6419' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-6419' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:43.268444"], ["created_at", "2014-11-12 19:37:43.272144"], ["description", "Qui nemo unde ad voluptates. Aperiam voluptas ea voluptas deserunt id aliquam. Culpa harum sapiente provident maiores."], ["name", "Product #23 - 6419"], ["shipping_category_id", 1], ["slug", "product-23-6419"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.272144"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-23"], ["updated_at", "2014-11-12 19:37:43.274205"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.276062' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.277096' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.278344' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.278872' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.281720"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:43.281720"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.282672' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.283143' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.284276' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.284781' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.288603' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.289139' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.289648' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-23' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.291160"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.291763' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.292225' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.292721' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.293273' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.293732' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:43.298260"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.298260"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-6419' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.303868' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.309499' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-9659' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-9659' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:43.313717"], ["created_at", "2014-11-12 19:37:43.317276"], ["description", "Et deleniti eius dolorem sunt ut provident velit. Beatae maiores voluptas omnis aperiam et tempora rerum voluptatum. Ipsa vitae excepturi nesciunt quia culpa."], ["name", "Product #24 - 9659"], ["shipping_category_id", 1], ["slug", "product-24-9659"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.317276"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-24"], ["updated_at", "2014-11-12 19:37:43.319302"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.321123' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.322277' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.323491' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.324037' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.326985"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:43.326985"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.327870' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.328409' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.329484' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.329953' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.333705' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.334251' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.334798' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-24' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.336395"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.337035' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.337485' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.337953' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.338499' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.338943' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:43.343493"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.343493"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-9659' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.349177' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.354727' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-275' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-275' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:43.360262"], ["created_at", "2014-11-12 19:37:43.364006"], ["description", "Ipsum numquam hic omnis voluptate blanditiis mollitia. Qui consectetur non dolorum consequuntur. Ex rerum voluptatem expedita dolores aut laudantium vel.\nAutem id dolorem maiores nostrum error. Qui voluptas architecto velit laboriosam in et accusamus iusto. Repudiandae similique delectus eum illum quae voluptas tempora. Eos quidem autem minus quia necessitatibus illo qui. Aut dolorum ut eum similique sapiente voluptates consequatur ea.\nExcepturi rem itaque libero reprehenderit. Quas voluptatem amet qui quia iure est. Recusandae vero animi rerum voluptatem sed sit ut. Sed aut dicta nisi totam."], ["name", "Product #25 - 275"], ["shipping_category_id", 1], ["slug", "product-25-275"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.364006"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-25"], ["updated_at", "2014-11-12 19:37:43.366109"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.367964' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.369057' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.370313' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.370838' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.373775"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:43.373775"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.374663' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.375185' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.376309' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.376805' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.380598' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.381184' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.381724' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-25' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.383327"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.383967' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.384428' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.384917' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.385463' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.385935' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:43.390494"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.390494"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-275' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.396049' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.401631' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:37:43.406406"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:43.406406"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.409791"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.409791"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.410667' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.411742' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.412998' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.413517' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.415918"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.415918"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.416725' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.417789' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.419058' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.419515' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.421809"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.421809"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.422609' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.423592' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.3ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.424977' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.426367' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.431535"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.431535"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.432887' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.434551' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.436301' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.436940' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.439803"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.439803"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.440702' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.441804' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.443057' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.443519' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H83770731866%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:37:43.445997"], ["number", "H83770731866"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:37:43.445997"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.446844' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.449997' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.453956"], ["description", "Adipisci iusto laborum natus ad."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:37:43.453956"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.455302"], ["updated_at", "2014-11-12 19:37:43.455302"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:37:43.463713"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:37:43.463713"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:37:43.464480"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:37:43.464480"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.465812"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:37:43.465812"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:37:43.468574"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:37:43.468574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.472137"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.472137"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.472920' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.473490' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.474868"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.474868"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.475633' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.476147' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.477424"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.477424"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.478066' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.478515' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.479763"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.479763"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.480389' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.480835' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.482113"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.482113"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.482732' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.483178' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:37:43.491366' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'A inventore temporibus soluta quisquam fuga eos repellendus.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.494566"], ["description", "Culpa qui quia nihil amet minima voluptas laudantium eum."], ["name", "A inventore temporibus soluta quisquam fuga eos repellendus."], ["updated_at", "2014-11-12 19:37:43.494566"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 554969' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.497540"], ["description", "Voluptatem est accusamus ipsa corporis."], ["name", "TaxCategory - 554969"], ["updated_at", "2014-11-12 19:37:43.497540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.499890"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:37:43.499890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:37:43.501565"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:37:43.501565"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:37:43.502402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'estelle@marvin.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158210631256xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:37:43.515855"], ["email", "estelle@marvin.us"], ["encrypted_password", "94c89428ab77f21d7f6ba5e8933b87405fa43a2ea8aa332b0ac94f1058be0c7a43722acb4c866966c666ee94f6cc1f8b3855de7d8301addd6aba89f0856db856"], ["login", "estelle@marvin.us"], ["password_salt", "AswMSpgiyueuQaE75pms"], ["updated_at", "2014-11-12 19:37:43.515855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:37:43.519187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:43.520571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:37:43.522009"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:43.522009"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:43.524525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:37:43.525787"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:37:43.525787"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R656829701' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R656829701%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R656829701' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '1FS22QiEmdJNC63f1cy9Ug' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:37:43.531836"], ["currency", "USD"], ["email", "estelle@marvin.us"], ["guest_token", "1FS22QiEmdJNC63f1cy9Ug"], ["number", "R656829701"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:37:43.531836"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:37:43.541137"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 19:37:43.541137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 838525' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.543753"], ["description", "Illum alias laboriosam facere dicta nam inventore et nesciunt."], ["name", "TaxCategory - 838525"], ["updated_at", "2014-11-12 19:37:43.543753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:37:43.546979"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:43.546979"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-1969' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-1969' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:43.540029"], ["created_at", "2014-11-12 19:37:43.550993"], ["description", "Et consequuntur dolor ut quis sapiente. Eum magnam molestias magni et ducimus consequatur. Saepe illum nisi rerum ipsum ex eos.\nAspernatur blanditiis in enim et et qui corrupti. Sapiente quisquam error illo cumque provident qui magnam. Molestias eum sequi aut autem sit eos adipisci animi. Suscipit autem ullam ratione totam. Sed sequi ad voluptate illum.\nQuod similique maxime eveniet ratione sunt consequuntur. Veniam dignissimos cupiditate illum numquam nostrum et sequi. Corrupti harum reprehenderit est animi et ex et. Aliquam sit reprehenderit consequuntur fugit temporibus cum. Natus voluptates nisi nemo quidem odit perspiciatis.\nVero error ut deleniti aut in iste. Animi praesentium at earum ipsum expedita non. Consequatur qui quaerat ad eius rerum. Voluptates aliquid quis veritatis consequatur voluptate minima.\nAutem ullam rerum maiores sint aliquam voluptatem recusandae veniam. Quibusdam dicta fugit non et dolorem eaque quisquam quia. In ut excepturi voluptates debitis dolorem. Quis sed vero et suscipit nihil."], ["name", "Product #26 - 1969"], ["shipping_category_id", 1], ["slug", "product-26-1969"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.550993"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-26"], ["updated_at", "2014-11-12 19:37:43.553306"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.555356' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.556458' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.557852' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.558487' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.561977"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:43.561977"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.563121' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.563677' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.564809' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.565315' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.569385' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.569924' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.570430' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-26' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.572030"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.572712' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.573185' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.573670' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.574235' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.574697' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:43.579491"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.579491"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-1969' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.585367' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.591045' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-8542' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-8542' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:43.595286"], ["created_at", "2014-11-12 19:37:43.598982"], ["description", "Voluptatem illo ipsum officia id vel ad. Excepturi cumque et qui assumenda qui dignissimos voluptates consequuntur. Aut eum dolore ut nihil ut repellendus."], ["name", "Product #27 - 8542"], ["shipping_category_id", 1], ["slug", "product-27-8542"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.598982"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-27"], ["updated_at", "2014-11-12 19:37:43.601084"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.603133' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.604221' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.605462' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.606023' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.608889"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:43.608889"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.609826' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.610320' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.611420' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.611916' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.615777' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.616299' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.616819' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-27' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.618449"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.634199' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.635086' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.635879' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.636886' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.637518' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:43.642745"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.642745"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-8542' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.647962' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.653513' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-1908' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-1908' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:43.660637"], ["created_at", "2014-11-12 19:37:43.664258"], ["description", "Molestias dignissimos ut aperiam inventore ex. Mollitia aut quam et perspiciatis dolores corrupti. Aut praesentium hic quam unde et voluptatibus. Quia aut reprehenderit consequuntur tempore mollitia iste facilis eius.\nQuae neque expedita est saepe dolorem. Corporis eius id consequuntur id. Perferendis sit similique hic atque nesciunt doloremque. Qui at ipsam recusandae amet ut quis facere. Laudantium possimus qui iste accusamus sed ut.\nHarum debitis quaerat vero dolore. Assumenda ducimus fuga explicabo quisquam officiis et. Possimus commodi dolor quia corrupti pariatur quibusdam explicabo. Ea nihil dolores autem est quasi eveniet. Ea id aut suscipit natus inventore repellendus modi.\nVeniam quae vero ullam necessitatibus. Esse non sit vitae sed quas. Nisi voluptas architecto eos labore quasi necessitatibus. Exercitationem occaecati aut fugit sed. Velit suscipit quo ad eius possimus aut et.\nAutem ipsa architecto qui ea. Qui necessitatibus labore ab ut fugiat aut aut. Voluptas pariatur maxime magnam minima sint rerum provident fugiat. Aliquam culpa cum placeat ratione non sint quam."], ["name", "Product #28 - 1908"], ["shipping_category_id", 1], ["slug", "product-28-1908"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.664258"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-28"], ["updated_at", "2014-11-12 19:37:43.666461"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.668383' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.669416' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.670636' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.671166' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.673981"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:43.673981"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.674869' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.675372' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.676464' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.676958' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.680989' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.681534' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.682046' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-28' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.683617"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.684252' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.684687' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.685190' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.685734' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.686213' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:43.690969"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.690969"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-1908' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.696662' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.702625' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-2176' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-2176' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:43.708063"], ["created_at", "2014-11-12 19:37:43.711703"], ["description", "Veniam est et doloribus consequuntur facilis. Omnis nihil labore quaerat voluptates dolore non. Atque esse expedita mollitia nihil ducimus dolor veniam. Porro cumque dignissimos voluptas repellat.\nUllam nobis dolores tenetur architecto iste. Ut eius soluta repellendus placeat maxime adipisci nihil. Voluptatibus optio quae et et. Similique et provident error iste nulla quas.\nDolore ut minus quia molestiae esse vero. Architecto nemo eum reiciendis cum aut dolor ipsum. Eaque maxime voluptatibus natus modi esse quibusdam omnis."], ["name", "Product #29 - 2176"], ["shipping_category_id", 1], ["slug", "product-29-2176"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.711703"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-29"], ["updated_at", "2014-11-12 19:37:43.713755"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.715603' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.716629' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.717846' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.718369' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.721162"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:43.721162"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.722006' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.722513' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.723567' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.724037' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.727851' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.728351' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.728858' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-29' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.730367"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.731001' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.731465' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.731961' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.732550' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.733043' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:43.738148"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.738148"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-2176' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.743836' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.749480' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-7299' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-7299' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:37:43.754611"], ["created_at", "2014-11-12 19:37:43.758612"], ["description", "Dicta aliquid voluptas laudantium nobis. Tempora sequi possimus sint placeat ut. Totam sit dolore hic commodi.\nTemporibus aut aut esse officia voluptas consequatur mollitia consequatur. Possimus ut alias molestiae excepturi omnis et. Omnis voluptas in mollitia nostrum et rerum dolores aut. Magni incidunt nulla tempore voluptatem. Quis unde occaecati consequatur voluptatibus minima adipisci."], ["name", "Product #30 - 7299"], ["shipping_category_id", 1], ["slug", "product-30-7299"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.758612"]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-30"], ["updated_at", "2014-11-12 19:37:43.760823"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.762659' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.763705' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.764957' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.765511' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.768353"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:37:43.768353"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.769213' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.769702' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.770799' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.771258' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.775038' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.775529' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.776038' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-30' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.777541"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.778135' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.778575' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.779047' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.779588' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.780038' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:37:43.784637"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:37:43.784637"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-7299' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.790280' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.795781' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:37:43.800743"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:37:43.800743"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.804264"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.804264"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.805151' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.806249' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.807460' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.808004' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.810340"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.810340"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.811192' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.812194' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.813280' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.813743' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.815996"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.815996"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.816783' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.817765' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.818873' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.820049' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.825193"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.825193"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.826601' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.828210' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.830015' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.830720' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:37:43.833610"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:37:43.833610"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.834521' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.835671' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.836899' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:37:43.837411' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H05806486532%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:37:43.840057"], ["number", "H05806486532"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:37:43.840057"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.840941' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:37:43.843938' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.847701"], ["description", "Tempore adipisci cupiditate est aspernatur eaque consequatur."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:37:43.847701"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.849057"], ["updated_at", "2014-11-12 19:37:43.849057"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:37:43.857825"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:37:43.857825"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:37:43.858602"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:37:43.858602"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.859932"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:37:43.859932"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:37:43.862638"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:37:43.862638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.866187"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.866187"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.866983' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.867563' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.868928"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.868928"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.869581' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.870028' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.871283"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.871283"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.871901' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.872338' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.873579"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.873579"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.874202' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.874652' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.875919"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:37:43.875919"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.876534' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.876981' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:37:43.885097' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Expedita illo sed sed laudantium et reprehenderit quia perferendis.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.888250"], ["description", "Ipsa ut exercitationem aut at enim sit."], ["name", "Expedita illo sed sed laudantium et reprehenderit quia perferendis."], ["updated_at", "2014-11-12 19:37:43.888250"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 404818' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.891271"], ["description", "Iste sint cumque voluptatum molestias."], ["name", "TaxCategory - 404818"], ["updated_at", "2014-11-12 19:37:43.891271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:37:43.893426"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:37:43.893426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:37:43.895004"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:37:43.895004"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:37:43.895781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'angeline@dickens.us' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158213729761xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:42:52.998635"], ["email", "angeline@dickens.us"], ["encrypted_password", "acc4e6e0f8f44d1de74cd3a82b6861c29f5c76c45b0a1004484d278eb805c5ba711f8de7c389b9e0e16d800330c30c9db26fd187e29e3005f0a7833da84bcc78"], ["login", "angeline@dickens.us"], ["password_salt", "vLaver-hnFtL5hRZSyEf"], ["updated_at", "2014-11-12 19:42:52.998635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:42:53.032143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:42:53.038629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:42:53.047139"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:42:53.047139"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:42:53.069179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:42:53.070641"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:42:53.070641"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R467644642' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R467644642%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R467644642' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 't8UwjrBJZVI3g2ASSA-Gxg' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:42:53.088417"], ["currency", "USD"], ["email", "angeline@dickens.us"], ["guest_token", "t8UwjrBJZVI3g2ASSA-Gxg"], ["number", "R467644642"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:42:53.088417"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:42:53.145722"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 19:42:53.145722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 545614' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:42:53.155956"], ["description", "Facilis voluptas qui laudantium sit nam."], ["name", "TaxCategory - 545614"], ["updated_at", "2014-11-12 19:42:53.155956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:42:53.180175"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:42:53.180175"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-6921' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-6921' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:42:53.141675"], ["created_at", "2014-11-12 19:42:53.185509"], ["description", "Tempora doloribus sapiente sunt placeat ab qui voluptatem est. Quos repudiandae eius est excepturi a saepe asperiores beatae. Mollitia voluptatem debitis fugiat omnis vel tempore enim et. Ratione ullam nostrum voluptas dolorem. Tenetur omnis illum repellat soluta qui quia quisquam.\nReprehenderit blanditiis beatae ratione eos suscipit laboriosam vel. Atque qui occaecati aut et omnis harum sunt commodi. Et dicta temporibus omnis voluptatem dolore similique amet et.\nAutem aperiam quas est excepturi animi vel rerum magni. Fugit autem qui necessitatibus repudiandae. Earum dolore impedit amet numquam non magnam illum. Atque non impedit nostrum quos debitis ut. Veritatis saepe ea doloribus perferendis facilis tempora.\nSit consequatur quis repudiandae quod non eos magnam. Enim eveniet doloremque culpa qui iste voluptas deserunt. Eum quae laborum repellat et omnis. Ex exercitationem quas et iste et. Placeat hic aut maxime aut distinctio quia.\nQuo aut ad aliquam quis. Ducimus est aut quae animi atque libero ad. Et voluptas soluta et est dolorem."], ["name", "Product #1 - 6921"], ["shipping_category_id", 1], ["slug", "product-1-6921"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:42:53.185509"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:42:53.188369"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.196035' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.197309' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.211163' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.212352' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:42:53.234186"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:42:53.234186"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.235371' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.235963' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.237083' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.237577' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.247992' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.248595' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.249129' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:42:53.250880"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.252090' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.252573' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.253035' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.253584' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.254023' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:42:53.271260"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:42:53.271260"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-6921' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.345787' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:42:53.356062' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-9881' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-9881' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:42:53.361756"], ["created_at", "2014-11-12 19:42:53.365577"], ["description", "Tempora aliquam delectus error doloribus. Aut nemo debitis voluptas eos sint fuga et. Magnam quisquam ut eius velit. Ut aut quo voluptas aperiam. Explicabo qui incidunt iure ducimus ut iusto qui.\nQuo autem debitis perspiciatis maiores facilis. Illum vero animi qui adipisci ullam. Deleniti et reprehenderit aliquam neque ut qui voluptatem. Assumenda minus eos saepe quasi rem adipisci. At exercitationem possimus eaque nisi ratione."], ["name", "Product #2 - 9881"], ["shipping_category_id", 1], ["slug", "product-2-9881"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:42:53.365577"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 19:42:53.367800"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.369791' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.370938' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.372158' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.372711' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:42:53.375550"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:42:53.375550"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.376497' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.377014' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.378115' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.378596' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.382445' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.383042' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.383559' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:42:53.385139"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.385892' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.386363' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.386825' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.387379' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.387835' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:42:53.392654"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:42:53.392654"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-9881' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.398310' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:42:53.403852' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-2987' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-2987' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:42:53.409290"], ["created_at", "2014-11-12 19:42:53.413032"], ["description", "Est commodi necessitatibus quae adipisci laborum quas vel. Et non doloremque rerum voluptate in atque quisquam. Dolor laudantium omnis eum a ipsa ipsum. Rerum et omnis at quaerat aut aperiam alias voluptatem. Et totam illum nulla nesciunt unde provident.\nQui pariatur non ut quia vel voluptatibus optio tempore. Illo suscipit fugiat sunt id omnis sit. Dolore consequatur repellendus architecto qui et voluptas. Sed illo nihil doloribus deserunt cumque odio soluta occaecati. Laborum enim unde sed excepturi."], ["name", "Product #3 - 2987"], ["shipping_category_id", 1], ["slug", "product-3-2987"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:42:53.413032"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:42:53.415153"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.417087' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.418160' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.419399' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.419959' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:42:53.422721"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:42:53.422721"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.423593' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.424126' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.425175' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.425647' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.429425' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.429929' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.430474' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:42:53.432109"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.432767' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.433249' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.433718' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.434251' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.434723' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:42:53.439352"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:42:53.439352"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-2987' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.449398' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:42:53.456109' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-963' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-963' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:42:53.462357"], ["created_at", "2014-11-12 19:42:53.466017"], ["description", "Tenetur dignissimos facere voluptate suscipit voluptatem quaerat est. Explicabo qui rerum at accusamus vel et minima. Sed occaecati tempore enim sed iste. Et sit quia voluptatem id.\nLibero nobis temporibus quibusdam culpa optio iste. Atque sed ut recusandae temporibus aliquam sint voluptatem. Voluptatem eligendi ratione occaecati natus eveniet.\nEt culpa itaque alias qui voluptas at doloremque. Amet vitae accusantium laboriosam vel. Et laborum rerum voluptas perferendis dolorem vitae quidem. Quas et consectetur aspernatur quidem impedit veritatis.\nQuo ut repudiandae maxime et modi consectetur voluptatibus. Consectetur quas similique nihil debitis ut reiciendis. Quibusdam aut deserunt aut et deleniti neque. Occaecati quae eius ea itaque quia. Dicta atque aut cupiditate nemo et veritatis."], ["name", "Product #4 - 963"], ["shipping_category_id", 1], ["slug", "product-4-963"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:42:53.466017"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-11-12 19:42:53.468185"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.470022' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.471064' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.472291' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.472828' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:42:53.475641"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:42:53.475641"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.476487' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.477004' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.478058' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.478567' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.482349' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.482879' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.483457' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:42:53.485056"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.485722' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.486184' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.486650' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.487205' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.487656' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:42:53.492447"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:42:53.492447"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-963' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.498122' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:42:53.503679' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-5431' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-5431' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:42:53.508516"], ["created_at", "2014-11-12 19:42:53.512434"], ["description", "Sit enim quos sed dolorem. Eligendi dolores quis sed facilis fugit ab error. Minus deleniti magnam possimus exercitationem ratione optio iusto rem. Repellendus vel esse quas eligendi qui sint perferendis. Quaerat ut harum tempora repudiandae consequatur consequuntur."], ["name", "Product #5 - 5431"], ["shipping_category_id", 1], ["slug", "product-5-5431"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:42:53.512434"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:42:53.514617"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.516530' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.517587' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.518840' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.519376' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:42:53.522561"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:42:53.522561"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.523527' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.524081' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.525215' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.525726' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.529687' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.530295' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.530860' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:42:53.532507"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.533225' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.533740' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.534231' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.534821' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.535308' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:42:53.540065"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:42:53.540065"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-5431' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.545738' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:42:53.551163' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:42:53.568341"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:42:53.568341"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:42:53.571902"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:42:53.571902"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.572867' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.574117' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.575440' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.576068' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:42:53.578545"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:42:53.578545"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.579356' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.580394' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.581485' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.581994' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:42:53.584324"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:42:53.584324"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.585154' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.586155' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.587282' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.587810' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:42:53.590390"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:42:53.590390"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.591307' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.592467' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.593785' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.594408' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:42:53.596862"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:42:53.596862"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.597746' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.598807' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.600052' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:42:53.600592' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H84513617467%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:42:53.606279"], ["number", "H84513617467"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:42:53.606279"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.607447' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:42:53.613367' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:42:53.631240"], ["description", "Et provident nisi deserunt dicta alias voluptas et."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:42:53.631240"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:42:53.634278"], ["updated_at", "2014-11-12 19:42:53.634278"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:42:53.676715"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:42:53.676715"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:42:53.677786"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:42:53.677786"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:42:53.679508"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:42:53.679508"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:42:53.693719"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:42:53.693719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:42:53.708708"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:42:53.708708"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:42:53.709854' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.710514' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:42:53.712077"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:42:53.712077"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:42:53.712722' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.713171' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:42:53.714463"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:42:53.714463"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:42:53.715113' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.715551' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:42:53.716883"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:42:53.716883"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:42:53.717530' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.717982' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:42:53.719329"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:42:53.719329"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:42:53.719981' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.720451' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:42:53.736380' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Nesciunt enim consectetur rem sed dolore optio ut non.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:42:53.753671"], ["description", "Et facilis veniam et ratione recusandae corporis eum."], ["name", "Nesciunt enim consectetur rem sed dolore optio ut non."], ["updated_at", "2014-11-12 19:42:53.753671"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 29773' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:42:53.759507"], ["description", "Modi maiores repellendus in vitae."], ["name", "TaxCategory - 29773"], ["updated_at", "2014-11-12 19:42:53.759507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:42:53.784154"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:42:53.784154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:42:53.792223"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:42:53.792223"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:42:53.793210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (4.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'martina@weissnat.name' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158214596111xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:44:19.062314"], ["email", "martina@weissnat.name"], ["encrypted_password", "3692fdf36c31409145db04a70b8c8cfa9deee2a8a68bebd759eb89407c596bfb80f869e906982a1d78bebc09b3eeaedbaf58b7e8a03ea93ece2eaa8dbae9ad09"], ["login", "martina@weissnat.name"], ["password_salt", "f9c6eJoE1YpZfsnAFVKs"], ["updated_at", "2014-11-12 19:44:19.062314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:44:19.095587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:44:19.105222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:44:19.119913"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:44:19.119913"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:44:19.140816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:44:19.142282"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:44:19.142282"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311621360' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R311621360%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311621360' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CGTWfPsow3D0l4jdrCG9IA' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:44:19.159456"], ["currency", "USD"], ["email", "martina@weissnat.name"], ["guest_token", "CGTWfPsow3D0l4jdrCG9IA"], ["number", "R311621360"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:44:19.159456"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:44:19.213129"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 19:44:19.213129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 152856' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:44:19.222853"], ["description", "Reprehenderit dolores repellat labore ea consequatur ut."], ["name", "TaxCategory - 152856"], ["updated_at", "2014-11-12 19:44:19.222853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:44:19.245561"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:44:19.245561"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-5646' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-5646' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:44:19.209231"], ["created_at", "2014-11-12 19:44:19.250573"], ["description", "Asperiores voluptas eum enim neque consectetur laudantium sed. Laborum nam mollitia nobis enim et repellendus eum et. Qui deleniti praesentium culpa esse eos et cumque. Sit quos aut ad autem incidunt ut.\nEos unde illum et dicta nemo aut. Dicta rerum at ut qui recusandae. Illum perferendis et adipisci sint ut veniam aut.\nInventore eaque aut rerum voluptas vero iure. Dignissimos et quo eveniet pariatur molestias accusamus. Eligendi quaerat totam et provident incidunt. Autem omnis nemo itaque consequatur veniam id eum. Vitae dolor ut voluptatum enim sed.\nEt ea alias iste non dolores accusantium. Distinctio odit quas aut omnis libero consequatur. Voluptas qui doloremque modi eligendi.\nNon ducimus ut eos ad. Et est nostrum sed ad. Rerum laboriosam nostrum dicta id non qui reprehenderit. Quia officiis esse veritatis sequi aut mollitia quo ullam. Quasi placeat ut quis dicta quis perferendis."], ["name", "Product #1 - 5646"], ["shipping_category_id", 1], ["slug", "product-1-5646"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:44:19.250573"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:44:19.253268"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.260547' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.261814' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.275042' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.276214' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:44:19.297689"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:44:19.297689"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.298891' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.299465' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.300636' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.301126' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.311503' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.312093' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.312629' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:44:19.314329"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.315456' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.315919' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.316383' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.316922' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.317348' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:44:19.334399"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:44:19.334399"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-5646' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.402129' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:44:19.412183' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-2461' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-2461' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:44:19.416845"], ["created_at", "2014-11-12 19:44:19.420693"], ["description", "Non aut eveniet quas magni consequatur ut alias illo. Laborum mollitia eligendi sint corporis voluptatem aperiam. Non et minima ea sunt. Repellendus omnis nihil iusto molestiae laboriosam ut eos corporis."], ["name", "Product #2 - 2461"], ["shipping_category_id", 1], ["slug", "product-2-2461"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:44:19.420693"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 19:44:19.422862"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.424786' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.425861' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.427109' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.427657' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:44:19.430645"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:44:19.430645"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.431595' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.432132' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.433258' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.433759' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.437643' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.438181' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.438708' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:44:19.440269"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.440968' WHERE "spree_products"."id" = 2 SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.441416' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.441873' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.442414' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.442843' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:44:19.447492"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:44:19.447492"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-2461' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.453160' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:44:19.458698' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-2020' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-2020' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:44:19.465381"], ["created_at", "2014-11-12 19:44:19.469011"], ["description", "Quo est perspiciatis provident qui. Sed maxime dolor aut praesentium eius. Aspernatur voluptas quibusdam aut omnis. Iure officia exercitationem rem aliquam consequatur dignissimos. Ut necessitatibus repellat quasi adipisci facilis voluptas.\nEarum non animi magni deleniti debitis. Assumenda et beatae ut soluta eum aspernatur. Et beatae eaque mollitia reiciendis.\nIpsam reprehenderit ipsa labore eum aliquam consectetur. Ipsum perferendis est dolor dolorum. Iste eveniet ea recusandae sed suscipit vitae est. Praesentium rerum aut delectus quasi provident.\nNon nam dicta ullam minus voluptatem. Hic veritatis eveniet dicta unde quo libero adipisci. Tempora a et dolores ipsum autem nisi culpa dolorum.\nVoluptatum error nostrum id ea. Earum veritatis tempore quidem est. Nobis ex sequi rerum aperiam totam. Rerum libero voluptates tempore occaecati molestiae."], ["name", "Product #3 - 2020"], ["shipping_category_id", 1], ["slug", "product-3-2020"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:44:19.469011"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:44:19.471187"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.473143' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.474200' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.475393' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.475923' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:44:19.478785"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:44:19.478785"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.479649' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.480120' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.481169' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.481666' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.485415' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.485967' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.486521' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:44:19.488177"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.488824' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.489259' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.489729' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.490268' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.490728' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:44:19.495296"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:44:19.495296"], ["variant_id", 3]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-2020' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.505391' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:44:19.512189' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-8390' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-8390' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:44:19.516704"], ["created_at", "2014-11-12 19:44:19.520499"], ["description", "Doloremque est at sapiente modi qui dolor voluptas. In voluptatibus ducimus animi dolores corporis ab. Aliquid distinctio nam quisquam cupiditate. Pariatur modi doloremque asperiores quia possimus voluptate blanditiis voluptatem."], ["name", "Product #4 - 8390"], ["shipping_category_id", 1], ["slug", "product-4-8390"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:44:19.520499"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-11-12 19:44:19.522603"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.524494' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.525573' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.526890' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.527429' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:44:19.530280"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:44:19.530280"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.531193' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.531681' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.532816' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.533309' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.537219' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.537752' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.538317' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:44:19.539922"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.540572' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.541034' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.541507' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.542068' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.542528' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:44:19.547228"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:44:19.547228"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-8390' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.557359' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:44:19.564015' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-9574' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-9574' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:44:19.568335"], ["created_at", "2014-11-12 19:44:19.572060"], ["description", "Qui eos eum consectetur ipsam molestiae aliquam molestiae in. Laboriosam dicta accusamus consequuntur expedita nobis quos. Ex tempora tempore nemo pariatur harum ipsum voluptates et."], ["name", "Product #5 - 9574"], ["shipping_category_id", 1], ["slug", "product-5-9574"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:44:19.572060"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:44:19.574162"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.576132' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.577174' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.578425' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.578998' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:44:19.581899"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:44:19.581899"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.582781' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.583261' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.584367' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.584931' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.588974' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.589498' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.590067' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:44:19.591684"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.592362' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.592797' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.593278' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.593852' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.594338' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:44:19.599044"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:44:19.599044"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-9574' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.604836' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:44:19.610454' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:44:19.627982"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:44:19.627982"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:44:19.631633"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:44:19.631633"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.632579' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.633780' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.635059' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.635653' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:44:19.638204"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:44:19.638204"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.639061' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.640119' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.641313' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.641796' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:44:19.644253"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:44:19.644253"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.645060' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.646099' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.647323' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.647893' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:44:19.650621"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:44:19.650621"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.651552' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.652733' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.653874' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.654348' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:44:19.656733"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:44:19.656733"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.657525' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.658560' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.659839' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:44:19.660379' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H10414544541%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:44:19.666295"], ["number", "H10414544541"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:44:19.666295"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.667481' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:44:19.673445' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:44:19.691560"], ["description", "Molestias a pariatur quis animi eum et."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:44:19.691560"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:44:19.694602"], ["updated_at", "2014-11-12 19:44:19.694602"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:44:19.736888"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:44:19.736888"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:44:19.737959"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:44:19.737959"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:44:19.739711"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:44:19.739711"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:44:19.753762"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:44:19.753762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:44:19.767792"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:44:19.767792"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:44:19.768923' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.769609' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:44:19.771081"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:44:19.771081"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:44:19.771745' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.772241' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:44:19.773554"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:44:19.773554"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:44:19.774182' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.774641' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:44:19.775966"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:44:19.775966"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:44:19.776613' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.777073' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:44:19.778396"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:44:19.778396"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:44:19.779055' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.779512' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:44:19.795323' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Ex culpa dolores in exercitationem vel et earum.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:44:19.812468"], ["description", "Aliquam qui velit quam pariatur quas tempora deleniti vitae."], ["name", "Ex culpa dolores in exercitationem vel et earum."], ["updated_at", "2014-11-12 19:44:19.812468"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 94325' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:44:19.823504"], ["description", "Animi est sit iure qui voluptate enim et nobis."], ["name", "TaxCategory - 94325"], ["updated_at", "2014-11-12 19:44:19.823504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:44:19.844804"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:44:19.844804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:44:19.852384"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:44:19.852384"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:44:19.853362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (5.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'giovanny@oberbrunnerdubuque.co.uk' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158215443921xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:45:44.949299"], ["email", "giovanny@oberbrunnerdubuque.co.uk"], ["encrypted_password", "fd35bc9b639fe008e9f94829f859dd92c0583eb327254910a241c353b6cd7bd276c1084d8524c07cbbe2ece3da3591499855f12815c2f8f71149196e40a67d00"], ["login", "giovanny@oberbrunnerdubuque.co.uk"], ["password_salt", "aCN5QnyExPXyrqz73rp4"], ["updated_at", "2014-11-12 19:45:44.949299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:45:44.983272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:45:44.992997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:45:45.007633"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:45:45.007633"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:45:45.028636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:45:45.030083"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:45:45.030083"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R642854022' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R642854022%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R642854022' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LLf4aOZoO52tVnJwcSnVdQ' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:45:45.047163"], ["currency", "USD"], ["email", "giovanny@oberbrunnerdubuque.co.uk"], ["guest_token", "LLf4aOZoO52tVnJwcSnVdQ"], ["number", "R642854022"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:45:45.047163"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:45:45.100669"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 19:45:45.100669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 744730' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:45:45.110523"], ["description", "Hic sapiente quas repellendus ut et eum."], ["name", "TaxCategory - 744730"], ["updated_at", "2014-11-12 19:45:45.110523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:45:45.134161"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:45:45.134161"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-5111' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-5111' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:45:45.096746"], ["created_at", "2014-11-12 19:45:45.139179"], ["description", "Laboriosam tempore dolor numquam aliquid et sit. Totam autem quis omnis iste sit tenetur officiis. Quos nulla perspiciatis odio dolores sed praesentium.\nAut qui pariatur doloremque ea. Est quibusdam illum qui harum magnam. Quo doloremque nesciunt id qui totam. Mollitia dolorem commodi quo placeat itaque. Saepe omnis enim et ducimus rem.\nProvident et delectus nesciunt et. Fugit non ipsa suscipit omnis et pariatur. Nostrum dolor sed in officiis quo laborum sint.\nConsequatur mollitia animi debitis rem at quia id adipisci. Sapiente voluptatum dolor consectetur quos eveniet qui voluptatem. Magni adipisci non rem qui non ratione possimus minus.\nAsperiores quibusdam ratione ipsum facere aut rerum. Eligendi molestiae voluptatem nam asperiores consequuntur qui commodi sit. Officiis quod molestias nihil veniam tempore saepe nostrum maxime."], ["name", "Product #1 - 5111"], ["shipping_category_id", 1], ["slug", "product-1-5111"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:45:45.139179"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:45:45.141815"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.149221' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.150489' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.164045' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.165210' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:45:45.186416"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:45:45.186416"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.187619' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.188203' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.189318' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.189805' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.199862' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.200468' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.200989' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:45:45.202627"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.203769' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.204227' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.204677' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.205201' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.205621' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:45:45.223124"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:45:45.223124"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-5111' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.239669' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:45:45.301425' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-745' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-745' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:45:45.308284"], ["created_at", "2014-11-12 19:45:45.312124"], ["description", "Quidem dolorem ducimus explicabo natus. Quidem sunt nihil temporibus esse eum dolores. Eius modi sapiente rerum laborum fuga necessitatibus voluptatem consectetur. Aliquam et dignissimos ducimus eius et consequatur at.\nSoluta blanditiis quibusdam quae velit a. Omnis voluptas delectus deserunt voluptatum. Eligendi dolor reprehenderit veritatis amet sunt.\nEt perferendis quo deleniti voluptatem labore veniam ratione tempore. Fugiat deleniti rerum id et. Sed maxime perspiciatis cupiditate inventore porro.\nSed fugit ducimus recusandae est. Magni ut natus voluptatibus eligendi ut. Rerum voluptatibus id nemo ut accusamus illo distinctio. Numquam non esse praesentium deserunt et dolor voluptatum quae.\nVero eum et excepturi blanditiis porro commodi quas. Doloremque porro id aperiam omnis consequatur. Temporibus illo at est ipsum voluptatem id assumenda. Non molestiae cumque dolores quasi velit. Non nihil voluptatibus provident itaque blanditiis sit consequatur cum."], ["name", "Product #2 - 745"], ["shipping_category_id", 1], ["slug", "product-2-745"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:45:45.312124"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 19:45:45.314173"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.316080' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.317134' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.318409' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.318962' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:45:45.321796"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:45:45.321796"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.322811' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.323314' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.324395' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.324862' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.328753' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.329302' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.329828' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:45:45.331338"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.332034' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.332485' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.332932' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.333455' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.333876' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:45:45.338330"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:45:45.338330"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-745' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.343879' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:45:45.349306' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5094' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5094' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:45:45.353964"], ["created_at", "2014-11-12 19:45:45.357584"], ["description", "Porro atque voluptatem aut dolorum veritatis. Ipsum fugit eum alias ut repudiandae optio. Dolor accusantium dolorum provident quisquam quia aperiam.\nRepellat minus vel qui ipsum excepturi et. Eum quidem officiis non omnis aut. Non enim aut reprehenderit aperiam est libero in."], ["name", "Product #3 - 5094"], ["shipping_category_id", 1], ["slug", "product-3-5094"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:45:45.357584"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:45:45.359654"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.361476' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.362502' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.363665' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.364178' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:45:45.366956"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:45:45.366956"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.367909' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.368383' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.369448' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.369912' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.373613' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.374117' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.374611' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:45:45.376148"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.376880' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.377350' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.377782' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.378319' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.378742' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:45:45.383237"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:45:45.383237"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5094' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.388791' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:45:45.394250' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-3380' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-3380' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:45:45.398529"], ["created_at", "2014-11-12 19:45:45.402060"], ["description", "Voluptas molestiae debitis animi nisi perferendis. Non quas ipsa dolor voluptas velit aspernatur aliquid. Quisquam cumque aut voluptates sapiente ea perferendis. Animi sed cupiditate repellendus adipisci optio maiores qui."], ["name", "Product #4 - 3380"], ["shipping_category_id", 1], ["slug", "product-4-3380"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:45:45.402060"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-11-12 19:45:45.404112"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.405967' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.406962' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.408169' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.408720' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:45:45.411484"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:45:45.411484"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.412381' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.412913' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.413998' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.414465' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.418279' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.418792' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.419278' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:45:45.420879"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.421549' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.421999' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.422446' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.423026' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.423500' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:45:45.428340"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:45:45.428340"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-3380' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.433871' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:45:45.439556' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-4697' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-4697' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:45:45.445032"], ["created_at", "2014-11-12 19:45:45.448608"], ["description", "Sunt velit accusamus quaerat dignissimos vel vel debitis omnis. Alias dolorum sint cumque voluptas doloribus vel. Repellat excepturi maiores incidunt eos. Sequi rerum nemo ut rerum quo fuga animi. Dolorem ut eligendi quia nihil suscipit saepe deleniti.\nAutem facilis porro perspiciatis sed aut quos atque odio. Nihil nemo id impedit quos consequatur iusto cumque et. Officiis vero magnam sit distinctio.\nReprehenderit molestiae optio possimus est velit commodi officiis. Quos fugit cupiditate laudantium quia culpa itaque atque. Reprehenderit eveniet architecto in consequuntur iste qui dolorum. Eaque ea velit ut optio omnis nemo amet."], ["name", "Product #5 - 4697"], ["shipping_category_id", 1], ["slug", "product-5-4697"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:45:45.448608"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:45:45.450668"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.452802' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.453863' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.455213' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.455814' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:45:45.458951"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:45:45.458951"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.459830' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.460359' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.461393' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.462118' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.465905' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.466416' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.466919' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:45:45.468442"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.469105' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.469569' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.470024' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.470556' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.470983' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:45:45.476113"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:45:45.476113"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-4697' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.481949' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:45:45.487581' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:45:45.504520"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:45:45.504520"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:45:45.507987"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:45:45.507987"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.508880' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.510011' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.511223' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.511788' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:45:45.514165"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:45:45.514165"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.515013' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.515985' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.517083' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.517544' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:45:45.519848"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:45:45.519848"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.520692' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.521716' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.523946' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.525323' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:45:45.529958"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:45:45.529958"], ["variant_id", 4]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.531332' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.533023' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.534600' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.535291' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:45:45.537882"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:45:45.537882"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.538812' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.539964' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.541232' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:45:45.541713' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H57016857231%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:45:45.547478"], ["number", "H57016857231"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:45:45.547478"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.548599' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:45:45.554642' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:45:45.573379"], ["description", "Et molestiae nihil quis eum."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:45:45.573379"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:45:45.576618"], ["updated_at", "2014-11-12 19:45:45.576618"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:45:45.634963"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:45:45.634963"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:45:45.636112"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:45:45.636112"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:45:45.637895"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:45:45.637895"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:45:45.651901"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:45:45.651901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:45:45.665918"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:45:45.665918"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:45:45.667037' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.667678' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:45:45.669101"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:45:45.669101"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:45:45.669738' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.670171' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:45:45.671531"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:45:45.671531"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:45:45.672151' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.672589' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:45:45.673852"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:45:45.673852"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:45:45.674472' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.674890' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:45:45.676173"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:45:45.676173"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:45:45.676838' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.677271' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:45:45.692926' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Impedit aut quisquam vel temporibus dolores est laboriosam.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:45:45.715711"], ["description", "Natus laborum recusandae reiciendis itaque quod ipsam et."], ["name", "Impedit aut quisquam vel temporibus dolores est laboriosam."], ["updated_at", "2014-11-12 19:45:45.715711"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 505893' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:45:45.721747"], ["description", "Officiis voluptates dolor et sint."], ["name", "TaxCategory - 505893"], ["updated_at", "2014-11-12 19:45:45.721747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:45:45.726618"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:45:45.726618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:45:45.749091"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:45:45.749091"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:45:45.750199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (5.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'watson@ortiz.co.uk' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158215599451xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:45:59.793728"], ["email", "watson@ortiz.co.uk"], ["encrypted_password", "428fc2da97aa49559dc060e1958c4608384c3651149cdfe2eff1a6ea61b7cb546582a9a1bbbb82d9054b776992b8abc25c56a8cc8a07a0a952875ef3ddd014d2"], ["login", "watson@ortiz.co.uk"], ["password_salt", "7AXPankhnHQK-LyjXyTg"], ["updated_at", "2014-11-12 19:45:59.793728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:45:59.826380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:45:59.836654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:45:59.851477"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:45:59.851477"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:45:59.872382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:45:59.873858"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:45:59.873858"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R236110227' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R236110227%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R236110227' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QR1jd9m-9WVTnJ5EQU5d6A' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:45:59.890888"], ["currency", "USD"], ["email", "watson@ortiz.co.uk"], ["guest_token", "QR1jd9m-9WVTnJ5EQU5d6A"], ["number", "R236110227"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:45:59.890888"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:45:59.946253"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 19:45:59.946253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 920721' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:45:59.956951"], ["description", "Voluptatem consequatur non expedita labore necessitatibus vel at."], ["name", "TaxCategory - 920721"], ["updated_at", "2014-11-12 19:45:59.956951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:45:59.980736"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:45:59.980736"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-9762' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-9762' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:45:59.939486"], ["created_at", "2014-11-12 19:45:59.986110"], ["description", "Quam dolorem aut sed reiciendis repellat et occaecati. Unde autem perferendis sint sunt ullam molestiae et voluptatibus. A et id quisquam est doloribus delectus itaque aperiam. Rerum neque ullam esse consequuntur."], ["name", "Product #1 - 9762"], ["shipping_category_id", 1], ["slug", "product-1-9762"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:45:59.986110"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:45:59.988817"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:59.996333' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:59.997621' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.017346' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.018618' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.040059"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:00.040059"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.041317' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.041922' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.043073' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.043555' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.054324' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.054937' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.055535' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.057305"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.058580' WHERE "spree_products"."id" = 1 SQL (0.3ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.059141' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.059897' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.060466' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.060898' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:00.077789"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.077789"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-9762' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.093485' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:00.154083' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-1833' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-1833' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:00.160350"], ["created_at", "2014-11-12 19:46:00.164224"], ["description", "Esse quasi architecto veniam qui consectetur. Ea nisi suscipit assumenda quod. Quo et est a perferendis. Praesentium aut aliquam inventore tempora.\nSequi sit suscipit provident distinctio quisquam autem et ad. Quis vel rerum dolorem autem non. Fuga est voluptate omnis velit rerum aut.\nEt totam labore aut nulla et natus qui. Quae facere quidem voluptate vel asperiores. Dolores totam non maxime porro quibusdam tempore voluptatem est. Non voluptas dolor fuga consequuntur architecto ut est sed.\nUllam ex possimus et temporibus. Consequatur mollitia qui blanditiis est commodi dignissimos. Magnam tempore ad mollitia necessitatibus enim in aut sed."], ["name", "Product #2 - 1833"], ["shipping_category_id", 1], ["slug", "product-2-1833"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.164224"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 19:46:00.166473"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.168414' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.169519' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.170800' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.171374' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.174334"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:00.174334"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.175268' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.175769' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.176919' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.177397' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.181361' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.181918' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.182445' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.183993"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.184708' WHERE "spree_products"."id" = 2 SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.185183' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.185655' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.186200' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.186626' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:00.191138"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.191138"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-1833' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.196825' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:00.202467' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-2781' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-2781' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:00.207580"], ["created_at", "2014-11-12 19:46:00.211234"], ["description", "Commodi harum unde beatae libero cum nesciunt. Pariatur iusto aut doloribus dolorem ratione. Atque et inventore quis distinctio deleniti. Dolorem quia delectus vero enim illum aut.\nNemo magnam tenetur quia et quo. Dolores ducimus itaque est facilis animi doloribus modi nulla. Quo odit harum doloribus est quis quia aut est."], ["name", "Product #3 - 2781"], ["shipping_category_id", 1], ["slug", "product-3-2781"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.211234"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:46:00.213731"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.215674' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.216765' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.217969' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.218509' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.221619"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:00.221619"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.222483' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.223001' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.224215' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.224714' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.228621' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.229112' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.229661' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.231192"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.231860' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.232375' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.232814' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.233420' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.233953' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:00.238545"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.238545"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-2781' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.244322' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:00.249935' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-4327' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-4327' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:00.256049"], ["created_at", "2014-11-12 19:46:00.259727"], ["description", "Quas cum inventore similique architecto. Officiis ea ut et non doloremque fugit nam eos. Est consectetur id ex veritatis accusamus. Aut saepe libero repudiandae sed.\nSed perferendis neque voluptatem consectetur quo perspiciatis. Dolorem pariatur harum sunt atque vel ut voluptas. Id possimus reprehenderit dolore ut molestias voluptatibus.\nVel quia aut eligendi omnis. Veniam sit ipsum ut voluptas omnis reprehenderit. Nam nisi mollitia qui suscipit vitae id quaerat. Ad magni dicta alias nemo.\nLaudantium aut ut eveniet quod consequuntur harum animi nisi. Consectetur nesciunt itaque facere vel. Omnis voluptatibus quibusdam iusto et fugit pariatur dolore eligendi. Doloremque et ad ipsa ipsam fugiat id debitis."], ["name", "Product #4 - 4327"], ["shipping_category_id", 1], ["slug", "product-4-4327"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.259727"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-11-12 19:46:00.261916"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.263833' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.264997' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.266187' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.266720' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.269681"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:00.269681"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.270636' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.271120' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.272268' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.272755' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.276752' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.277299' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.277818' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.279383"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.280081' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.280547' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.281023' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.281566' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.282052' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:00.286819"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.286819"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-4327' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.292702' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:00.298382' WHERE "spree_line_items"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-4337' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-4337' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:00.303028"], ["created_at", "2014-11-12 19:46:00.306736"], ["description", "Aliquam qui quia voluptatem architecto sit. Sed officia qui inventore impedit culpa. Placeat rem quia enim amet. Minima qui debitis in hic enim quia voluptates nulla. Quia expedita nihil id ut."], ["name", "Product #5 - 4337"], ["shipping_category_id", 1], ["slug", "product-5-4337"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.306736"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:46:00.308915"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.310805' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.311995' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.313278' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.313857' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.316794"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:00.316794"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.317751' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.318260' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.319348' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.319873' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.2ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.324028' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.324582' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.325098' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.326670"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.327346' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.327814' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.328335' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.328892' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.329339' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:00.333995"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.333995"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-4337' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.339709' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:00.345441' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:46:00.363393"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:00.363393"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.366984"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:00.366984"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.367963' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.369160' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.370453' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.371048' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.373542"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:00.373542"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.374461' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.375586' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.376841' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.377373' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.380004"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:00.380004"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.380938' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.381999' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.383288' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.383832' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.386582"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:00.386582"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.387456' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.388554' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.389689' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.390209' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.392578"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:00.392578"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.393449' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.394507' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.395722' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.396320' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H75612360782%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:00.402420"], ["number", "H75612360782"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:46:00.402420"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.403572' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:00.410239' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.429660"], ["description", "Qui voluptate dolores ut porro ut incidunt doloribus."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:46:00.429660"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.432725"], ["updated_at", "2014-11-12 19:46:00.432725"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:46:00.478724"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:00.478724"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:46:00.479841"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:46:00.479841"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.481606"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:00.481606"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:00.496246"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:00.496246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.510935"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:00.510935"], ["variant_id", 1]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.512239' WHERE "spree_shipments"."id" = 1 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.513760' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.516874"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:00.516874"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.518158' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.518908' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.521049"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:00.521049"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.522071' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.522719' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.524461"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:00.524461"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.525118' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.525556' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.526842"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:00.526842"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.527489' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.527986' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:46:00.544309' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Accusamus velit nulla perspiciatis hic.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.561266"], ["description", "Dolor adipisci et iure voluptatem."], ["name", "Accusamus velit nulla perspiciatis hic."], ["updated_at", "2014-11-12 19:46:00.561266"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 238467' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.567359"], ["description", "Eum vero ut voluptates ullam."], ["name", "TaxCategory - 238467"], ["updated_at", "2014-11-12 19:46:00.567359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.572467"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:46:00.572467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:46:00.595397"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:46:00.595397"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:46:00.596931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (5.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'karlee_heaney@dickinsonroob.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158215607352xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:46:00.620156"], ["email", "karlee_heaney@dickinsonroob.com"], ["encrypted_password", "70f72a23a20ff139b1efcb9a0819a9bd74506c8f09de6c14f61a6f6528add76ca3042a4b373771477f3b07815f1880eb43096416a855e27b11ade85ad19366f1"], ["login", "karlee_heaney@dickinsonroob.com"], ["password_salt", "ePyWT6jXZNk2EkDUCK_f"], ["updated_at", "2014-11-12 19:46:00.620156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:46:00.623525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:00.624765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:46:00.626145"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:00.626145"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:00.628569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:46:00.629831"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:46:00.629831"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R065925489' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R065925489%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R065925489' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'k4fzLqoeKYizNNsfPJdjkg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:46:00.635809"], ["currency", "USD"], ["email", "karlee_heaney@dickinsonroob.com"], ["guest_token", "k4fzLqoeKYizNNsfPJdjkg"], ["number", "R065925489"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:46:00.635809"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:46:00.643439"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 19:46:00.643439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 1771' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.646039"], ["description", "Sit vero voluptatibus aliquid sed."], ["name", "TaxCategory - 1771"], ["updated_at", "2014-11-12 19:46:00.646039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:46:00.649276"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:00.649276"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9536' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9536' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:00.642398"], ["created_at", "2014-11-12 19:46:00.653218"], ["description", "Eveniet ullam et dolorem ut in sint. Deserunt tempore et aut ut. Officiis ex natus quia rerum est repellendus incidunt. Repudiandae et blanditiis laborum cumque. Dolores iusto autem odio beatae.\nOccaecati repellendus nemo ipsum vel. Assumenda beatae illum qui eos qui rerum neque molestiae. Rerum autem nostrum a iure fugit. Expedita vitae porro dolorem amet molestiae odit. Consequatur similique in iste quidem nihil optio doloremque itaque."], ["name", "Product #6 - 9536"], ["shipping_category_id", 1], ["slug", "product-6-9536"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.653218"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-11-12 19:46:00.655545"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.657643' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.658743' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.660041' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.660593' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.663464"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:00.663464"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.664434' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.664952' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.666019' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.666547' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.671060' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.671610' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.672130' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.673737"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.674420' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.674864' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.675328' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.675879' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.676332' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:00.680955"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.680955"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9536' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.686926' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:00.692551' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-6581' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-6581' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:00.699915"], ["created_at", "2014-11-12 19:46:00.704102"], ["description", "Occaecati natus eligendi omnis est. Incidunt qui sequi debitis ducimus dolor dolores harum. Quo provident fugit saepe totam velit illum minima aperiam. Pariatur atque reiciendis necessitatibus consequuntur fugiat.\nEst voluptatem quaerat et odio hic voluptas quod. Repellat molestiae similique exercitationem qui voluptas est labore itaque. Tempora commodi dicta culpa sit temporibus. Consequatur magnam dolorum fugit et rerum repellat voluptatibus. Aperiam atque eos est impedit non.\nId alias illo tenetur dolor quia ea. Tempore ducimus consequatur architecto neque ab et quis illum. Quam dolorum sit est nam. Maxime omnis ipsam quia reiciendis error et corrupti quae. Voluptatem ex veniam neque delectus.\nSit in exercitationem nihil facilis repellat asperiores numquam aut. Et repellat veritatis totam soluta suscipit. Ea reprehenderit sed veritatis eum. Unde neque reiciendis voluptatem qui. Distinctio molestiae inventore fugit sapiente.\nCum aut enim exercitationem id. Temporibus soluta ipsa dolorem laboriosam iusto eveniet ea. Eum tempora soluta magni quis doloribus sed."], ["name", "Product #7 - 6581"], ["shipping_category_id", 1], ["slug", "product-7-6581"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.704102"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-11-12 19:46:00.706344"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.708365' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.709476' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.710704' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.711241' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.714093"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:00.714093"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.715013' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.715540' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.716657' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.717134' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.721070' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.721682' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.722263' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.723841"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.724528' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.725015' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.725483' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.726049' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.726519' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:00.731101"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.731101"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-6581' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.736787' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:00.742350' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-6991' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-6991' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:00.749051"], ["created_at", "2014-11-12 19:46:00.752754"], ["description", "Architecto dicta labore consequatur delectus ea laborum aspernatur. Magni ipsum sapiente consectetur minima molestias. Aut voluptas dolorum nesciunt sunt labore perspiciatis similique voluptas. Consequuntur sit hic et a sed expedita repudiandae.\nAut ab eaque reprehenderit optio impedit. Occaecati voluptate dolores ea aspernatur. Facere dolorum accusamus blanditiis consequuntur. Aperiam in pariatur voluptate blanditiis tenetur.\nRepellat et quo excepturi quod velit et. Voluptas dolores qui expedita exercitationem placeat odio. Molestiae ab dolorem excepturi voluptas. Aut qui velit at veritatis aut. Nihil ducimus velit officiis provident veniam optio.\nExplicabo nobis ad ipsum asperiores fugit nam atque. Distinctio nihil omnis est quasi aliquid nam sunt. Voluptate sint aut saepe neque. Nobis omnis quo soluta unde vel ipsam sed.\nVitae libero amet ut doloremque velit sed. Quisquam excepturi velit beatae nemo qui quia. Iste ab rerum optio ut voluptatem quia."], ["name", "Product #8 - 6991"], ["shipping_category_id", 1], ["slug", "product-8-6991"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.752754"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-11-12 19:46:00.754857"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.756771' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.757830' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.759061' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.759591' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.762392"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:00.762392"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.763323' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.763811' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.764914' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.765407' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.769225' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.769750' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.770291' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.771852"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.772507' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.772959' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.773426' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.773974' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.774420' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:00.779041"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.779041"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-6991' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.784683' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:00.790292' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-2462' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-2462' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:00.797167"], ["created_at", "2014-11-12 19:46:00.800845"], ["description", "Facere aut quas consequuntur expedita dolore. Repellat pariatur possimus sunt totam ducimus. Quo beatae voluptas et voluptas impedit. Eligendi asperiores quidem nemo rerum. Pariatur aperiam aut voluptatem qui numquam reiciendis quaerat blanditiis.\nUt earum qui et sit. Quis dolor omnis quia natus accusantium repudiandae id. Quisquam beatae et ut cumque est. Eius explicabo inventore culpa vero voluptatum. In necessitatibus quis qui sapiente non temporibus sequi suscipit.\nNeque deleniti rem et est. Assumenda ex qui sed aliquam. Minima aut qui amet sed necessitatibus error sint ea. Autem laudantium ipsa voluptatibus saepe. Exercitationem rerum expedita distinctio atque corporis.\nDoloribus veniam sed eos facere sint tempore. Quas incidunt nihil nulla eveniet voluptatem. Qui quaerat dolores molestiae quibusdam velit.\nDistinctio repudiandae suscipit minus ut numquam praesentium blanditiis. Itaque perspiciatis iste laborum quod eum facilis sed fuga. Accusamus eveniet ut ut omnis explicabo."], ["name", "Product #9 - 2462"], ["shipping_category_id", 1], ["slug", "product-9-2462"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.800845"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-11-12 19:46:00.803023"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.804965' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.806005' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.807190' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.807731' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.810542"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:00.810542"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.811504' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.812064' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.813226' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.813787' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.817854' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.818373' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.818889' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.820465"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.821122' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.821602' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.822088' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.822642' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.823131' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:00.828288"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.828288"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-2462' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.834012' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:00.839504' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2523' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2523' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:00.846241"], ["created_at", "2014-11-12 19:46:00.849883"], ["description", "Omnis quidem ea est nemo odio. Assumenda quod rerum beatae harum quia vel consequatur sit. Nesciunt sed pariatur dolores dolorem explicabo ea necessitatibus sint. Repudiandae iure quia id aut tenetur voluptas provident optio.\nMinus reiciendis ut est ut quisquam placeat. Soluta quisquam molestiae aut nisi rerum. Doloribus et quis sit praesentium qui.\nEos amet nihil corporis harum suscipit voluptatem tempore. Ullam nostrum rerum quam itaque. Unde commodi et deleniti omnis est ut numquam. Quia nihil qui quae magnam veniam. Dolorem in excepturi saepe omnis.\nQui cumque quia at asperiores rerum. Ut odit doloribus totam reiciendis provident. Et pariatur nemo quas sit temporibus quaerat accusamus hic. Soluta veritatis ut aliquid debitis corporis. Id dolorem incidunt deleniti adipisci voluptas qui.\nQuos maiores incidunt dolore tempore id officia. Magnam aut distinctio tempore mollitia ad voluptas tenetur eos. Error non praesentium vitae voluptatibus."], ["name", "Product #10 - 2523"], ["shipping_category_id", 1], ["slug", "product-10-2523"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.849883"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-11-12 19:46:00.852043"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.853904' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.854969' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.856172' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.856704' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.859784"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:00.859784"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.860685' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.861199' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.862399' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.862922' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.867594' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.868122' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.868671' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.870395"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.871439' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.871898' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.872384' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.872931' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.873400' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:00.878327"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:00.878327"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2523' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.884404' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:00.890318' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:46:00.895148"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:00.895148"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.898791"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:00.898791"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.899698' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.900808' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.902037' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.902583' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.905138"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:00.905138"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.905963' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.906987' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.908144' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.908648' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.911045"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:00.911045"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.911886' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.912892' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.914232' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.914819' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.917437"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:00.917437"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.918406' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.919554' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.920688' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.921208' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:00.923595"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:00.923595"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.924470' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.925482' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.926686' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:00.927223' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H52832768621%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:00.930030"], ["number", "H52832768621"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:46:00.930030"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.931025' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:00.934485' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.938267"], ["description", "Cupiditate ut aliquid autem optio earum."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:46:00.938267"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.939779"], ["updated_at", "2014-11-12 19:46:00.939779"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:46:00.948832"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:00.948832"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:46:00.949621"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:46:00.949621"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.950929"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:00.950929"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:00.953670"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:00.953670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.957336"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:00.957336"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.958347' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.958938' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.960308"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:00.960308"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.960977' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.961429' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.962700"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:00.962700"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.963325' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.963761' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.965061"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:00.965061"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.965703' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.966183' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.967490"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:00.967490"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.968173' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.968637' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:46:00.977064' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Quo voluptatum itaque esse corporis cupiditate.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.980263"], ["description", "Consequatur delectus corrupti qui et aspernatur."], ["name", "Quo voluptatum itaque esse corporis cupiditate."], ["updated_at", "2014-11-12 19:46:00.980263"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 992374' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.983207"], ["description", "Aut magnam repudiandae quibusdam neque voluptas excepturi."], ["name", "TaxCategory - 992374"], ["updated_at", "2014-11-12 19:46:00.983207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:00.985467"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:46:00.985467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:46:00.987322"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:46:00.987322"], ["zone_id", 2]] SQL (0.3ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:46:00.988141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.4ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'monty@willms.com' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158215613453xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:46:01.003751"], ["email", "monty@willms.com"], ["encrypted_password", "eadeaa9521e656c5c58a79862a7ff9ac83e83a5f7d931b33a0cea0419eabb0e47a18c83e9b9ff9fef49c6af84484e9df219d09ec4bd42b7a4031fedf21ee1968"], ["login", "monty@willms.com"], ["password_salt", "CUdWAPjY9iAVFQiHwD6a"], ["updated_at", "2014-11-12 19:46:01.003751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:46:01.009846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:01.011913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:46:01.014205"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:01.014205"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:01.017549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:46:01.019126"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:46:01.019126"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R319278881' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R319278881%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R319278881' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'M-Z92hpvIEp7u-trY5SRRQ' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:46:01.026465"], ["currency", "USD"], ["email", "monty@willms.com"], ["guest_token", "M-Z92hpvIEp7u-trY5SRRQ"], ["number", "R319278881"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:46:01.026465"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:46:01.034010"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 19:46:01.034010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 572207' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.037413"], ["description", "Delectus sit a laboriosam facilis aut alias sequi ut."], ["name", "TaxCategory - 572207"], ["updated_at", "2014-11-12 19:46:01.037413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:46:01.041085"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:01.041085"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-8074' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-8074' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.032540"], ["created_at", "2014-11-12 19:46:01.044937"], ["description", "Nesciunt ducimus est placeat et. Autem magni a illo quidem reprehenderit ut. Neque similique illum eum deserunt voluptate sed nisi."], ["name", "Product #11 - 8074"], ["shipping_category_id", 1], ["slug", "product-11-8074"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.044937"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 19:46:01.047258"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.049315' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.050483' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.051814' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.052433' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.055395"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:01.055395"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.056371' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.056910' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.058078' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.058587' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.062740' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.063315' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.063877' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.065574"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.066291' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.066773' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.067231' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.081872' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.082597' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:01.087730"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.087730"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-8074' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.093694' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.099767' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-452' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-452' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.106740"], ["created_at", "2014-11-12 19:46:01.110829"], ["description", "Sed non perspiciatis dolorum rerum. Ut quisquam incidunt ab corrupti quo repellendus. Vero sit a ullam nam repudiandae totam. Aut non natus est officiis. Est rerum labore iure voluptatem incidunt.\nVelit et quibusdam ut tenetur nostrum omnis. Nulla aut aut dolore qui. Molestias nemo vitae est aut at facere.\nTempora enim sit atque quibusdam. Odit delectus animi officia vel. Dolores quo accusantium quis itaque qui alias consequuntur.\nProvident officiis culpa voluptates ab aspernatur. Dolore optio quae eum voluptatem repellat voluptates. Ab nisi molestias corrupti consequatur ipsa ut deleniti. Doloremque placeat impedit similique molestias inventore dolores. Voluptatem qui beatae doloribus aliquid nobis consequuntur natus laborum."], ["name", "Product #12 - 452"], ["shipping_category_id", 1], ["slug", "product-12-452"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.110829"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 19:46:01.112982"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.114995' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.116104' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.117335' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.117870' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.120703"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:01.120703"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.121659' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.122158' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.123265' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.124153' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.128081' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.128631' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.129221' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.130823"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.131552' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.132066' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.132556' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.133156' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.133612' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:01.138207"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.138207"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-452' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.144255' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.149787' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-9949' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-9949' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.156242"], ["created_at", "2014-11-12 19:46:01.159874"], ["description", "Corrupti consectetur natus aut aperiam accusantium voluptates. Dolores corrupti explicabo ducimus architecto aut velit qui aut. Dicta quod ab natus dolorum perferendis et. Quaerat sint eveniet facere velit asperiores.\nQui voluptatibus est eius architecto veniam aut et. Enim aut voluptatem sit odit qui in. Sed magni iste libero earum non delectus nostrum dolores. Placeat aperiam vel magni alias est. Veniam pariatur inventore atque qui fugit autem corporis ut.\nAccusamus corrupti sit provident exercitationem consectetur delectus. Ratione autem illo ut pariatur. Ut ducimus autem eius est dolorum. Omnis quia et sunt ullam.\nQuod consectetur provident ipsam et nihil suscipit quis. Sunt autem est nam velit consequatur. Nostrum culpa est quia dolorum laboriosam. Perspiciatis qui voluptatem facilis quia ipsum provident. Distinctio similique vel et quo et magni beatae."], ["name", "Product #13 - 9949"], ["shipping_category_id", 1], ["slug", "product-13-9949"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.159874"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-11-12 19:46:01.162005"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.163860' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.164988' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.166256' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.166761' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.169684"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:01.169684"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.170571' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.171063' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.172133' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.172601' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.176457' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.176990' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.177506' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-13' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.179062"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.179694' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.180151' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.180624' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.181187' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.181641' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:01.186286"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.186286"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-9949' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.192165' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.197897' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-1747' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-1747' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.204929"], ["created_at", "2014-11-12 19:46:01.208629"], ["description", "Minima et velit ut est ipsam nemo enim atque. Cumque tempora necessitatibus facilis rerum et. Est eum voluptatem aut in est autem natus quae. Voluptates quidem illum possimus tempora asperiores ipsum rem.\nVoluptatem quos quasi maiores rerum laboriosam. Distinctio nam sit minima dolorem maxime. Rerum quo ut illo sapiente consequatur. Sequi sunt dicta culpa consequatur sit officiis. Fugiat fugit voluptatem impedit harum iure est.\nLaboriosam aliquam et facere in mollitia esse. Sunt dicta blanditiis ut aut maxime distinctio consequatur nobis. Ea ut veritatis cumque perspiciatis impedit aut repellendus. Facere architecto laudantium exercitationem officia nulla in inventore. Magni vel voluptas quaerat voluptatem error laudantium aliquam.\nLaboriosam ab inventore quaerat facere. Beatae magnam eum id autem minima. Ad in eum cumque quod ducimus aliquam qui et. Consequatur aut fugit saepe nobis quia. Aut praesentium esse aut pariatur tempore rerum qui deserunt.\nDolore repellat officia enim doloremque rem iure quasi. Sit aut quod est id. Blanditiis possimus aperiam nemo consequatur."], ["name", "Product #14 - 1747"], ["shipping_category_id", 1], ["slug", "product-14-1747"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.208629"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-14"], ["updated_at", "2014-11-12 19:46:01.210729"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.212571' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.213635' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.214883' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.215446' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.218306"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:01.218306"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.219226' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.219734' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.220813' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.221294' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.225177' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.225733' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.226287' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-14' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.227830"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.228466' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.228939' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.229406' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.229964' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.230445' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:01.235080"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.235080"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-1747' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.240832' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.246347' WHERE "spree_line_items"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-1149' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-1149' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.250576"], ["created_at", "2014-11-12 19:46:01.254234"], ["description", "Minima laborum iusto et eos aut quibusdam optio. Sit temporibus quis ea ea expedita voluptate sit dolorem. Corrupti eum voluptate unde necessitatibus atque quia aut."], ["name", "Product #15 - 1149"], ["shipping_category_id", 1], ["slug", "product-15-1149"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.254234"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-11-12 19:46:01.256391"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.258348' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.259415' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.260676' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.261212' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.264130"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:01.264130"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.265076' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.265619' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.266714' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.267212' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.271167' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.271699' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.272210' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-15' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.273778"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.274417' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.274868' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.275326' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.275880' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.276332' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:01.280885"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.280885"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-1149' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.286674' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.292180' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:46:01.297287"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:01.297287"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.300783"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:01.300783"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.301693' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.302801' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.303988' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.304556' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.306964"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:01.306964"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.307802' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.308850' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.309986' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.310490' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.312829"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:01.312829"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.313634' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.314687' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.315805' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.316388' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.319054"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:01.319054"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.319970' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.321061' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.322197' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.322666' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.324986"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:01.324986"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.325831' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.326824' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.327961' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.328535' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H18831375180%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:01.331227"], ["number", "H18831375180"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:46:01.331227"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.332226' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.335151' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.338780"], ["description", "Et esse sunt voluptas cupiditate eligendi."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:46:01.338780"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.340112"], ["updated_at", "2014-11-12 19:46:01.340112"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:46:01.348732"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:01.348732"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:46:01.349507"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:46:01.349507"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.350815"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:01.350815"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:01.353621"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:01.353621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.357479"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:01.357479"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.358293' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.358903' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.360290"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:01.360290"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.360925' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.361411' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.362729"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:01.362729"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.363374' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.363818' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.365103"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:01.365103"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.365744' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.366215' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.367458"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:01.367458"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.368077' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.368513' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:46:01.377276' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Quo qui distinctio necessitatibus architecto.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.380475"], ["description", "Nemo sunt ad accusamus mollitia nobis dolores qui."], ["name", "Quo qui distinctio necessitatibus architecto."], ["updated_at", "2014-11-12 19:46:01.380475"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 164970' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.383341"], ["description", "Quia nobis eum quibusdam nihil nulla."], ["name", "TaxCategory - 164970"], ["updated_at", "2014-11-12 19:46:01.383341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.385408"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:46:01.385408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:46:01.386962"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:46:01.386962"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:46:01.387769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'gordon_mccullough@auerritchie.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158215611564xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:46:01.407373"], ["email", "gordon_mccullough@auerritchie.co.uk"], ["encrypted_password", "d9f905123f7172f9d4dab6c7a8d85c916a623169edf396d03e4e09fdb43606510814e5bd5edaa0b619783d9f7809bf0f32e242b948ce066df31fd5d516f9929a"], ["login", "gordon_mccullough@auerritchie.co.uk"], ["password_salt", "Xbjs7f9PzxMuwwmaBiNQ"], ["updated_at", "2014-11-12 19:46:01.407373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:46:01.412207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:01.413932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:46:01.415572"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:01.415572"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:01.418070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:46:01.419336"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:46:01.419336"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R613377909' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R613377909%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R613377909' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '3M3EO_iUzuwgu3UjEjVarQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:46:01.425526"], ["currency", "USD"], ["email", "gordon_mccullough@auerritchie.co.uk"], ["guest_token", "3M3EO_iUzuwgu3UjEjVarQ"], ["number", "R613377909"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:46:01.425526"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:46:01.433258"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 19:46:01.433258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 323158' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.435902"], ["description", "Maiores ut eius nulla laudantium possimus provident omnis et."], ["name", "TaxCategory - 323158"], ["updated_at", "2014-11-12 19:46:01.435902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:46:01.439715"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:01.439715"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-525' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-525' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.432169"], ["created_at", "2014-11-12 19:46:01.443642"], ["description", "Vitae aut aliquid deserunt fugit recusandae quis. Saepe quasi aut ea est et. Voluptas consequatur repellat sequi doloribus. Alias in delectus autem odit dicta quos.\nVoluptatem asperiores dolorum culpa sed fuga voluptatibus magni. Pariatur facilis eligendi est dignissimos. Quod voluptatem minima adipisci vero culpa. Omnis iure amet fuga quaerat.\nCum exercitationem vero vitae fugiat et aut distinctio tempora. Odio quis exercitationem veniam est mollitia accusantium eum quia. Aut qui dolores ipsum repellat consequatur dolor odit."], ["name", "Product #16 - 525"], ["shipping_category_id", 1], ["slug", "product-16-525"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.443642"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-16"], ["updated_at", "2014-11-12 19:46:01.445865"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.447892' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.449059' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.450338' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.450907' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.453847"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:01.453847"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.454792' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.455311' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.456409' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.456891' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.460925' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.461528' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.462079' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-16' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.463674"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.464368' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.464843' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.465314' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.465910' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.466364' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:01.471052"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.471052"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-525' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.477022' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.482760' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-8004' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-8004' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.488386"], ["created_at", "2014-11-12 19:46:01.492159"], ["description", "Id doloremque repudiandae facilis qui itaque nisi. Molestias saepe inventore nulla maiores vitae quibusdam fugiat. Dolorum explicabo est voluptas laboriosam quos quia repellat. Animi et sed eum architecto asperiores nulla reiciendis.\nDolorem maiores id asperiores tempora laborum in repellendus. Id autem iusto non eum dolore ducimus ut omnis. Dolorum rerum est ullam vel iure.\nSit assumenda voluptate quia ea. Vel reiciendis qui officiis officia et quia. Sapiente temporibus sit omnis pariatur omnis. Nulla et voluptas natus nostrum."], ["name", "Product #17 - 8004"], ["shipping_category_id", 1], ["slug", "product-17-8004"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.492159"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-17"], ["updated_at", "2014-11-12 19:46:01.494391"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.496426' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.497719' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.499175' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.499738' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.502739"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:01.502739"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.503694' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.504323' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.505545' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.506059' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.510222' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.510779' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.511321' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-17' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.512905"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.513621' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.514152' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.514717' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.515331' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.515806' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:01.520523"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.520523"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-8004' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.538174' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.543953' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-5596' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-5596' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.548553"], ["created_at", "2014-11-12 19:46:01.552231"], ["description", "Repellat at assumenda quam illo molestias excepturi et. Eum velit molestiae placeat laudantium est. Ratione labore cumque eum et quo esse. Repudiandae beatae eveniet et corrupti ut. Fugiat sit reprehenderit rerum fuga."], ["name", "Product #18 - 5596"], ["shipping_category_id", 1], ["slug", "product-18-5596"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.552231"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-18"], ["updated_at", "2014-11-12 19:46:01.554326"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.556216' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.557295' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.558541' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.559099' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.562051"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:01.562051"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.562943' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.563432' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.564519' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.564995' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.568860' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.569422' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.569980' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-18' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.571520"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.572162' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.572621' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.573084' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.573625' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.574082' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:01.578702"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.578702"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-5596' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.584425' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.589830' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-2287' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-2287' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.595017"], ["created_at", "2014-11-12 19:46:01.598799"], ["description", "Omnis ut velit aliquid temporibus. Distinctio tempora possimus et odit. Qui voluptatem sed nisi qui et hic vel dignissimos. Error molestiae in aut eum quo perferendis. Qui et quod aperiam ab sint voluptatem delectus.\nRepellendus velit amet consectetur vero aperiam dolores aspernatur neque. Molestiae voluptate voluptas possimus aut quo. Molestiae amet quia nihil modi vitae incidunt recusandae magnam. Laboriosam dolorem harum quis quia."], ["name", "Product #19 - 2287"], ["shipping_category_id", 1], ["slug", "product-19-2287"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.598799"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-19"], ["updated_at", "2014-11-12 19:46:01.601166"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.603069' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.604177' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.605477' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.606021' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.608919"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:01.608919"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.609820' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.610335' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.611413' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.611894' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.615733' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.616252' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.616757' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-19' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.618294"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.618948' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.619411' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.619872' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.620410' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.620854' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:01.626157"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.626157"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-2287' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.635979' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.642162' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-4100' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-4100' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.646447"], ["created_at", "2014-11-12 19:46:01.650166"], ["description", "Sint omnis reiciendis sapiente possimus. Iure repellendus ut saepe maxime. Odio quasi est ut accusantium harum vel."], ["name", "Product #20 - 4100"], ["shipping_category_id", 1], ["slug", "product-20-4100"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.650166"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-20"], ["updated_at", "2014-11-12 19:46:01.652255"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.654159' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.655246' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.656527' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.657093' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.660024"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:01.660024"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.660955' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.661443' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.662548' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.663049' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.666956' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.667501' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.668015' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-20' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.669602"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.670245' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.670731' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.671221' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.671787' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.672246' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:01.677087"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.677087"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-4100' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.682837' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.688393' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:46:01.693220"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:01.693220"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.696640"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:01.696640"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.697567' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.698700' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.699943' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.700526' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.703001"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:01.703001"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.703858' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.704908' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.706115' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.706598' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.709009"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:01.709009"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.709822' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.710865' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.711979' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.712559' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.715183"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:01.715183"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.716156' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.717272' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.718457' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.718928' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.721354"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:01.721354"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.722164' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.723194' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.724381' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.724903' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H16562551105%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:01.727709"], ["number", "H16562551105"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:46:01.727709"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.728736' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.731775' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.735422"], ["description", "Aut quae voluptatem officia voluptatibus sit."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:46:01.735422"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.736797"], ["updated_at", "2014-11-12 19:46:01.736797"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:46:01.745482"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:01.745482"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:46:01.746256"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:46:01.746256"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.747607"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:01.747607"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:01.750422"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:01.750422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.754004"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:01.754004"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.754764' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.755387' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.756744"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:01.756744"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.757423' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.757940' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.761104"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:01.761104"], ["variant_id", 3]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.762510' WHERE "spree_shipments"."id" = 1 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.763449' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.765929"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:01.765929"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.766946' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.767664' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.769661"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:01.769661"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.770585' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.771202' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:46:01.779878' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Ipsam repudiandae omnis qui voluptatem.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.783109"], ["description", "Perspiciatis est maiores dignissimos molestias."], ["name", "Ipsam repudiandae omnis qui voluptatem."], ["updated_at", "2014-11-12 19:46:01.783109"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 291666' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.786032"], ["description", "Voluptatibus enim occaecati rerum quaerat."], ["name", "TaxCategory - 291666"], ["updated_at", "2014-11-12 19:46:01.786032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.788103"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:46:01.788103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:46:01.789661"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:46:01.789661"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:46:01.790462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'edgar@terry.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158215617595xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:46:01.804452"], ["email", "edgar@terry.biz"], ["encrypted_password", "d37e46b770695a9b49fd3aa15186cee7bd78ac73136974446003c3ccd1ee9cf707c9cb94e522b5a4d52569495b32d71745aab537a81d05f229475ce147a8da72"], ["login", "edgar@terry.biz"], ["password_salt", "sqi_e92pGE8MowmZ8_Cz"], ["updated_at", "2014-11-12 19:46:01.804452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:46:01.807498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:01.808814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:46:01.810260"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:01.810260"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:01.812763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:46:01.814012"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:46:01.814012"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R437597379' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R437597379%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R437597379' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'cahlZWBFZxahNup_ZPfuIg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:46:01.820064"], ["currency", "USD"], ["email", "edgar@terry.biz"], ["guest_token", "cahlZWBFZxahNup_ZPfuIg"], ["number", "R437597379"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:46:01.820064"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:46:01.828857"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 19:46:01.828857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 38004' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:01.831552"], ["description", "Itaque ut id aut odit."], ["name", "TaxCategory - 38004"], ["updated_at", "2014-11-12 19:46:01.831552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:46:01.834839"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:01.834839"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-7499' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-7499' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.827779"], ["created_at", "2014-11-12 19:46:01.838834"], ["description", "Dolor nesciunt repudiandae quibusdam nisi omnis. Aut facere doloremque tempore cumque quae non. Et repellendus similique non iste quia tempore eos. Consequatur reprehenderit et est eius nihil. Itaque doloremque quae provident atque magni eveniet incidunt voluptatem.\nNecessitatibus corporis et consectetur alias aspernatur. Dignissimos omnis in est laboriosam commodi eum facere ut. Dolor saepe incidunt et ab cupiditate.\nEarum sapiente ipsam corrupti facilis inventore in mollitia est. Expedita doloribus ut ratione quasi nihil sed rem quia. Voluptatem fugiat dolorum et aut quia. Est quibusdam maxime modi tempora earum.\nMolestias amet voluptatibus dolore minus. Libero enim atque nesciunt ipsa ea suscipit. Dolores ipsa ut natus deserunt sunt consequatur deleniti explicabo. Dolores repellendus nesciunt molestiae quae sequi illo sit. Non ea commodi ullam ut et."], ["name", "Product #21 - 7499"], ["shipping_category_id", 1], ["slug", "product-21-7499"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.838834"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-21"], ["updated_at", "2014-11-12 19:46:01.841348"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.843512' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.844696' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.846042' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.846606' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.849799"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:01.849799"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.850849' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.851434' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.852575' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.853056' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.857118' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.857650' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.858206' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-21' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.859814"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.860537' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.861025' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.861522' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.862072' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.862552' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:01.867276"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.867276"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-7499' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.873219' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.878913' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-3489' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-3489' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.884283"], ["created_at", "2014-11-12 19:46:01.888040"], ["description", "Rerum et neque est corrupti quos eos ut. Et saepe nostrum et unde praesentium. Ipsam vero quam id expedita sunt culpa at ullam.\nQuia ut quis temporibus sed dolores iste qui aspernatur. Hic velit vel voluptas recusandae expedita cumque. Hic tempore ullam quia aut. Sed deserunt fuga tempora iure.\nQuis ut illo perferendis facilis. Molestias dolorum odio quaerat optio. Sapiente voluptas optio nihil amet sint quia quo distinctio."], ["name", "Product #22 - 3489"], ["shipping_category_id", 1], ["slug", "product-22-3489"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.888040"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-22"], ["updated_at", "2014-11-12 19:46:01.890183"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.892139' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.893265' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.894490' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.895056' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.897946"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:01.897946"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.898892' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.899454' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.900554' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.901051' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.904957' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.905502' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.906044' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-22' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.907710"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.908411' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.908885' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.909381' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.909950' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.910421' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:01.915166"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.915166"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-3489' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.925398' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.931782' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-204' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-204' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.937462"], ["created_at", "2014-11-12 19:46:01.941329"], ["description", "Rem voluptatem impedit inventore nihil dolores omnis et sapiente. Quas cumque dolorum et harum. Autem ad eos aliquid incidunt.\nNon doloremque excepturi voluptatum tempora quae laudantium aut. Beatae nisi in magnam veniam cupiditate. Quasi at nihil voluptates minima sunt voluptate est.\nEarum ipsa quis provident est. Reprehenderit et sed non voluptatem enim est ullam ipsa. Explicabo nihil doloremque expedita velit recusandae.\nBeatae recusandae nihil quibusdam reiciendis quis labore. Molestiae ratione delectus quam eligendi vero aut. At voluptates dignissimos eum beatae."], ["name", "Product #23 - 204"], ["shipping_category_id", 1], ["slug", "product-23-204"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.941329"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-23"], ["updated_at", "2014-11-12 19:46:01.943502"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.945396' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.946490' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.947716' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.948261' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:01.951159"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:01.951159"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.952072' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.952594' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.953770' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.954359' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.958372' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.958917' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.959485' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-23' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.961083"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.961749' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.962218' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.962706' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.963256' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:01.963727' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:01.968430"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:01.968430"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-204' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.986051' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:01.992032' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-7505' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-7505' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:01.997376"], ["created_at", "2014-11-12 19:46:02.001138"], ["description", "Numquam quia iste quos ea et ut eveniet quasi. Id doloribus vero tenetur quod aut eum. Quia cumque aperiam doloremque consequatur.\nPlaceat laborum ipsam et qui adipisci est. Sapiente ut quam praesentium doloribus explicabo et neque iure. Tenetur doloremque nemo optio est et velit. Harum sed aut eaque odio.\nAb repudiandae dolore amet incidunt sint accusamus sit. Sit ut dolorum ut quae sit. Eaque iste laboriosam eveniet quibusdam enim deleniti consequuntur sint."], ["name", "Product #24 - 7505"], ["shipping_category_id", 1], ["slug", "product-24-7505"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.001138"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-24"], ["updated_at", "2014-11-12 19:46:02.003350"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.005284' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.006403' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.007587' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.008127' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.013449"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:02.013449"], ["variant_id", 4]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.015337' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.016400' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.018189' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.019022' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.024169' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.024710' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.025236' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-24' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.027075"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.027796' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.028307' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.028790' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.029395' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.029876' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:02.034852"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.034852"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-7505' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.045026' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.051291' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-9652' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-9652' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:02.057309"], ["created_at", "2014-11-12 19:46:02.061018"], ["description", "Numquam voluptas vero in architecto delectus suscipit dolorem. Necessitatibus dolor eaque voluptatem maxime nulla. Molestiae dolor maxime quia corrupti modi sed eum quia. Numquam qui dolores consequatur ullam qui.\nVoluptates doloremque consequatur nihil dignissimos. Cumque quis expedita consequatur iste. Laboriosam illo sequi aspernatur nobis.\nDicta est rem fugiat eum ut voluptatem facere rerum. Expedita pariatur laborum et itaque. Est et sequi dolorem omnis autem veritatis sed.\nDeleniti ut exercitationem quibusdam temporibus possimus. Pariatur maiores doloribus nesciunt eius nemo. Officiis voluptas qui eum blanditiis occaecati. Laborum voluptates fugit ipsum itaque molestias sed necessitatibus."], ["name", "Product #25 - 9652"], ["shipping_category_id", 1], ["slug", "product-25-9652"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.061018"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-25"], ["updated_at", "2014-11-12 19:46:02.063151"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.065001' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.066058' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.067266' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.067802' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.071143"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:02.071143"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.072173' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.072688' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.073784' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.074261' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.078125' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.078653' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.079165' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-25' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.080703"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.081357' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.081821' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.082309' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.082853' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.083293' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:02.088018"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.088018"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-9652' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.093647' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.099194' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:46:02.104099"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:02.104099"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.107644"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.107644"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.108541' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.109690' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.110912' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.111501' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.114263"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.114263"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.115174' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.116317' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.117503' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.118020' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.120417"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.120417"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.121321' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.122367' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.123582' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.124132' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.126781"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.126781"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.127716' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.128831' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.129957' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.130457' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.132821"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.132821"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.133641' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.134704' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.135863' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.136403' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H07025731727%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:02.139315"], ["number", "H07025731727"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:46:02.139315"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.140288' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.143257' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.146993"], ["description", "Velit ut facere hic et."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:46:02.146993"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.148395"], ["updated_at", "2014-11-12 19:46:02.148395"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:46:02.157156"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:02.157156"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:46:02.157939"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:46:02.157939"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.159270"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:02.159270"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:02.162150"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:02.162150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.165745"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:02.165745"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.166515' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.167117' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.168480"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:02.168480"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.169137' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.169593' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.170874"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:02.170874"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.171517' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.171988' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.173274"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:02.173274"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.173912' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.174363' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.175614"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:02.175614"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.176284' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.176737' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:46:02.184947' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Maiores est culpa alias sapiente est officia sit placeat.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.188089"], ["description", "Facere autem eum totam perspiciatis sint ut est veritatis."], ["name", "Maiores est culpa alias sapiente est officia sit placeat."], ["updated_at", "2014-11-12 19:46:02.188089"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 370890' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.190958"], ["description", "Minima possimus officia optio velit beatae."], ["name", "TaxCategory - 370890"], ["updated_at", "2014-11-12 19:46:02.190958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.193125"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:46:02.193125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:46:02.194679"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:46:02.194679"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:46:02.195495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (5.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'chase@moore.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158215626726xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:46:02.214112"], ["email", "chase@moore.ca"], ["encrypted_password", "5c7038e87ae3caf47521c65bf94419475d4fbab67b6d9608915b1e6a571a8375784bbeeec0a0e02839626c82e3499190f20fd5e1282b04191b564384d9406a15"], ["login", "chase@moore.ca"], ["password_salt", "fRQz9HG38d_x9RtSxUUt"], ["updated_at", "2014-11-12 19:46:02.214112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:46:02.217657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:02.219011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:46:02.220461"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:02.220461"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:02.223082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:46:02.224392"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:46:02.224392"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R014605584' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R014605584%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R014605584' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'puXn4KCIpM7LM5NRorlZ9Q' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:46:02.234803"], ["currency", "USD"], ["email", "chase@moore.ca"], ["guest_token", "puXn4KCIpM7LM5NRorlZ9Q"], ["number", "R014605584"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:46:02.234803"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:46:02.244226"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 19:46:02.244226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 603751' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.248134"], ["description", "Quia aliquam laboriosam officia accusamus nesciunt sit minima ad."], ["name", "TaxCategory - 603751"], ["updated_at", "2014-11-12 19:46:02.248134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:46:02.252478"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:02.252478"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-1094' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-1094' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:02.242999"], ["created_at", "2014-11-12 19:46:02.256572"], ["description", "At exercitationem perspiciatis sit dolor magni alias totam. Nihil quam quasi odio impedit sit dolor a nostrum. Quod voluptas recusandae doloremque possimus expedita ad est voluptas.\nDeserunt facere ut rerum veritatis. Numquam officiis fuga soluta consequatur. Odit perferendis fugiat in facere in commodi laudantium consequuntur.\nOmnis molestiae ut voluptatem maxime voluptate qui. Neque saepe non ut veritatis aliquid autem in ut. Id in sit eum voluptas nulla nobis ea ab. Dignissimos ducimus quia et et quo repellendus sed suscipit. Facilis nihil excepturi ab omnis nesciunt repellat est saepe."], ["name", "Product #26 - 1094"], ["shipping_category_id", 1], ["slug", "product-26-1094"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.256572"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-26"], ["updated_at", "2014-11-12 19:46:02.258848"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.262714' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.265039' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.267383' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.268304' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.272692"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:02.272692"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.273691' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.274219' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.275327' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.275823' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.279831' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.280376' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.280913' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-26' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.282564"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.283288' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.283798' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.284329' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.284899' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.285353' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:02.290160"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.290160"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-1094' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.296067' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.301922' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-983' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-983' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:02.306447"], ["created_at", "2014-11-12 19:46:02.310111"], ["description", "Recusandae et consequatur sapiente tempore laborum. Mollitia dignissimos molestias libero delectus omnis cupiditate et autem. Nostrum doloribus animi voluptate earum expedita."], ["name", "Product #27 - 983"], ["shipping_category_id", 1], ["slug", "product-27-983"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.310111"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-27"], ["updated_at", "2014-11-12 19:46:02.312252"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.314211' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.315317' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.316616' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.317319' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.320451"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:02.320451"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.321458' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.322021' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.323124' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.323612' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.327473' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.328018' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.328558' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-27' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.330135"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.330804' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.331279' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.331746' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.332289' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.332745' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:02.337349"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.337349"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-983' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.343084' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.348715' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-8021' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-8021' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:02.353530"], ["created_at", "2014-11-12 19:46:02.357225"], ["description", "Est praesentium quaerat voluptatibus voluptates distinctio ea. Asperiores explicabo qui ut est. Et sint cum impedit minima.\nVoluptas praesentium sint inventore recusandae. Temporibus ratione earum sed eaque tempora incidunt. Dolorum provident nulla quidem nobis eligendi odio. Eaque et voluptate nostrum consequatur."], ["name", "Product #28 - 8021"], ["shipping_category_id", 1], ["slug", "product-28-8021"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.357225"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-28"], ["updated_at", "2014-11-12 19:46:02.359362"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.361400' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.362528' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.363787' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.364374' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.367303"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:02.367303"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.368231' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.368746' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.369839' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.370325' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.374233' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.374750' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.375293' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-28' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.376885"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.377542' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.378004' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.378498' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.379058' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.379524' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:02.384330"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.384330"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-8021' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.394663' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.401364' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-2724' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-2724' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:02.408090"], ["created_at", "2014-11-12 19:46:02.411969"], ["description", "Aperiam dolores minima illum delectus nihil aliquid quam. Consequatur dignissimos est reprehenderit libero sed minima qui neque. Adipisci quia doloremque repudiandae libero.\nRepudiandae et ut quia earum. Facere itaque quam doloribus et dolore consequuntur. Corporis est qui omnis ut fugit.\nPossimus nihil a ut rerum. Est placeat nobis aut sit occaecati aperiam quam quidem. Architecto molestias incidunt et quis et odio velit voluptatem.\nNulla fugit deserunt nihil voluptatem ut in. Blanditiis aut soluta ullam et et qui et eveniet. Rerum voluptas saepe natus nam. Harum voluptas quidem dolorem eum. Est et non enim mollitia.\nAssumenda consequuntur veniam labore sapiente itaque est iste quidem. Et qui distinctio velit ut vitae iure. Qui adipisci quod voluptate quas molestiae asperiores. Optio enim molestiae fugit natus tenetur consectetur ut."], ["name", "Product #29 - 2724"], ["shipping_category_id", 1], ["slug", "product-29-2724"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.411969"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-29"], ["updated_at", "2014-11-12 19:46:02.414321"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.416491' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.417674' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.419120' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.419699' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.422680"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:02.422680"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.423635' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.424192' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.425336' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.425841' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.430164' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.430765' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.431368' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-29' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.433113"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.433851' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.434340' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.434845' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.448458' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.449147' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:02.454101"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.454101"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-2724' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.459373' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.464860' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-9777' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-9777' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:02.469214"], ["created_at", "2014-11-12 19:46:02.472858"], ["description", "Recusandae sed et qui sed ex. Et magni natus sed eos molestiae est. Alias possimus nobis facilis consequatur. Voluptas et id id aut."], ["name", "Product #30 - 9777"], ["shipping_category_id", 1], ["slug", "product-30-9777"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.472858"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-30"], ["updated_at", "2014-11-12 19:46:02.474941"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.476801' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.477977' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.479184' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.479708' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.482573"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:02.482573"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.483457' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.483959' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.485026' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.485486' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.489383' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.489885' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.490436' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-30' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.491988"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.492642' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.493101' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.493573' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.494119' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.494579' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:02.499146"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.499146"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-9777' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.509283' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.515889' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:46:02.520726"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:02.520726"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.524191"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.524191"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.525146' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.526269' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.527527' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.528108' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.530518"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.530518"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.531355' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.532364' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.533453' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.533975' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.536265"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.536265"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.537104' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.538134' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.539235' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.539751' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.542328"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.542328"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.543234' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.544377' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.545577' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.546105' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.548423"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.548423"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.549251' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.550266' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.551457' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.552010' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H25508563377%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:02.554907"], ["number", "H25508563377"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:46:02.554907"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.555877' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.558871' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.562543"], ["description", "Saepe optio et officia cumque commodi est."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:46:02.562543"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.563982"], ["updated_at", "2014-11-12 19:46:02.563982"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:46:02.572490"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:02.572490"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:46:02.573253"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:46:02.573253"]] SQL (0.4ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.574576"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:02.574576"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:02.577622"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:02.577622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.581226"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:02.581226"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.581995' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.582589' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.583968"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:02.583968"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.584602' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.585066' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.586321"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:02.586321"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.586956' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.587415' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.588695"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:02.588695"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.589333' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.589771' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.591042"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:02.591042"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.591673' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.592138' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:46:02.600452' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Quo iste harum iure accusantium.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.603546"], ["description", "Reiciendis quo similique laudantium eligendi."], ["name", "Quo iste harum iure accusantium."], ["updated_at", "2014-11-12 19:46:02.603546"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 678445' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.609243"], ["description", "Vel sint reprehenderit consequatur labore debitis libero qui optio."], ["name", "TaxCategory - 678445"], ["updated_at", "2014-11-12 19:46:02.609243"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.613579"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:46:02.613579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:46:02.616330"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:46:02.616330"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:46:02.617396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (5.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'eula@kuphalkutch.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158215624627xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:46:02.632996"], ["email", "eula@kuphalkutch.us"], ["encrypted_password", "9122e9b96ea981849133039e2104ddabbb29d0d0d2ef021d529d1da1dc22ebd53c0e559e579dae07975e45fbc12a46ec27e564a318ef57819b25d2f8ddb5eb7a"], ["login", "eula@kuphalkutch.us"], ["password_salt", "ew1T3eMy7yvo6vLJar6m"], ["updated_at", "2014-11-12 19:46:02.632996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:46:02.636916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:02.638675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:46:02.640368"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:02.640368"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:02.643915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:46:02.645812"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:46:02.645812"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R365032734' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R365032734%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R365032734' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'X-Xr5aD7vSQXPqIY37jiPQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:46:02.652834"], ["currency", "USD"], ["email", "eula@kuphalkutch.us"], ["guest_token", "X-Xr5aD7vSQXPqIY37jiPQ"], ["number", "R365032734"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:46:02.652834"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:46:02.662203"], ["name", "ShippingCategory #7"], ["updated_at", "2014-11-12 19:46:02.662203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 716447' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.665747"], ["description", "Quis praesentium culpa debitis sapiente possimus adipisci odit."], ["name", "TaxCategory - 716447"], ["updated_at", "2014-11-12 19:46:02.665747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:46:02.669331"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:02.669331"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-31-2114' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-31-2114' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:02.661052"], ["created_at", "2014-11-12 19:46:02.673093"], ["description", "Earum voluptate dolorum dolores praesentium. Modi eaque et necessitatibus ratione ea qui ut. Eligendi numquam provident doloribus consequatur ut aut.\nMinus deserunt consequuntur sint eligendi. Ex aut nulla sed dolor. Fugiat laudantium sunt non libero. At repellat est velit dignissimos eum eveniet omnis. Mollitia hic quisquam vitae vero aut repellat.\nCorporis reprehenderit quod sequi et molestiae aut. Et magnam est aut ipsam et non quibusdam. Dolor repellendus tempora accusantium sunt et rerum. Est cupiditate dolorem labore in et. Ratione velit aperiam voluptates maxime aliquam suscipit.\nNihil qui dolor vel voluptatum deserunt. Occaecati maxime vel iusto eveniet rerum. Est quasi eaque temporibus aliquam. Natus perferendis facere atque iusto et amet ipsum.\nVoluptatum iure quia ut architecto quia eaque accusantium illum. Praesentium rerum accusamus voluptatum et. Eos alias ut ut illo et et ipsa. Aliquam vitae vel aspernatur nesciunt esse iure eaque voluptatem."], ["name", "Product #31 - 2114"], ["shipping_category_id", 1], ["slug", "product-31-2114"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.673093"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-31' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-31"], ["updated_at", "2014-11-12 19:46:02.675382"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.677405' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.678580' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.679981' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.680625' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.684080"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:02.684080"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.685283' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.685898' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.687151' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.687719' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.692185' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.692759' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.693292' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-31' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.695133"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.695998' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.696638' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.697230' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.698015' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.698551' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:02.703953"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.703953"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-31-2114' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.709693' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.716389' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-32-1539' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-32-1539' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:02.722352"], ["created_at", "2014-11-12 19:46:02.726430"], ["description", "Error iste suscipit odit perspiciatis corrupti sint expedita. Qui cumque omnis eligendi exercitationem. Velit facere harum ad expedita quia minima et inventore.\nCommodi est distinctio nemo culpa fugit ea necessitatibus qui. Dolor quia ratione voluptate consectetur. Sapiente quo sed quibusdam rem eos ratione.\nQui nisi eaque quia aliquam totam quidem similique. Et voluptatem voluptates sed enim recusandae amet magnam optio. Nostrum laboriosam sunt qui enim doloribus rerum et. Soluta numquam ratione iusto et aliquid quia mollitia sit.\nNecessitatibus et ea perspiciatis qui qui officiis fugit enim. Optio neque et earum et incidunt et. Provident quae autem quibusdam quas consequatur laudantium."], ["name", "Product #32 - 1539"], ["shipping_category_id", 1], ["slug", "product-32-1539"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.726430"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-32' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-32"], ["updated_at", "2014-11-12 19:46:02.728650"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.731119' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.733823' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.736504' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.737632' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.742365"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:02.742365"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.743714' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.744456' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.745675' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.746160' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.750828' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.751417' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.751972' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-32' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.753622"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.754315' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.754790' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.755275' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.755869' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.756350' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:02.761518"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.761518"], ["variant_id", 2]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-32-1539' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.772000' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.778117' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-33-9021' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-33-9021' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:02.782843"], ["created_at", "2014-11-12 19:46:02.786860"], ["description", "Facilis dicta aut enim suscipit iste. Quae occaecati quibusdam quasi quam commodi incidunt. Beatae suscipit at corrupti eligendi nesciunt ea similique."], ["name", "Product #33 - 9021"], ["shipping_category_id", 1], ["slug", "product-33-9021"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.786860"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-33' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-33"], ["updated_at", "2014-11-12 19:46:02.788995"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.790870' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.791961' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.793208' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.793749' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.796861"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:02.796861"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.798133' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.798842' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.800108' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.800638' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.804640' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.805182' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.805688' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-33' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.807277"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.807923' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.808385' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.808878' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.809464' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.809945' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:02.816869"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.816869"], ["variant_id", 3]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-33-9021' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.826012' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.832294' WHERE "spree_line_items"."id" = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-34-5877' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-34-5877' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:02.839346"], ["created_at", "2014-11-12 19:46:02.843234"], ["description", "Porro at velit occaecati quia similique consequatur accusamus nemo. Perspiciatis rerum et expedita voluptas illo ea. Totam natus sunt iusto officiis velit. Rem dolorem delectus unde esse qui a. Modi nam necessitatibus aut natus repellat nostrum quisquam.\nQuidem enim ducimus nesciunt officiis. Sed reiciendis provident sint omnis. Ut vero iste et corrupti facilis suscipit accusamus. Esse beatae aspernatur repudiandae nisi.\nLaboriosam aut deserunt voluptas non sunt fugiat dolorum et. Dolores omnis voluptas sit aut ea facere culpa nostrum. Ipsum velit est et debitis voluptates ducimus.\nSoluta voluptatum cum voluptatem illo quidem porro deleniti. Nulla exercitationem sapiente temporibus blanditiis. Enim commodi minima aspernatur magni.\nConsequuntur blanditiis laudantium possimus ea. Reprehenderit accusantium at libero laudantium. Commodi est aut eum officiis aliquid eligendi. Delectus rerum aspernatur commodi sed repellendus quo deserunt maiores."], ["name", "Product #34 - 5877"], ["shipping_category_id", 1], ["slug", "product-34-5877"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.843234"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-34' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-34"], ["updated_at", "2014-11-12 19:46:02.845420"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.847410' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.849053' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.850440' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.851048' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.854081"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:02.854081"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.855064' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.855676' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.857046' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.857626' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.861824' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.862362' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.862895' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-34' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.864968"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.865813' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.866422' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.867077' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.868185' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.868858' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:02.874267"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.874267"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-34-5877' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.879979' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.885594' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-35-8742' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-35-8742' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:46:02.891489"], ["created_at", "2014-11-12 19:46:02.907181"], ["description", "In sint nemo excepturi inventore voluptas cum consequatur maxime. Aliquid voluptate porro in sequi voluptas nisi quod. Debitis nulla similique quas et inventore voluptatem. Unde deleniti nesciunt quas voluptatum aspernatur. Ut voluptas et in beatae sed.\nEt vitae non itaque et quia architecto nemo. Sapiente quis dolor quaerat possimus pariatur rerum in sed. Distinctio ut est omnis et.\nAut odit pariatur molestias vel sint ipsum. Tempore sit fugit quaerat consequatur cumque est veniam. Et soluta odit et esse perspiciatis. Enim sit nam temporibus accusamus voluptate debitis reprehenderit. Quo soluta non autem commodi cumque libero rerum."], ["name", "Product #35 - 8742"], ["shipping_category_id", 1], ["slug", "product-35-8742"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.907181"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-35' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-35"], ["updated_at", "2014-11-12 19:46:02.909429"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.911330' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.912420' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.913617' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.914149' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.916948"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:46:02.916948"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.917818' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.918330' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.919397' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.919873' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.923939' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.924475' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.924999' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-35' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.926621"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.927282' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.927774' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.928233' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.928765' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.929235' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:46:02.933905"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:46:02.933905"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-35-8742' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.939535' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.945032' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:46:02.949840"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:46:02.949840"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.953246"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.953246"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.954133' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.955246' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.956451' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.956980' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.959427"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.959427"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.960229' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.961245' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.962356' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.962828' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.965114"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.965114"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.965906' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.966891' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.967973' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.968459' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.971142"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.971142"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.972068' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.973136' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.974297' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.974766' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:46:02.977069"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:46:02.977069"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.977868' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.978850' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.979927' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:46:02.980464' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H54852150507%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:02.983284"], ["number", "H54852150507"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:46:02.983284"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.984252' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:46:02.987131' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.990692"], ["description", "Dolorem ullam a quod non ad exercitationem officia."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:46:02.990692"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:02.992001"], ["updated_at", "2014-11-12 19:46:02.992001"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:46:03.000515"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:03.000515"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:46:03.001268"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:46:03.001268"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:03.002542"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:03.002542"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:46:03.005264"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:46:03.005264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:03.008781"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:03.008781"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:03.009537' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:03.010102' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:03.011432"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:03.011432"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:03.012096' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:03.012537' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:03.013835"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:03.013835"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:03.014495' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:03.014949' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:03.016211"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:03.016211"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:03.016863' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:03.017330' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:46:03.018563"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:46:03.018563"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:03.019221' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:03.019676' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:46:03.027631' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Dolore et inventore consequatur est.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:03.030765"], ["description", "Quas omnis ducimus mollitia maiores libero debitis inventore."], ["name", "Dolore et inventore consequatur est."], ["updated_at", "2014-11-12 19:46:03.030765"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 860018' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:03.033639"], ["description", "Deserunt accusamus molestiae optio ad."], ["name", "TaxCategory - 860018"], ["updated_at", "2014-11-12 19:46:03.033639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:46:03.035705"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:46:03.035705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:46:03.037280"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:46:03.037280"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:46:03.038081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nick@rutherfordshields.info' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216268891xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:06.703351"], ["email", "nick@rutherfordshields.info"], ["encrypted_password", "30c52eb9035853010fa023f07b17c5c923bbea7928e187e42801e2eb07c213f58e9407a883286a62e7240f04118f9b62eca46c8436daae00710030d61f3c7db9"], ["login", "nick@rutherfordshields.info"], ["password_salt", "7ApgTrZgxsvX2z44Uxa9"], ["updated_at", "2014-11-12 19:47:06.703351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:06.740991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:06.750588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:06.760366"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:06.760366"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:06.780517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:06.781958"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:47:06.781958"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R820681399' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R820681399%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R820681399' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'X8BufbN_DlHok848eDgzIw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:47:06.798749"], ["currency", "USD"], ["email", "nick@rutherfordshields.info"], ["guest_token", "X8BufbN_DlHok848eDgzIw"], ["number", "R820681399"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:47:06.798749"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:06.849280"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 19:47:06.849280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 92534' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:06.858833"], ["description", "Sunt nulla repudiandae accusantium ipsum."], ["name", "TaxCategory - 92534"], ["updated_at", "2014-11-12 19:47:06.858833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:06.881835"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:06.881835"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-6143' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-6143' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:06.845207"], ["created_at", "2014-11-12 19:47:06.886846"], ["description", "Aspernatur aut est ratione cupiditate sunt. Corporis illo quidem architecto cumque non dolorem saepe. Odit sapiente quam laborum et voluptates qui alias. Autem est optio ipsa sit est. Quisquam veniam corrupti rerum repudiandae."], ["name", "Product #1 - 6143"], ["shipping_category_id", 1], ["slug", "product-1-6143"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:06.886846"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:47:06.889474"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:06.896768' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:06.898011' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:06.911464' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:06.912635' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:06.933473"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:06.933473"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:06.934735' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:06.935320' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:06.936538' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:06.937039' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:06.946943' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:06.947532' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:06.948068' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:06.949715"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:06.950832' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:06.951319' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:06.951779' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:06.952317' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:06.952747' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:06.974382"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:06.974382"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-6143' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:06.989896' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:07.055021' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-263' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-263' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:07.062072"], ["created_at", "2014-11-12 19:47:07.066014"], ["description", "Enim ullam voluptatem doloribus deleniti modi autem asperiores eaque. Sequi rem aut at non suscipit qui. Et laboriosam consectetur dolor cum et molestiae. Neque eum maxime et nihil minima cumque autem ullam. Ut impedit doloribus suscipit est facilis pariatur a.\nDucimus et unde optio ipsam voluptas voluptatem blanditiis consequatur. Voluptatem libero quaerat voluptas sapiente porro. Sed dolor atque quis consequatur. Quia dolore iure dicta doloremque et. Vitae totam rerum nisi labore quisquam sed nesciunt sint.\nEt enim placeat esse autem mollitia provident voluptatem. Aut maiores nulla non cupiditate aut. Consequatur assumenda ad dolor facilis et maiores. Doloribus atque maxime autem neque molestias.\nAtque molestiae enim alias voluptas deleniti aliquam. Neque qui et corrupti natus omnis aliquam voluptates ex. Voluptas inventore ut veritatis vitae nulla in. Illo est quisquam esse error. Consectetur quos est non eos ut veniam."], ["name", "Product #2 - 263"], ["shipping_category_id", 1], ["slug", "product-2-263"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.066014"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 19:47:07.068136"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.070090' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.071128' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.072409' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.072953' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.075765"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:07.075765"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.076703' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.077185' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.078280' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.078771' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.082657' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.083254' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.083792' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.085338"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.086026' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.086463' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.086928' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.087569' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.088004' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:07.092597"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.092597"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-263' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.098218' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:07.103681' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-8410' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-8410' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:07.108980"], ["created_at", "2014-11-12 19:47:07.112671"], ["description", "Molestiae sit nemo qui nulla voluptatum qui asperiores. Voluptatibus voluptas sint repellat velit maxime et. Recusandae ratione consequatur sit rem esse.\nSint nostrum quibusdam delectus voluptatem officia consequatur dolorem dolores. Quo consequatur autem enim est aut itaque. Debitis neque tempora enim facere quo ab. Quod neque blanditiis excepturi fugit corporis laboriosam. Omnis officia ad aliquam sint expedita.\nFugit facilis ducimus sed quae deleniti molestias impedit. Rerum inventore voluptatum reprehenderit sunt. Optio voluptate reiciendis earum quod delectus libero commodi accusantium."], ["name", "Product #3 - 8410"], ["shipping_category_id", 1], ["slug", "product-3-8410"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.112671"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:47:07.114835"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.116635' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.117646' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.118951' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.119480' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.122255"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:07.122255"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.123176' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.123682' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.124767' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.125249' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.129124' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.129598' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.130114' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.131646"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.132301' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.132746' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.133205' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.133746' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.134189' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:07.139034"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.139034"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-8410' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.149109' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:07.155269' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-5008' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-5008' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:07.160312"], ["created_at", "2014-11-12 19:47:07.163838"], ["description", "Voluptatibus consequatur saepe eaque voluptatem minima sit vel. Dolor minus et error atque aut. Omnis iusto iste quia officia reprehenderit illo fugiat. Quasi veniam quaerat quia est deserunt dicta consectetur.\nVoluptates reprehenderit eos qui consequatur earum repudiandae. Doloremque laudantium eligendi alias occaecati repudiandae ipsam. Molestiae aut est suscipit optio dolorum. Quisquam voluptas tempore sit omnis esse doloremque totam dicta. Velit assumenda voluptatum a nulla consequuntur possimus fugit vero."], ["name", "Product #4 - 5008"], ["shipping_category_id", 1], ["slug", "product-4-5008"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.163838"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-11-12 19:47:07.165839"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.167648' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.168695' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.169891' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.170450' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.173274"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:07.173274"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.174166' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.174632' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.175744' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.176221' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.179964' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.180475' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.180981' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.182532"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.183191' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.183638' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.184107' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.184662' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.185148' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:07.190467"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.190467"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-5008' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.200149' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:07.206263' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-2619' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-2619' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:07.211768"], ["created_at", "2014-11-12 19:47:07.215432"], ["description", "Voluptates reiciendis alias voluptatum eaque temporibus. Voluptatem voluptas et rerum reprehenderit. Aperiam mollitia libero autem quaerat.\nDolor similique velit voluptatem quasi sed tempore sequi ullam. Ratione placeat exercitationem repellat quidem. Quam dolore autem molestias tempora est. Saepe ipsa itaque molestiae velit id quod. Dolorem sed et enim consequatur quibusdam provident sit.\nVoluptatem fuga suscipit accusamus quasi. Illum ab aut magnam impedit in quia earum veniam. Sint sit et laudantium corporis quia. Quae sunt ut nihil est natus ut."], ["name", "Product #5 - 2619"], ["shipping_category_id", 1], ["slug", "product-5-2619"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.215432"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:47:07.217587"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.219465' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.220538' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.221764' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.222365' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.225237"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:07.225237"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.226117' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.226635' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.227707' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.228245' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.232057' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.232584' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.233112' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.234710"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.235384' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.235856' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.236344' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.236911' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.237392' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:07.245336"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.245336"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-2619' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.254758' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:07.260389' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:07.277087"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:07.277087"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.280619"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:07.280619"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.281526' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.282681' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.283892' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.284457' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.286856"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:07.286856"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.287767' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.288822' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.289972' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.290473' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.292930"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:07.292930"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.293738' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.294743' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.295881' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.296455' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.299161"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:07.299161"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.300126' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.301180' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.302347' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.302839' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.305206"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:07.305206"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.306035' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.307057' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.308527' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.309089' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H07271432584%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:07.314849"], ["number", "H07271432584"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:47:07.314849"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.315974' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:07.321782' WHERE "spree_shipments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.339595"], ["description", "Earum molestias consectetur ducimus adipisci aspernatur occaecati."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:47:07.339595"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.342648"], ["updated_at", "2014-11-12 19:47:07.342648"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:07.383856"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:07.383856"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:47:07.384907"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:47:07.384907"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.386658"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:07.386658"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:07.400379"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:07.400379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.414597"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:07.414597"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.415694' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.416331' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.417752"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:07.417752"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.418421' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.418906' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.420229"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:07.420229"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.420850' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.421289' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.422555"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:07.422555"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.423194' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.423645' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.424903"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:07.424903"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.425537' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.425991' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:47:07.441904' WHERE "spree_orders"."id" = 1  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Spree::User Exists (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tyson.murray@simoniswiza.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216279522xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:07.463667"], ["email", "tyson.murray@simoniswiza.ca"], ["encrypted_password", "ead6c5c6b42c92be49e36ddba1de730a881aed68dd6ecbe6489563d528f701a77ca9e4209b2754e52f4acc931e63eb8efbb636969563c7a8d94cfb38802ff1ff"], ["login", "tyson.murray@simoniswiza.ca"], ["password_salt", "J3b5B1_SoMsymAVVgkWs"], ["updated_at", "2014-11-12 19:47:07.463667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:07.468222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:07.469923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:07.471357"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:07.471357"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:07.473935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:07.475230"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:47:07.475230"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153423385' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R153423385%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153423385' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XIK7BKYI6UmFZAzSj_Dcfg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:47:07.481715"], ["currency", "USD"], ["email", "tyson.murray@simoniswiza.ca"], ["guest_token", "XIK7BKYI6UmFZAzSj_Dcfg"], ["number", "R153423385"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:47:07.481715"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:07.489791"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 19:47:07.489791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 297699' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.492576"], ["description", "Quasi sunt minus harum autem."], ["name", "TaxCategory - 297699"], ["updated_at", "2014-11-12 19:47:07.492576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:07.495928"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:07.495928"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-453' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-453' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:07.488555"], ["created_at", "2014-11-12 19:47:07.500289"], ["description", "Qui corporis delectus voluptatem accusamus aliquam. Nesciunt sunt corporis minima provident. Omnis ut odio in ut nulla in fuga. Eius culpa fugiat deserunt et. Ut quia asperiores iure saepe maiores tempore.\nConsequuntur in rerum sunt a nam voluptas quos enim. Distinctio eligendi accusantium nesciunt vel exercitationem. Eius unde error et iure reiciendis. Corrupti accusantium et in autem veniam unde quos fugiat."], ["name", "Product #6 - 453"], ["shipping_category_id", 1], ["slug", "product-6-453"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.500289"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-11-12 19:47:07.502865"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.504940' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.506146' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.507419' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.508013' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.510962"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:07.510962"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.511874' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.512369' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.513387' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.529713' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.534401' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.534996' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.535521' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.537172"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.537813' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.538287' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.538769' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.539353' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.539840' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.4ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:07.544511"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.544511"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-453' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.555006' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:07.561279' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-3250' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-3250' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:07.565807"], ["created_at", "2014-11-12 19:47:07.569439"], ["description", "Ut autem delectus suscipit repellendus sunt temporibus. In molestias autem consequuntur voluptatem id accusamus. Doloremque quis molestias praesentium illo explicabo veritatis impedit harum. Non vel molestias ipsum id deserunt modi qui eius."], ["name", "Product #7 - 3250"], ["shipping_category_id", 1], ["slug", "product-7-3250"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.569439"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-11-12 19:47:07.571626"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.573574' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.574649' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.575893' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.576431' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.579245"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:07.579245"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.580150' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.580673' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.581763' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.582268' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.586037' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.586570' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.587081' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.588666"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.589319' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.589801' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.590294' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.590859' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.591306' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:07.595931"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.595931"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-3250' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.601535' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:07.606885' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-2140' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-2140' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:07.612036"], ["created_at", "2014-11-12 19:47:07.615683"], ["description", "Earum autem unde sunt neque. Velit molestiae quibusdam voluptates atque. Doloribus temporibus libero placeat et fugiat sed. Nisi saepe velit natus nobis sint nesciunt ipsum. Est cupiditate quia et ut nesciunt.\nPorro est sit culpa autem ut sit fuga. In voluptatum enim omnis animi dolorum. Dolor consequatur quidem reprehenderit aut ipsam. Quas at id qui dicta sapiente voluptate et eos."], ["name", "Product #8 - 2140"], ["shipping_category_id", 1], ["slug", "product-8-2140"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.615683"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-11-12 19:47:07.617820"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.619675' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.620699' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.622057' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.622653' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.625801"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:07.625801"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.626716' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.627234' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.628307' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.628790' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.632509' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.633027' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.633572' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.635399"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.636107' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.636583' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.637143' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.637728' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.638167' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:07.642770"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.642770"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-2140' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.648723' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:07.655029' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-7457' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-7457' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:07.661396"], ["created_at", "2014-11-12 19:47:07.665134"], ["description", "Cumque labore nemo quisquam et nihil fuga error. Ut aut eligendi rerum recusandae. Est inventore autem consequatur quam est nihil. Quo veniam provident amet accusantium vero sed unde. Amet id nobis rerum quod.\nVeritatis itaque aut qui consectetur non assumenda. Alias in et omnis sit molestiae eos dicta. Cupiditate officiis quisquam autem unde omnis quasi quibusdam.\nAliquid aliquam assumenda fuga aspernatur autem necessitatibus et eum. Minus fugiat odio hic dolorem vel autem earum. Rerum est alias asperiores ut est minima exercitationem. Eum accusamus dignissimos voluptate sed quia.\nUllam autem voluptatem et et ducimus voluptas dolores unde. Sed in eos et nemo aut nulla occaecati aut. Voluptatem asperiores eum atque earum. Id sit officia provident sit in fuga."], ["name", "Product #9 - 7457"], ["shipping_category_id", 1], ["slug", "product-9-7457"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.665134"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-11-12 19:47:07.667261"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.669237' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.670295' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.671573' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.672112' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.674921"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:07.674921"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.675839' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.676370' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.677472' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.677963' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.681888' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.682498' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.683051' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.684869"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.685539' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.686017' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.686553' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.687220' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.687801' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:07.695786"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.695786"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-7457' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.704230' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:07.710305' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-4583' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-4583' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:07.716551"], ["created_at", "2014-11-12 19:47:07.720254"], ["description", "Voluptatem minima accusantium esse impedit. Neque repellat tempora perspiciatis delectus. Nam autem quis consequuntur dolores voluptate.\nAnimi maxime nihil non molestiae illum debitis et. Architecto et reprehenderit sed aut quas laboriosam. Earum voluptatum tempore repudiandae laudantium officia. Sint quia aut libero quasi nesciunt non tempore corporis. Consequatur itaque quo similique architecto earum.\nQuod repellendus ut sit tempora. Doloremque placeat aliquam eum molestiae. Id qui ipsa et quos mollitia nam.\nLaboriosam architecto fugit amet qui. Eos voluptatem dolor voluptatem ut itaque adipisci soluta et. Aliquid quia eveniet ea dolores voluptas sed illo. Aut recusandae eum numquam aut dolorem in."], ["name", "Product #10 - 4583"], ["shipping_category_id", 1], ["slug", "product-10-4583"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.720254"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-11-12 19:47:07.722411"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.724343' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.725440' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.726693' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.727243' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.730081"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:07.730081"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.730961' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.731450' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.732591' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.733082' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.736954' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.737518' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.738043' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.739710"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.740385' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.740886' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.741373' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.741980' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.742444' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:07.747195"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:07.747195"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-4583' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.753139' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:07.758806' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:07.763620"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:07.763620"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.767116"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:07.767116"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.768050' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.769171' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.770366' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.770904' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.773420"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:07.773420"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.774231' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.775286' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.776388' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.776887' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.779257"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:07.779257"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.780111' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.781144' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.782258' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.783620' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.788934"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:07.788934"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.790430' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.792112' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.793851' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.794539' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:07.797629"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:07.797629"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.798647' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.799812' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.800958' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:07.801455' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H10725120831%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:07.804185"], ["number", "H10725120831"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:47:07.804185"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.805128' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:07.808330' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.812418"], ["description", "Corporis qui atque dolor non voluptatem hic quod odio."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:47:07.812418"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.813853"], ["updated_at", "2014-11-12 19:47:07.813853"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:07.823072"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:07.823072"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:47:07.823893"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:47:07.823893"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.825226"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:07.825226"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:07.828025"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:07.828025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.831766"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:07.831766"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.832555' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.833132' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.834488"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:07.834488"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.835127' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.835671' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.837019"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:07.837019"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.837686' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.838164' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.839491"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:07.839491"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.840194' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.840641' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.841996"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:07.841996"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.842646' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.843076' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:47:07.851491' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.873557"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:47:07.873557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.887754"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:47:07.887754"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ella_hessel@jonesbogisich.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216272913xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:07.891331"], ["email", "ella_hessel@jonesbogisich.co.uk"], ["encrypted_password", "1cc9ad0ac33ba529369ba77fe30c4c67538964cd84bab46d9dc01e7319a6da6bf142fdd4e36db5687aa03ab2c52d804041349f1d821183f4e0f97fc72fac0bc0"], ["login", "ella_hessel@jonesbogisich.co.uk"], ["password_salt", "oZiYvH914bDozxmrJYpK"], ["updated_at", "2014-11-12 19:47:07.891331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:07.894204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:07.895681"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:47:07.895681"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R627483732' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R627483732%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R627483732' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'tFPQWtGqetMIU1Qh5DTJCQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:47:07.901604"], ["currency", "USD"], ["email", "ella_hessel@jonesbogisich.co.uk"], ["guest_token", "tFPQWtGqetMIU1Qh5DTJCQ"], ["number", "R627483732"], ["state", "cart"], ["updated_at", "2014-11-12 19:47:07.901604"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'KHPRGVXJ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:47:07.914013"], ["identifier", "KHPRGVXJ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:47:07.914013"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.917282' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-141500' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-141500"], ["updated_at", "2014-11-12 19:47:07.918702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (4.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jessie.bergstrom@lockmanwitting.us' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216277574xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:07.963618"], ["email", "jessie.bergstrom@lockmanwitting.us"], ["encrypted_password", "452dfb6d4a08ad4802c8bb0cf23f03d6aa757b4fd7a321adaf56114607d4f06698b5a3c6579364ea88c95d4ab95bb89213595da34d979af888c2f98cb85940dd"], ["login", "jessie.bergstrom@lockmanwitting.us"], ["password_salt", "JCvs4had1MXbAxqY_REb"], ["updated_at", "2014-11-12 19:47:07.963618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:07.970164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:07.972180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:07.974408"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:07.974408"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:07.977854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:07.979286"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:47:07.979286"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R478783559' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R478783559%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R478783559' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xotTo3DpMbXpXWUtANxgKw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:47:07.985281"], ["currency", "USD"], ["email", "jessie.bergstrom@lockmanwitting.us"], ["guest_token", "xotTo3DpMbXpXWUtANxgKw"], ["number", "R478783559"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:47:07.985281"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:07.993768"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 19:47:07.993768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 118100' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:07.998421"], ["description", "Et qui officia quisquam saepe ducimus."], ["name", "TaxCategory - 118100"], ["updated_at", "2014-11-12 19:47:07.998421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:08.018693"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:08.018693"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-6624' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-6624' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:07.992649"], ["created_at", "2014-11-12 19:47:08.022801"], ["description", "Non aspernatur veritatis alias sunt unde. Voluptatibus qui ducimus pariatur totam omnis soluta illo. Quo assumenda delectus nisi voluptates dolorem animi maiores.\nItaque amet est ipsam at mollitia voluptatum maiores. Natus corporis veniam dolores totam. Ex qui assumenda blanditiis non distinctio tenetur.\nEt quo et excepturi sequi. Voluptatibus illo reiciendis earum quisquam a delectus. Vel eaque qui iusto quae. Qui rerum illo rerum voluptates.\nQuia officiis similique sunt sapiente tenetur. Perspiciatis fuga dolor aut inventore dicta aliquid. Vitae fuga et reiciendis quasi voluptatem enim tenetur. Natus autem ipsa dolorem sed sunt."], ["name", "Product #11 - 6624"], ["shipping_category_id", 1], ["slug", "product-11-6624"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.022801"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 19:47:08.025041"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.027021' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.028141' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.029426' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.030015' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.033013"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:08.033013"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.034005' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.034492' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.035643' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.036145' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.040110' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.040647' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.041164' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.042722"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.043360' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.043881' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.044348' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.044913' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.045371' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:08.050211"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.050211"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-6624' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.056098' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.061716' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1818' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1818' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:08.066631"], ["created_at", "2014-11-12 19:47:08.070457"], ["description", "Quos quae asperiores rerum necessitatibus error quis et. Animi dolorem est unde ipsum est. Aut exercitationem est qui laudantium porro.\nVoluptatibus dicta repellat reiciendis sit alias dolorem hic doloribus. Sunt beatae aut nam praesentium pariatur. Qui aut perspiciatis ipsa possimus harum. Inventore vitae iure aut voluptatem."], ["name", "Product #12 - 1818"], ["shipping_category_id", 1], ["slug", "product-12-1818"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.070457"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 19:47:08.072603"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.074554' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.075669' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.076908' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.077456' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.080344"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:08.080344"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.081305' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.081798' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.082857' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.083341' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.087268' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.087778' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.088323' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.089891"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.090536' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.090971' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.091488' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.092067' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.092509' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:08.097228"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.097228"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1818' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.102915' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.108335' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-5925' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-5925' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:08.112945"], ["created_at", "2014-11-12 19:47:08.116635"], ["description", "Soluta eos distinctio autem praesentium consequatur. Ducimus et praesentium unde qui qui omnis nostrum. Nulla voluptatem esse vel modi quidem. Similique aut veritatis consequuntur recusandae vitae. Commodi adipisci ipsa omnis qui saepe quis."], ["name", "Product #13 - 5925"], ["shipping_category_id", 1], ["slug", "product-13-5925"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.116635"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-11-12 19:47:08.118773"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.120656' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.121679' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.122848' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.123419' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.126287"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:08.126287"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.127190' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.127681' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.128788' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.129259' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.133049' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.133572' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.134094' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-13' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.135663"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.136293' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.136757' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.137206' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.137799' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.138259' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:08.142915"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.142915"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-5925' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.148797' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.154170' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-4042' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-4042' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:08.159795"], ["created_at", "2014-11-12 19:47:08.163789"], ["description", "Autem dolores expedita suscipit inventore fuga perferendis. A libero nostrum similique accusantium ut nesciunt. Optio ducimus amet iusto nostrum. Id veritatis voluptas quasi quo et doloribus non.\nSoluta tempora quia saepe nihil pariatur. Sapiente laudantium quidem fugiat consequuntur delectus mollitia facere nihil. Omnis perspiciatis odio consequatur dignissimos harum.\nAdipisci repellendus aperiam non cum ut. Veniam quo blanditiis consequuntur voluptas. Porro quas velit ipsam inventore sit ut quaerat. Eos esse suscipit ut aut non. Iste tempora tenetur nam voluptatem natus non."], ["name", "Product #14 - 4042"], ["shipping_category_id", 1], ["slug", "product-14-4042"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.163789"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-14"], ["updated_at", "2014-11-12 19:47:08.168618"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.171889' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.173559' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.175316' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.176075' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.179010"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:08.179010"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.179936' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.180455' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.181572' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.182070' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.185954' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.186470' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.186986' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-14' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.188603"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.189239' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.189700' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.190182' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.190812' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.191281' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:08.195953"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.195953"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-4042' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.206020' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.212455' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-8754' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-8754' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:08.218582"], ["created_at", "2014-11-12 19:47:08.222290"], ["description", "Eligendi aspernatur cumque aut suscipit doloribus nemo. Dolor optio laudantium et velit molestiae. Et expedita suscipit exercitationem quam. Laudantium accusamus nemo minus alias ipsum in.\nSunt hic molestiae illo ut sit nobis dolore autem. Rem consectetur similique perspiciatis harum. Itaque cum aut placeat consequatur aspernatur numquam unde voluptates. Laboriosam asperiores voluptatum quia natus officia aut. Et rerum praesentium inventore id harum autem.\nEt nihil magni expedita eum minus. Et quia delectus quae repudiandae eveniet. Cum nobis omnis explicabo ut consequatur quasi reiciendis voluptas.\nEt hic temporibus ullam est ad adipisci sint nulla. Nihil ad harum odit occaecati ex. Quaerat recusandae modi quo minus."], ["name", "Product #15 - 8754"], ["shipping_category_id", 1], ["slug", "product-15-8754"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.222290"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-11-12 19:47:08.224408"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.226270' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.227325' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.228522' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.229049' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.235330"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:08.235330"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.236928' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.237761' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.239533' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.240384' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.244888' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.245425' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.246006' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-15' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.247586"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.248233' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.248717' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.249204' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.249789' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.250291' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:08.255003"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.255003"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-8754' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.260739' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.271133' WHERE "spree_line_items"."id" = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:08.276945"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:08.276945"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.280476"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:08.280476"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.281419' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.282541' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.283749' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.284315' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.286834"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:08.286834"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.287687' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.288773' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.289944' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.290444' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.292827"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:08.292827"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.293672' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.294708' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.295836' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.296406' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.299056"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:08.299056"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.299988' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.301152' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.302364' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.302853' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.305298"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:08.305298"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.306162' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.307245' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.308485' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.309043' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H12020763660%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:08.311912"], ["number", "H12020763660"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:47:08.311912"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.312941' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.315954' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.319723"], ["description", "Vitae exercitationem cumque reprehenderit iure vero voluptatum minima rem."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:47:08.319723"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.322417"], ["updated_at", "2014-11-12 19:47:08.322417"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:08.335621"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:08.335621"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:47:08.336394"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:47:08.336394"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.337698"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:08.337698"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:08.340558"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:08.340558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.344332"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:08.344332"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.345127' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.345718' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.347116"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:08.347116"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.347791' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.348292' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.349652"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:08.349652"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.350326' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.350822' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.352158"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:08.352158"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.352841' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.353309' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.354632"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:08.354632"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.355298' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.355728' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:47:08.364128' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.367764"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:47:08.367764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.369830"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:47:08.369830"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'arjun.hilll@shields.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216286905xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:08.372846"], ["email", "arjun.hilll@shields.com"], ["encrypted_password", "2654d80e2dc90c44c1040f322276f6f4ee34997e9ef7c8a2a1a60857bbd04b97f64f9af2d25f448b8310708bb518e3394b1b3f62b090d942b16c786784939fdd"], ["login", "arjun.hilll@shields.com"], ["password_salt", "uYftTH-jPkR3vn2Lk_B6"], ["updated_at", "2014-11-12 19:47:08.372846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:08.375476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:08.376893"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:47:08.376893"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R088766134' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R088766134%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R088766134' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'KLZhIuCfGH9P5RDw1dkwIQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:47:08.382350"], ["currency", "USD"], ["email", "arjun.hilll@shields.com"], ["guest_token", "KLZhIuCfGH9P5RDw1dkwIQ"], ["number", "R088766134"], ["state", "cart"], ["updated_at", "2014-11-12 19:47:08.382350"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'V464CU5A' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:47:08.384794"], ["identifier", "V464CU5A"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:47:08.384794"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.387046' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-551310' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-551310"], ["updated_at", "2014-11-12 19:47:08.388224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rachael@armstrong.info' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216286026xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:08.407321"], ["email", "rachael@armstrong.info"], ["encrypted_password", "0f3291eb0339e75f89fc912216bc13c9e61ba0125f2c666b266ded7fa6cc7a03ec5704a2702eed2c8607f3dd4c19fbbda678f4ec5977ee93a04800e51ad4496a"], ["login", "rachael@armstrong.info"], ["password_salt", "f6ayw4_MbGCcKATArkgs"], ["updated_at", "2014-11-12 19:47:08.407321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:08.410637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:08.412059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:08.413677"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:08.413677"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:08.416283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:08.417608"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:47:08.417608"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R296279578' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R296279578%') Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R296279578' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'teqHy5fq5mA34FgqpKn31w' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:47:08.426583"], ["currency", "USD"], ["email", "rachael@armstrong.info"], ["guest_token", "teqHy5fq5mA34FgqpKn31w"], ["number", "R296279578"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:47:08.426583"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:08.436308"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 19:47:08.436308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 822430' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.439140"], ["description", "Blanditiis occaecati atque soluta sint."], ["name", "TaxCategory - 822430"], ["updated_at", "2014-11-12 19:47:08.439140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:08.442764"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:08.442764"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-9331' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-9331' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:08.435210"], ["created_at", "2014-11-12 19:47:08.446635"], ["description", "Voluptatem molestiae enim magni ab voluptatem ratione. Itaque aut ipsam omnis nobis a eos. Quia sunt et dolorem veniam inventore."], ["name", "Product #16 - 9331"], ["shipping_category_id", 1], ["slug", "product-16-9331"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.446635"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-16"], ["updated_at", "2014-11-12 19:47:08.448829"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.450816' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.451918' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.453201' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.453850' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.457311"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:08.457311"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.458399' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.458988' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.460174' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.460687' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.464762' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.465324' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.465867' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-16' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.467526"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.468186' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.468677' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.469178' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.469903' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.470499' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:08.488353"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.488353"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-9331' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.493756' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.499312' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-9063' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-9063' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:08.504889"], ["created_at", "2014-11-12 19:47:08.508555"], ["description", "Enim et voluptatum eveniet fugit dolorem nulla. Maiores mollitia et dolorum quia. Quaerat rerum ex quos odit.\nSapiente quod inventore nisi amet. Commodi quidem consequuntur a quisquam voluptatibus doloribus rerum. Laudantium pariatur molestiae ut amet et in consequatur. Voluptatem ut necessitatibus ipsa autem voluptates in consequatur.\nVoluptatem qui dolor minima sapiente voluptas. In minima nisi officia nostrum libero dolor. Soluta nemo aut quos ut veniam. Non voluptate impedit laborum blanditiis maiores atque quaerat autem."], ["name", "Product #17 - 9063"], ["shipping_category_id", 1], ["slug", "product-17-9063"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.508555"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-17"], ["updated_at", "2014-11-12 19:47:08.510708"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.512709' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.513779' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.514969' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.515527' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.518377"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:08.518377"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.519297' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.519829' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.520944' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.521443' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.525172' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.525758' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.526280' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-17' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.527893"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.528574' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.529069' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.529543' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.530126' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.530587' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:08.535291"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.535291"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-9063' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.540796' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.546249' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-7639' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-7639' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:08.552139"], ["created_at", "2014-11-12 19:47:08.555765"], ["description", "Aut nihil nemo quod corporis. Sed dolores consequatur laborum sint. Accusamus qui quidem incidunt placeat sunt unde quaerat. Dolorum eum impedit ut et et cum.\nEst voluptate saepe tempora ut sunt beatae molestiae. Ab quia culpa dolores repellat aut ea id officiis. Nobis officia debitis dolorem fugit voluptatum. Minima quia doloremque error molestiae aut et. Ratione suscipit recusandae fuga at error.\nIure quod delectus quisquam possimus et. Quia est molestias laboriosam molestiae odit exercitationem velit. Quod non accusamus aut nam. Cupiditate a sed dolorum est qui animi repudiandae. Rem vel dolor ullam corporis."], ["name", "Product #18 - 7639"], ["shipping_category_id", 1], ["slug", "product-18-7639"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.555765"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-18"], ["updated_at", "2014-11-12 19:47:08.557860"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.559725' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.560793' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.561994' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.562518' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.565273"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:08.565273"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.566188' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.566712' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.567791' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.568299' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.572007' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.572520' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.573055' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-18' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.574691"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.575333' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.575841' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.576368' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.576919' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.577371' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:08.582191"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.582191"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-7639' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.587584' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.592938' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-669' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-669' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:08.597072"], ["created_at", "2014-11-12 19:47:08.600790"], ["description", "Animi qui in eligendi autem cumque perferendis unde. Ut dolores quibusdam reiciendis labore qui quia. Est maiores totam a voluptas earum vitae."], ["name", "Product #19 - 669"], ["shipping_category_id", 1], ["slug", "product-19-669"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.600790"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-19"], ["updated_at", "2014-11-12 19:47:08.602871"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.604687' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.605748' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.606985' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.607518' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.610347"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:08.610347"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.611225' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.611710' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.612802' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.613299' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.617165' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.617678' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.618183' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-19' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.619732"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.620354' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.620825' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.621297' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.621892' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.622348' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:08.626977"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.626977"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-669' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.632697' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.639575' WHERE "spree_line_items"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-7672' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-7672' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:08.649508"], ["created_at", "2014-11-12 19:47:08.653654"], ["description", "Ad aut eligendi occaecati deserunt ut quisquam. Repellendus maxime unde quae ut sit esse. Dolore et voluptas omnis sequi quia tempora delectus. Qui quae est aut repellendus quisquam voluptas.\nVoluptatem deserunt quam aut consequuntur qui ullam. Sint quasi occaecati quas ea. Nisi dolore neque numquam inventore soluta delectus ducimus suscipit. Libero unde quo iure quia inventore. Sapiente et repellat odit sint sed.\nEx et blanditiis debitis sed eius et quo. Quaerat incidunt non ipsa excepturi quibusdam quidem. Qui eos dicta a sed ad sed ut."], ["name", "Product #20 - 7672"], ["shipping_category_id", 1], ["slug", "product-20-7672"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.653654"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-20"], ["updated_at", "2014-11-12 19:47:08.655756"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.657650' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.658681' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.659881' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.660440' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.663302"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:08.663302"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.664173' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.664675' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.665737' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.666225' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.670339' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.670888' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.671428' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-20' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.673303"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.673956' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.674408' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.674895' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.675472' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.675948' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:08.680757"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.680757"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-7672' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.686403' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.691963' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:08.696985"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:08.696985"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.701011"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:08.701011"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.702056' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.703257' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.704618' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.705202' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.707899"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:08.707899"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.708794' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.709909' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.711106' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.711647' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.714175"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:08.714175"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.715077' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.716149' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.717390' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.717980' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.720691"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:08.720691"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.721624' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.722668' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.723793' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.724262' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.726665"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:08.726665"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.727493' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.728509' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.729663' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.730239' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H61316265345%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:08.733086"], ["number", "H61316265345"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:47:08.733086"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.734051' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.737041' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.740802"], ["description", "Dolores commodi consequatur est nobis."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:47:08.740802"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.742287"], ["updated_at", "2014-11-12 19:47:08.742287"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:08.751055"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:08.751055"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:47:08.751851"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:47:08.751851"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.753235"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:08.753235"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:08.756012"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:08.756012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.759702"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:08.759702"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.760513' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.761124' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.762541"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:08.762541"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.763186' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.763648' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.764915"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:08.764915"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.765606' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.766093' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.767448"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:08.767448"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.768115' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.768603' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.769915"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:08.769915"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.770581' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.771033' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:47:08.779502' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.783199"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:47:08.783199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.785249"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:47:08.785249"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jaclyn_kunze@orn.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216289217xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:08.788196"], ["email", "jaclyn_kunze@orn.ca"], ["encrypted_password", "1af8df570197b577e007d26c763a02a4e5ff1ec397556b49e91c842d0bad496c35c57eb76a15c68326cea3e7b6fa1bcbc35a65a0e3e47eb650a81a59d1d9ace5"], ["login", "jaclyn_kunze@orn.ca"], ["password_salt", "FPkvB_ahDJWxyWCbXsMx"], ["updated_at", "2014-11-12 19:47:08.788196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:08.790821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:08.792285"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:47:08.792285"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R948485290' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R948485290%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R948485290' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'O6uqeFYfWuh608ekk84Hsg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:47:08.797643"], ["currency", "USD"], ["email", "jaclyn_kunze@orn.ca"], ["guest_token", "O6uqeFYfWuh608ekk84Hsg"], ["number", "R948485290"], ["state", "cart"], ["updated_at", "2014-11-12 19:47:08.797643"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '66XY4C4N' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:47:08.800100"], ["identifier", "66XY4C4N"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:47:08.800100"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.802345' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-411432' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-411432"], ["updated_at", "2014-11-12 19:47:08.803510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (4.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'josefina_kuvalis@ledner.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216282278xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:08.823332"], ["email", "josefina_kuvalis@ledner.name"], ["encrypted_password", "434f31902675125a368b19667de710970cdc755b95a8a2d524c2b24cda087aa8ba100458951920195b8bb123c6e512ccd9aa2f775a687844efe8320ead1b4ccb"], ["login", "josefina_kuvalis@ledner.name"], ["password_salt", "Q6Zz1bMaztA_-f1qs9ZK"], ["updated_at", "2014-11-12 19:47:08.823332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:08.826704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:08.828103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:08.829567"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:08.829567"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:08.832233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:08.833549"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:47:08.833549"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R834941535' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R834941535%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R834941535' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'M6KiSCRxEf-KYWIPY4S1EQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:47:08.839782"], ["currency", "USD"], ["email", "josefina_kuvalis@ledner.name"], ["guest_token", "M6KiSCRxEf-KYWIPY4S1EQ"], ["number", "R834941535"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:47:08.839782"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:08.848034"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 19:47:08.848034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 457262' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:08.850750"], ["description", "Saepe et ex et numquam."], ["name", "TaxCategory - 457262"], ["updated_at", "2014-11-12 19:47:08.850750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:08.854088"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:08.854088"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-8604' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-8604' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:08.846926"], ["created_at", "2014-11-12 19:47:08.858161"], ["description", "Ipsa numquam quae id ut quo et. Qui aliquam similique cumque et libero. Facilis culpa atque sed vero.\nDucimus ex ea dolor soluta ipsum mollitia necessitatibus. Aut velit ex dolorem voluptatem. Iusto omnis nesciunt repellendus nemo. Totam eos eos non amet. Quaerat consequatur voluptas nemo est qui harum.\nUnde amet autem laborum voluptas dolorem facilis quo. Id odit voluptatum necessitatibus quae iste reiciendis aut pariatur. Cum modi omnis earum cumque. Non sed cum totam incidunt reiciendis nihil consectetur tempore. Voluptatibus enim nihil qui quia."], ["name", "Product #21 - 8604"], ["shipping_category_id", 1], ["slug", "product-21-8604"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.858161"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-21"], ["updated_at", "2014-11-12 19:47:08.860462"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.862578' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.863673' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.865019' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.865593' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.868573"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:08.868573"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.869567' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.870097' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.871205' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.871721' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.876331' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.877070' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.877690' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-21' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.879477"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.880214' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.880725' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.881220' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.881816' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.882293' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:08.887305"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.887305"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-8604' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.893109' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.899026' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-2661' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-2661' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:08.918351"], ["created_at", "2014-11-12 19:47:08.922231"], ["description", "Quis at aliquam ut vitae ad debitis natus aspernatur. Aperiam aut laboriosam accusamus delectus quaerat repellendus ut dolor. Assumenda accusantium iure maxime dolores sit debitis aut. Et enim repudiandae et eos nemo laboriosam aut temporibus.\nFugit autem nulla magnam deserunt. Saepe dolorem rerum ea deleniti. Sint repudiandae qui voluptatibus voluptas eos sapiente. Repellat et velit iure aspernatur aliquam nulla doloribus magni.\nVoluptas sit fuga est ut sint. Quis commodi debitis sint repellat optio ut repellendus amet. Et voluptas optio consequatur et ex. Iusto expedita ut exercitationem ut.\nQui ex perspiciatis necessitatibus velit qui. Sequi tenetur repellendus ea et. Explicabo unde velit sit natus commodi minus aut. Eius facere deserunt laudantium quas atque cupiditate distinctio. Rerum velit et enim maiores a natus expedita omnis.\nSint eveniet ipsa ex optio. Sed laborum dolorum et nobis. Quod ut velit facere voluptatem est totam ullam. Cumque voluptas vel voluptates rerum qui quia magnam accusamus. Natus temporibus sunt omnis nisi incidunt."], ["name", "Product #22 - 2661"], ["shipping_category_id", 1], ["slug", "product-22-2661"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.922231"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-22"], ["updated_at", "2014-11-12 19:47:08.924349"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.926336' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.927372' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.928587' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.929121' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.932035"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:08.932035"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.932997' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.933532' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.934661' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.935171' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.939078' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.939627' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.940139' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-22' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.941748"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.942395' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.942882' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.943356' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.943922' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.944399' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (1.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:08.949043"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.949043"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-2661' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.961873' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:08.969869' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-2529' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-2529' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:08.976539"], ["created_at", "2014-11-12 19:47:08.981197"], ["description", "Enim ut numquam est sunt ut quo. Eos consequatur dolores earum accusantium natus possimus. Iste dolor voluptatem nihil amet. Voluptates deleniti nulla eveniet eius omnis aut impedit earum.\nDolor distinctio amet sint voluptas est sequi sint sed. Exercitationem ut ipsam aut repellat sint eos ipsa recusandae. Sequi assumenda fuga aliquid ipsum autem omnis consequatur. Nisi debitis unde omnis quis quia ab. Officia exercitationem sapiente ratione esse aut qui."], ["name", "Product #23 - 2529"], ["shipping_category_id", 1], ["slug", "product-23-2529"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:08.981197"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-23"], ["updated_at", "2014-11-12 19:47:08.984061"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.986138' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.987209' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.988412' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.988949' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:08.991941"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:08.991941"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.992850' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.993384' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.994498' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.994971' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.998911' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.999407' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:08.999959' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-23' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.001544"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.002189' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.002657' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.003143' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.003739' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.004171' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:09.008772"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.008772"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-2529' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.016205' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:09.025809' WHERE "spree_line_items"."id" = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-6456' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-6456' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:09.031477"], ["created_at", "2014-11-12 19:47:09.035193"], ["description", "Minima ut vel consequatur explicabo ducimus. Cupiditate quod vel vitae qui consequatur debitis commodi. Distinctio rerum quia quia beatae quidem quam sed praesentium.\nNulla nostrum placeat qui officiis et voluptatem. Ipsum quisquam dolorem natus dolore deserunt voluptates aut. Est rerum sed laborum repellendus sapiente animi ipsum aut.\nSuscipit hic provident rerum non blanditiis commodi iusto. Dolores iste commodi voluptate vitae debitis. Eum et et omnis vitae facilis cupiditate."], ["name", "Product #24 - 6456"], ["shipping_category_id", 1], ["slug", "product-24-6456"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.035193"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-24"], ["updated_at", "2014-11-12 19:47:09.037298"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.039290' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.040374' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.041612' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.042180' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.045069"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:09.045069"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.046003' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.046526' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.047661' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.048168' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.052041' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.052544' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.053056' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-24' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.054686"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.055311' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.055790' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.056305' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.056884' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.057642' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:09.062466"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.062466"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-6456' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.068180' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:09.073815' WHERE "spree_line_items"."id" = 4  (0.2ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-246' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-246' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:09.078580"], ["created_at", "2014-11-12 19:47:09.082574"], ["description", "Vitae sint non asperiores ad enim repellat voluptas atque. Dolorum ut sunt repudiandae reprehenderit. Sint sint laborum esse quo sequi. Nobis deleniti autem doloremque natus similique."], ["name", "Product #25 - 246"], ["shipping_category_id", 1], ["slug", "product-25-246"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.082574"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-25"], ["updated_at", "2014-11-12 19:47:09.084681"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.088832' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.090908' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.093160' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.094014' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.098258"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:09.098258"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.099314' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.099817' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.100919' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.101419' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.105295' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.105823' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.106375' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-25' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.107927"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.108552' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.108997' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.109508' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.110094' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.110531' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:09.115312"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.115312"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-246' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.121237' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:09.129143' WHERE "spree_line_items"."id" = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:09.136708"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:09.136708"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.140510"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:09.140510"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.141599' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.143223' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.144682' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.145246' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.147872"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:09.147872"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.148790' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.149923' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.151051' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.151566' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.154110"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:09.154110"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.154945' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.155995' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.157175' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.157743' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.160446"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:09.160446"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.161380' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.162490' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.163676' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.164200' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.166953"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:09.166953"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.167813' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.168884' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.170144' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.170686' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H73575445600%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:09.173496"], ["number", "H73575445600"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:47:09.173496"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.174492' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:09.177465' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.181134"], ["description", "Fuga ut veritatis molestiae dolor in sunt."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:47:09.181134"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.182582"], ["updated_at", "2014-11-12 19:47:09.182582"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:09.191614"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:09.191614"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:47:09.192425"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:47:09.192425"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.193791"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:09.193791"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:09.196560"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:09.196560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.200223"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:09.200223"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.201037' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.201609' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.203015"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:09.203015"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.203680' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.204144' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.205396"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:09.205396"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.206101' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.206555' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.207816"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:09.207816"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.208461' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.208896' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.210206"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:09.210206"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.210835' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.211277' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:47:09.219498' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.223138"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:47:09.223138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.225192"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:47:09.225192"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'elouise.mraz@mills.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216294339xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:09.228118"], ["email", "elouise.mraz@mills.ca"], ["encrypted_password", "3f3e08080c4e9f3be4eb0357670414bfe0f82ce72388798553304cce0860b8f084f00ccbbce39e13d868d13d042f5ca2a7f0c51a51814590d70732592d35fbf6"], ["login", "elouise.mraz@mills.ca"], ["password_salt", "jT--reZV1pWyaexczuFs"], ["updated_at", "2014-11-12 19:47:09.228118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:09.230794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:09.232218"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:47:09.232218"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417745378' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R417745378%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417745378' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'FUBirKHiYF05hYCKzBpWyg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:47:09.237608"], ["currency", "USD"], ["email", "elouise.mraz@mills.ca"], ["guest_token", "FUBirKHiYF05hYCKzBpWyg"], ["number", "R417745378"], ["state", "cart"], ["updated_at", "2014-11-12 19:47:09.237608"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'V8UW5VXR' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:47:09.240021"], ["identifier", "V8UW5VXR"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:47:09.240021"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.242220' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-341221' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-341221"], ["updated_at", "2014-11-12 19:47:09.243403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'queenie@abernathy.name' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216293510xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:09.270632"], ["email", "queenie@abernathy.name"], ["encrypted_password", "9744296ce758b94cd98d970236b74339abe6d7aec84289e5844e60892b06567aeea5eaf15d20e5bfce0fce55c8defbdb96db4a9297a3eea839f2bb7e55e66203"], ["login", "queenie@abernathy.name"], ["password_salt", "TwgBTphG_cM9gPTjTV8t"], ["updated_at", "2014-11-12 19:47:09.270632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:09.276915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:09.279136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:09.281425"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:09.281425"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:09.287484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:09.289949"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:47:09.289949"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R164246994' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R164246994%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R164246994' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '5lEug7RkUqYBghYhBeQT1A' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:47:09.297518"], ["currency", "USD"], ["email", "queenie@abernathy.name"], ["guest_token", "5lEug7RkUqYBghYhBeQT1A"], ["number", "R164246994"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:47:09.297518"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:09.304731"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 19:47:09.304731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 235957' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.307589"], ["description", "Odit quae nisi nostrum laboriosam ut aliquam."], ["name", "TaxCategory - 235957"], ["updated_at", "2014-11-12 19:47:09.307589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:09.313690"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:09.313690"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-4836' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-4836' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:09.303465"], ["created_at", "2014-11-12 19:47:09.320095"], ["description", "Quod sed hic qui vel commodi. Ab voluptates exercitationem illo ut sapiente eligendi. Qui culpa atque sunt est. Officia et laudantium reiciendis quasi exercitationem a velit."], ["name", "Product #26 - 4836"], ["shipping_category_id", 1], ["slug", "product-26-4836"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.320095"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-26"], ["updated_at", "2014-11-12 19:47:09.322941"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.324982' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.326171' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.327483' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.328075' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.331071"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:09.331071"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.332027' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.332535' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.333695' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.334197' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.338205' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.338795' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.339374' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-26' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.341032"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.341756' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.342259' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.342774' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.343360' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.343835' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:09.349576"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.349576"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-4836' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.360045' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:09.367499' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-1254' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-1254' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:09.386317"], ["created_at", "2014-11-12 19:47:09.390625"], ["description", "Ea iure vero aliquam officia quam quia architecto. Et nam dolor possimus occaecati veritatis atque iste. Consequuntur et voluptatem eaque sint quia ipsa sed sapiente.\nRem non qui qui dolorum eum optio ut repellat. Totam rerum voluptatem quae dignissimos et qui voluptates harum. Nobis voluptates dolor et ducimus. Consequatur eum reprehenderit odio neque et sit. Velit reprehenderit delectus est enim.\nSimilique id alias dolorem rem vero eius quo. Recusandae quas maiores rerum id vero qui. Culpa fuga vel sit dolorem ea aperiam. Quidem soluta dolores rem ipsum in aut eos aut.\nRepudiandae mollitia consequuntur architecto accusantium. Sed quasi rerum atque commodi autem tempora occaecati enim. Quisquam voluptatem fuga nisi occaecati cupiditate nobis. Earum harum asperiores nesciunt in. Iure sint consequatur velit fugit cumque quia."], ["name", "Product #27 - 1254"], ["shipping_category_id", 1], ["slug", "product-27-1254"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.390625"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-27"], ["updated_at", "2014-11-12 19:47:09.393031"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.395005' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.396046' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.397239' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.397824' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.400624"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:09.400624"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.401544' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.402055' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.403120' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.403587' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.407488' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.408008' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.408609' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-27' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.410149"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.410791' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.411257' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.411712' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.412260' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.412710' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:09.417383"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.417383"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-1254' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.422996' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:09.428554' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-1952' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-1952' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:09.435164"], ["created_at", "2014-11-12 19:47:09.438894"], ["description", "Vel et illo incidunt velit et sit enim. Autem ipsam ipsum fuga quidem dicta ut quos. Iste deleniti pariatur sit mollitia.\nReiciendis excepturi est sint molestiae. Commodi enim iste accusamus voluptate nostrum. Sint non ratione eum quos magni et velit omnis. Ut in dolore optio nihil quisquam placeat asperiores.\nSed qui voluptas voluptatem enim nostrum. Et commodi est vel perferendis dicta iure ea. Omnis totam maiores omnis quia velit.\nRepudiandae ut suscipit nulla rerum ex vitae et. Quasi non nihil ducimus et sunt iusto ratione voluptatem. Quis dicta dolores dolorem ipsum sint fuga doloribus ullam.\nEnim architecto explicabo reprehenderit at enim dolorem. Ipsum officiis repudiandae et temporibus. Est porro est eos minima aut rerum. Aut pariatur explicabo omnis dignissimos maxime illum. Cum natus dolorem dolore molestias dignissimos."], ["name", "Product #28 - 1952"], ["shipping_category_id", 1], ["slug", "product-28-1952"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.438894"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-28"], ["updated_at", "2014-11-12 19:47:09.441048"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.442904' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.443922' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.445117' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.445696' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.448564"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:09.448564"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.449431' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.449913' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.450969' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.451435' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.455345' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.455835' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.456355' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-28' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.457957"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.458602' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.459079' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.459566' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.460115' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.460579' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:09.465275"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.465275"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-1952' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.475343' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:09.481896' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-7786' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-7786' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:09.486865"], ["created_at", "2014-11-12 19:47:09.490738"], ["description", "Tempora reiciendis aliquam ea laudantium. Totam in non iste repudiandae qui labore eius. Rem laboriosam deserunt laudantium vel aliquam repellendus labore.\nNisi voluptatem qui rem aliquam. Nemo veritatis et nisi modi voluptatem. Sed corporis minus qui nihil iure consequatur accusamus voluptatem. Omnis blanditiis beatae ipsum iste."], ["name", "Product #29 - 7786"], ["shipping_category_id", 1], ["slug", "product-29-7786"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.490738"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-29"], ["updated_at", "2014-11-12 19:47:09.492800"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.494772' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.495843' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.497089' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.497669' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.500495"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:09.500495"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.501415' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.501963' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.503076' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.503585' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.507596' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.508100' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.508639' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-29' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.510289"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.510927' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.511395' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.511885' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.512471' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.512943' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:09.517809"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.517809"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-7786' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.527857' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:09.534157' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-1163' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-1163' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:09.541320"], ["created_at", "2014-11-12 19:47:09.545120"], ["description", "Repellendus quia suscipit alias incidunt hic. Nesciunt minima cupiditate quibusdam id consectetur cumque consequatur. Iusto delectus earum facilis ex dolor quidem eligendi. Ipsam voluptas est labore assumenda sit. Enim aliquam sed reiciendis est ipsa.\nEum alias illo voluptate eveniet accusamus minima culpa aut. Aperiam nemo velit corporis totam velit quibusdam. Voluptatum itaque dolorem ipsa ex quod est tenetur.\nIpsam et quis perspiciatis amet molestiae quod illo aut. Velit aut quia quae quia debitis. Perspiciatis ut ab ut perferendis labore ex ipsam. Facilis voluptatem magnam cumque tenetur.\nNecessitatibus excepturi voluptatem magni et vel illum. Ut vel est aperiam pariatur non. Vero ut harum facere nihil consequatur labore ab. Debitis nisi ut voluptas quia. Vero vel minima laboriosam nihil nihil repellendus.\nMaxime omnis aspernatur omnis sit. Quo dolorem vel nihil eveniet. Sint eos laboriosam aut aut sit a. Aut quasi aut iure optio reiciendis unde. Nam non officia est dolor quaerat quo dolores officiis."], ["name", "Product #30 - 1163"], ["shipping_category_id", 1], ["slug", "product-30-1163"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.545120"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-30"], ["updated_at", "2014-11-12 19:47:09.547206"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.549110' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.550235' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.551495' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.552041' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.554917"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:09.554917"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.555800' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.556330' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.557535' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.558042' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.562043' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.562551' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.563091' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-30' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.564685"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.565318' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.565833' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.566309' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.566898' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.567362' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:09.572129"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.572129"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-1163' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.577952' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:09.583766' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:09.588698"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:09.588698"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.592438"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:09.592438"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.593477' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.594856' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.596068' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.596654' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.601758"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:09.601758"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.603401' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.605188' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.607057' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.608333' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.613786"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:09.613786"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.615243' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.616918' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.618675' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.619371' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.624538"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:09.624538"], ["variant_id", 4]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.626202' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.628154' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.629962' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.630758' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.634069"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:09.634069"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.634911' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.635945' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.637052' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.637598' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H32160636605%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:09.640181"], ["number", "H32160636605"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:47:09.640181"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.641086' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:09.644111' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.648237"], ["description", "Dicta laudantium cumque sit sunt eum magni id ipsa."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:47:09.648237"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.649560"], ["updated_at", "2014-11-12 19:47:09.649560"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:09.658077"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:09.658077"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:47:09.658876"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:47:09.658876"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.660199"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:09.660199"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:09.663021"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:09.663021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.666752"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:09.666752"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.667532' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.668142' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.669566"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:09.669566"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.670223' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.670734' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.672053"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:09.672053"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.672748' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.673254' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.674539"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:09.674539"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.675189' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.675660' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.676958"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:09.676958"], ["variant_id", 5]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.678153' WHERE "spree_shipments"."id" = 1 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.679531' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:47:09.692390' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.696105"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:47:09.696105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.698170"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:47:09.698170"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kailey@ritchie.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582162953611xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:09.701208"], ["email", "kailey@ritchie.co.uk"], ["encrypted_password", "932e5d9ead4638acb5e5a9d37baaca71f2d8cddffbf86c41d5b82839936639fb3968dbe012d81afd458fad73fa262719fe62446384f990c5f1d3687889e05d68"], ["login", "kailey@ritchie.co.uk"], ["password_salt", "17esjvXXrzUJEMsDm4gd"], ["updated_at", "2014-11-12 19:47:09.701208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:09.703902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:09.705307"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:47:09.705307"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R854026589' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R854026589%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R854026589' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'cgIyQVZiiwd1avgXvX0RDA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:47:09.710755"], ["currency", "USD"], ["email", "kailey@ritchie.co.uk"], ["guest_token", "cgIyQVZiiwd1avgXvX0RDA"], ["number", "R854026589"], ["state", "cart"], ["updated_at", "2014-11-12 19:47:09.710755"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'P59JV4L5' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:47:09.713205"], ["identifier", "P59JV4L5"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:47:09.713205"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.715439' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-145003' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-145003"], ["updated_at", "2014-11-12 19:47:09.716633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Sint ipsam culpa expedita fugiat sapiente.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.740776"], ["description", "In numquam quia facilis quae."], ["name", "Sint ipsam culpa expedita fugiat sapiente."], ["updated_at", "2014-11-12 19:47:09.740776"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 805258' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.746580"], ["description", "Modi vel est laudantium enim quis quidem cum delectus."], ["name", "TaxCategory - 805258"], ["updated_at", "2014-11-12 19:47:09.746580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.751323"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:47:09.751323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:47:09.758727"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:47:09.758727"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:47:09.759806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (5.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'royce.corwin@lubowitz.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582162918612xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:09.783973"], ["email", "royce.corwin@lubowitz.co.uk"], ["encrypted_password", "752a46a4aba301ea9fcc729ea85b3d1b77d6ac032d774718e3730c6712969e39498f419d4701d1a8bb05b9675c147510afa30e4df3e577b65babdd160987cafa"], ["login", "royce.corwin@lubowitz.co.uk"], ["password_salt", "6d92m84_G1zViJBSjAsk"], ["updated_at", "2014-11-12 19:47:09.783973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:09.787393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:09.788790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:09.790346"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:09.790346"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:09.792973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:09.794276"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:47:09.794276"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R846159677' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R846159677%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R846159677' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'h4R4zId3lt-bqW7Re3lLFQ' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:47:09.800614"], ["currency", "USD"], ["email", "royce.corwin@lubowitz.co.uk"], ["guest_token", "h4R4zId3lt-bqW7Re3lLFQ"], ["number", "R846159677"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:47:09.800614"], ["user_id", 1]]  (16.9ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:09.829643"], ["name", "ShippingCategory #7"], ["updated_at", "2014-11-12 19:47:09.829643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 681989' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:09.832637"], ["description", "Est illum et aut commodi nisi eum."], ["name", "TaxCategory - 681989"], ["updated_at", "2014-11-12 19:47:09.832637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:09.835947"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:09.835947"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-31-2730' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-31-2730' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:09.828177"], ["created_at", "2014-11-12 19:47:09.839597"], ["description", "Fugiat culpa doloremque voluptatum modi accusantium. Culpa iste ullam enim est numquam quis ut et. Sint ducimus ut dolores ex rerum. Possimus deleniti adipisci praesentium quae architecto.\nQuidem voluptatem quia delectus temporibus et reiciendis sed et. Voluptas sed mollitia cumque praesentium quaerat iste. Quos totam qui aut reprehenderit ad ipsa. Suscipit sequi ut modi quaerat aut quam.\nQuia vel vel saepe nihil sapiente. Cum dignissimos odit impedit delectus et earum. Explicabo aliquid dolor ut in. Qui vero quasi quos id impedit. Quo velit in sapiente consequatur."], ["name", "Product #31 - 2730"], ["shipping_category_id", 1], ["slug", "product-31-2730"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.839597"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-31' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-31"], ["updated_at", "2014-11-12 19:47:09.841868"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.843870' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.845004' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.846248' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.846814' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.849800"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:09.849800"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.850778' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.851308' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.852413' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.852895' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.856922' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.857485' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.858020' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-31' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.859635"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.860297' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.860800' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.861257' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.861808' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.862262' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.4ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:09.866995"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.866995"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-31-2730' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.877377' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:09.883870' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-32-8699' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-32-8699' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:09.890613"], ["created_at", "2014-11-12 19:47:09.894397"], ["description", "Facilis est ea soluta non quod. Aperiam dolorem ea veritatis recusandae voluptatem voluptatum. Sit repellat reprehenderit eos id. Qui inventore rem consequatur ullam doloribus ipsa dolorum est. Numquam consectetur mollitia ut omnis cupiditate.\nDolorum culpa ratione aut tempore. Praesentium quasi aut et eos et. Rerum doloribus et expedita consequatur fugit. Repellendus odio ipsum vero debitis. Qui facere et ea quia ut.\nOfficiis incidunt ut fugit ut repudiandae hic at dicta. Sequi tenetur ullam odio consectetur ad perferendis. Neque possimus consequatur consequatur expedita. Est porro quisquam voluptatem explicabo eligendi ea.\nEaque delectus voluptatibus et adipisci nisi. Est reprehenderit possimus earum nemo aut quam pariatur eligendi. Nemo modi deserunt magnam sit. Voluptate amet in voluptates qui. Minima suscipit ullam odio rem est architecto."], ["name", "Product #32 - 8699"], ["shipping_category_id", 1], ["slug", "product-32-8699"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.894397"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-32' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-32"], ["updated_at", "2014-11-12 19:47:09.896570"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.898629' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.899696' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.900958' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.901576' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.904525"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:09.904525"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.905490' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.906302' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.907469' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.907989' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.911913' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.912446' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.912976' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-32' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.914634"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.915309' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.915801' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.916308' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.916865' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.917323' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:09.922079"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.922079"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-32-8699' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.927845' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:09.933456' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-33-8423' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-33-8423' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:09.940487"], ["created_at", "2014-11-12 19:47:09.944209"], ["description", "Ut qui consequatur eaque itaque. Quam illum et maiores debitis quia quo nihil impedit. Architecto aut provident qui voluptatem ut in. Molestias soluta qui asperiores facere. Nam eveniet consequatur ut quia iusto fuga a.\nVoluptates et quia esse quaerat hic aperiam non. Quis velit esse eligendi officiis. Nihil laudantium at doloremque in fugit delectus autem maiores. Architecto ad rem temporibus saepe animi.\nEt dicta dolores odio doloremque molestias. Doloremque deleniti dolores quo animi placeat. Eum culpa sapiente et molestias velit. Et dicta quisquam perspiciatis nostrum ipsum sapiente quia. Accusantium ad voluptatem quia asperiores perspiciatis nihil.\nVel doloremque aut dolores officiis necessitatibus ea. Similique sit numquam nam sed voluptates iusto quidem vel. Quia qui aut recusandae error temporibus ea tempora.\nEx optio voluptatum eveniet omnis et tenetur impedit quas. Iste eos culpa molestiae repudiandae et soluta ut. Excepturi et sunt nihil ratione voluptas. Aut ducimus cum velit et."], ["name", "Product #33 - 8423"], ["shipping_category_id", 1], ["slug", "product-33-8423"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.944209"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-33' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-33"], ["updated_at", "2014-11-12 19:47:09.946391"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.948355' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.949450' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.950649' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.951195' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:09.954153"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:09.954153"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.955081' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.955581' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.956713' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.957199' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.961121' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.961658' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.962194' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-33' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.963797"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.964446' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.964916' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.965400' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.965961' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.966410' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:09.971100"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.971100"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-33-8423' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.976921' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:09.982391' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-34-2093' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-34-2093' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:09.987401"], ["created_at", "2014-11-12 19:47:09.991086"], ["description", "Dolores dolores officiis voluptatem odio dolorem ratione est odit. Quis et iste explicabo doloremque possimus commodi in sed. Quia illum omnis odio et distinctio molestiae eveniet vel. A dolor porro sint officia saepe.\nUt qui at molestiae aut rerum. Fugiat quisquam voluptatem nobis debitis. Repellat esse qui maiores voluptatum dolores."], ["name", "Product #34 - 2093"], ["shipping_category_id", 1], ["slug", "product-34-2093"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:09.991086"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-34' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-34"], ["updated_at", "2014-11-12 19:47:09.993239"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.995147' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.996274' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.997521' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:09.998044' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:10.000945"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:10.000945"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.001866' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.002439' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.003531' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.004023' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.008976' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.010246' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.011318' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-34' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:10.014283"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.015248' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.015975' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.016797' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.018133' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.019559' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:10.028097"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:10.028097"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-34-2093' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.034225' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:10.039888' WHERE "spree_line_items"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-35-8717' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-35-8717' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:10.045467"], ["created_at", "2014-11-12 19:47:10.049277"], ["description", "Vitae velit molestias eius fuga et. Ut aliquid iste architecto consequatur unde minima suscipit. Excepturi cum eveniet accusamus unde sunt.\nSuscipit totam et iure ut error quibusdam minima consectetur. Similique quis aut hic nihil natus ullam qui fugiat. Autem omnis dolorem ut ea perferendis minus beatae assumenda.\nMolestias voluptatum quo fugiat sit sed. Ea iure eum et nulla deserunt aut. Ea ratione eius rerum aut est et id laborum. Accusamus et assumenda quia velit illum doloribus. Qui nulla odit repellendus similique consectetur."], ["name", "Product #35 - 8717"], ["shipping_category_id", 1], ["slug", "product-35-8717"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:10.049277"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-35' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-35"], ["updated_at", "2014-11-12 19:47:10.051495"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.053382' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.054471' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.055695' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.056267' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:10.059202"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:10.059202"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.060131' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.060664' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.061768' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.062278' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.066225' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.066795' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.067330' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-35' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:10.068994"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.069637' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.070105' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.070565' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.071121' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.071633' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:10.076332"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:10.076332"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-35-8717' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.082023' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:10.087707' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:10.092630"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:10.092630"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:10.096159"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:10.096159"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.097053' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.098207' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.099449' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.100028' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:10.102516"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:10.102516"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.103354' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.104441' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.105813' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.106389' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:10.108895"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:10.108895"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.109743' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.110805' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.112083' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.112640' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:10.115289"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:10.115289"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.116268' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.117438' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.118605' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.119121' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:10.121552"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:10.121552"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.122382' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.123415' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.124670' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:10.125193' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H02672030045%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:10.128108"], ["number", "H02672030045"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:47:10.128108"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.129073' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:10.132043' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:10.135765"], ["description", "Fugit necessitatibus hic quidem delectus ut similique."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:47:10.135765"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:10.137175"], ["updated_at", "2014-11-12 19:47:10.137175"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:10.146682"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:10.146682"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:47:10.147484"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:47:10.147484"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:10.148830"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:10.148830"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:10.151682"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:10.151682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:10.155500"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:10.155500"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:10.156283' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.156897' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:10.158326"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:10.158326"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:10.158998' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.159508' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:10.160884"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:10.160884"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:10.161561' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.162064' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:10.163425"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:10.163425"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:10.164089' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.164551' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:10.165843"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:10.165843"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:10.166485' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.166949' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:47:10.175593' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:10.179410"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:47:10.179410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:10.181502"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:47:10.181502"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'elwyn@block.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582163048613xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:10.184510"], ["email", "elwyn@block.co.uk"], ["encrypted_password", "afa40deb04a7107163f65309642b79e2ebc470b152a5eac815380a689f04fb3910b9e20a267c4730a35a949f9040c506524ee17bff3c2b335420cd54f1a6fb35"], ["login", "elwyn@block.co.uk"], ["password_salt", "94znMfCJKTEG2r_AuLxk"], ["updated_at", "2014-11-12 19:47:10.184510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:10.187186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:10.188625"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:47:10.188625"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R164738497' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R164738497%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R164738497' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ZwPN4sNQrFkVdftb27sfxQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:47:10.194269"], ["currency", "USD"], ["email", "elwyn@block.co.uk"], ["guest_token", "ZwPN4sNQrFkVdftb27sfxQ"], ["number", "R164738497"], ["state", "cart"], ["updated_at", "2014-11-12 19:47:10.194269"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'LU3CAPC4' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:47:10.196757"], ["identifier", "LU3CAPC4"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:47:10.196757"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.198985' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-323134' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-323134"], ["updated_at", "2014-11-12 19:47:10.200227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (12.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rebeka_morar@thompson.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216773231xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:57.713101"], ["email", "rebeka_morar@thompson.co.uk"], ["encrypted_password", "ff193aabeb659f6acae6bfd88e477039fa6423efe93782daff85cdf01d586305859d0e874ba0670577c862acefea169366271dc64f1c9ad5ee2c0ea5511bab3c"], ["login", "rebeka_morar@thompson.co.uk"], ["password_salt", "GgsHsnF2d2E8wFdfYmzU"], ["updated_at", "2014-11-12 19:47:57.713101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:57.751438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:57.756928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:57.765339"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:57.765339"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:57.787230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:57.788705"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:47:57.788705"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R530141711' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R530141711%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R530141711' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9sICTY0bshJMxRni6uDlrw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:47:57.806502"], ["currency", "USD"], ["email", "rebeka_morar@thompson.co.uk"], ["guest_token", "9sICTY0bshJMxRni6uDlrw"], ["number", "R530141711"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:47:57.806502"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:57.867853"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 19:47:57.867853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 970699' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:57.879956"], ["description", "Facilis tempora cum et qui quos totam modi."], ["name", "TaxCategory - 970699"], ["updated_at", "2014-11-12 19:47:57.879956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:57.908532"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:57.908532"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-9365' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-9365' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:57.862970"], ["created_at", "2014-11-12 19:47:57.914558"], ["description", "Exercitationem et eaque omnis sequi. Sit vitae tempore quam quas. Eius sed aliquid repellendus reiciendis repellat aut et. Neque minus voluptate eius assumenda id.\nIpsam asperiores quia cum sint ipsum. Aut ut nihil consequatur voluptatibus. Quaerat perferendis deserunt et velit aspernatur exercitationem occaecati. Natus occaecati et a id qui.\nQuo quia non quidem qui et. Id aut distinctio placeat deleniti qui nostrum reprehenderit omnis. Aperiam accusamus quae minus quia. Qui inventore aut iusto quae. Cupiditate vitae sunt voluptatem rerum ut et eaque."], ["name", "Product #1 - 9365"], ["shipping_category_id", 1], ["slug", "product-1-9365"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:57.914558"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:47:57.917288"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:57.924964' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:57.926369' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:57.939853' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:57.941041' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:57.961795"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:57.961795"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:57.962980' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:57.963580' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:57.964730' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:57.965243' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:57.991502' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:57.992856' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:57.993979' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:57.996854"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:57.998722' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:57.999577' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.000324' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.001128' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.001743' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:58.018039"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.018039"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-9365' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.086536' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:58.096498' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-5823' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-5823' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:58.103012"], ["created_at", "2014-11-12 19:47:58.106846"], ["description", "Hic ut corporis dolore architecto fugit impedit. Ex nobis non dolorem distinctio magnam unde ea itaque. Ut ea debitis enim sapiente. Nulla aut molestias temporibus molestiae.\nPorro voluptates mollitia dolores quisquam autem et. Eaque quisquam et veniam voluptatum sunt magni maiores aut. Beatae vel illum praesentium ea esse molestiae quod consequatur. Autem nulla similique facilis commodi.\nQuibusdam accusantium quis voluptates animi distinctio amet corporis qui. Amet corporis qui quisquam consectetur assumenda et ab consequatur. Tempora expedita quam laudantium aut ut explicabo. Tenetur voluptatem a quae sint. Saepe quasi et sit quos aut.\nSapiente numquam itaque quia ducimus aut omnis fugiat qui. Aut sint dolor totam ut nemo. Omnis qui ducimus fugiat laudantium voluptas."], ["name", "Product #2 - 5823"], ["shipping_category_id", 1], ["slug", "product-2-5823"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.106846"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 19:47:58.109064"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.111133' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.112182' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.113468' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.114036' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:58.116839"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:58.116839"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.117759' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.118247' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.119337' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.119856' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.123759' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.124274' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.124808' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:58.126471"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.127173' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.127635' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.128118' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.128665' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.129131' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:58.133821"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.133821"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-5823' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.144392' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:58.151143' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5329' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5329' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:58.158077"], ["created_at", "2014-11-12 19:47:58.161838"], ["description", "Nostrum et corporis modi tempora. Rerum harum voluptatem voluptatibus eveniet quos laborum. Repellat est ipsam aut nostrum fugiat. Possimus corrupti ducimus impedit sunt suscipit nam.\nAnimi impedit minus sed aut aut. Doloribus et inventore non ut laudantium error nesciunt assumenda. Maxime nisi ut architecto officia accusamus.\nVoluptas fugit temporibus ipsam aut recusandae. Quas esse et ut officiis quo aliquid et. Veritatis cupiditate sit qui totam sed dolore a quis.\nIllum omnis consectetur nemo et ratione. Ut in in voluptatibus voluptas consequatur consequatur voluptatum. Est vitae expedita nihil dolor nostrum ratione amet sunt. Distinctio delectus placeat similique architecto iure. Ratione in quisquam consequatur error.\nMaxime quo et eos aspernatur sed voluptas. Magnam ut quia est facere. Consequatur laboriosam assumenda alias vel est."], ["name", "Product #3 - 5329"], ["shipping_category_id", 1], ["slug", "product-3-5329"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.161838"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:47:58.163986"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.166011' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.167115' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.168403' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.169011' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:58.171904"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:58.171904"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.172777' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.173300' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.174426' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.174936' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.178839' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.179322' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.179873' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:58.181575"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.182340' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.182804' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.183336' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.183904' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.184371' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:58.189115"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.189115"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5329' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.195070' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:58.200588' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-8818' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-8818' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:58.205157"], ["created_at", "2014-11-12 19:47:58.208916"], ["description", "Libero rem architecto ut et sed. Esse omnis aut voluptates ut tempore quaerat quis aliquam. Vitae non quas repellat est aut ex asperiores quae. Quia illo recusandae ab cum."], ["name", "Product #4 - 8818"], ["shipping_category_id", 1], ["slug", "product-4-8818"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.208916"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-11-12 19:47:58.211084"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.213022' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.214089' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.215300' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.215874' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:58.218789"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:58.218789"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.219709' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.220248' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.221334' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.221841' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.225820' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.226328' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.226843' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:58.228450"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.229139' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.229602' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.230107' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.230683' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.231153' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:58.235947"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.235947"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-8818' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.241636' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:58.247303' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8080' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8080' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:58.254582"], ["created_at", "2014-11-12 19:47:58.258429"], ["description", "Dolore ex id et repellat dicta. Maiores suscipit eligendi dolores nesciunt. Quis sunt reprehenderit sit corrupti magni. Rerum assumenda culpa impedit dolorem asperiores quis quis.\nAmet neque aut voluptas praesentium eum voluptatibus. Veritatis minus recusandae iusto quis rerum dolores aut et. Quo nulla deserunt dicta illo.\nQuia voluptas quisquam et vero aliquid accusantium et. Possimus quia tempore dolores nulla tempora mollitia. Odio aliquam aliquid vel qui. Sit sapiente enim sit eos fugiat corrupti facere omnis. Consequuntur aliquid molestias mollitia quam magni ipsum.\nEt officiis harum quae quaerat et. Et cum velit et sit adipisci. Sint delectus libero sapiente rerum. Et provident repellat laborum odio dolores voluptatem quos temporibus. Occaecati assumenda adipisci vel officiis ullam temporibus nulla.\nQui non sint in dolores harum voluptatem cum. Minima quibusdam at delectus odio vel omnis. Unde animi iste velit sed temporibus. Aut magni vitae quos soluta. Consectetur harum et incidunt aliquid laborum quibusdam."], ["name", "Product #5 - 8080"], ["shipping_category_id", 1], ["slug", "product-5-8080"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.258429"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:47:58.260607"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.262598' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.263652' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.264930' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.265554' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:58.268458"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:58.268458"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.269373' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.269859' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.270978' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.271485' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.275525' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.276016' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.276582' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:58.278160"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.278836' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.279309' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.279799' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.280409' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.280897' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:58.285662"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.285662"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8080' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.293057' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:58.299883' WHERE "spree_line_items"."id" = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:58.318485"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:58.318485"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:58.322477"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:58.322477"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.323399' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.324597' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.326218' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.327066' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:58.329613"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:58.329613"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.330630' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.331718' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.332842' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.333374' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:58.335788"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:58.335788"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.336635' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.337674' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.338886' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.339474' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:58.342205"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:58.342205"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.343111' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.344246' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.345368' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.345896' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:58.348499"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:58.348499"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.349350' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.350464' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.351745' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.352313' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H41265435606%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:58.358308"], ["number", "H41265435606"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:47:58.358308"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.359479' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:58.365408' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:58.384594"], ["description", "Adipisci enim rerum ut nobis pariatur minima rem et."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:47:58.384594"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:58.387806"], ["updated_at", "2014-11-12 19:47:58.387806"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:58.430263"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:58.430263"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:47:58.431402"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:47:58.431402"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:58.433210"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:58.433210"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:58.447890"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:58.447890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:58.462298"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:58.462298"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:58.463420' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.464066' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:58.465574"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:58.465574"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:58.466229' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.466738' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:58.468017"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:58.468017"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:58.468666' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.469124' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:58.470428"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:58.470428"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:58.471066' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.471515' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:58.472856"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:58.472856"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:58.473495' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.473984' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:47:58.490333' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:58.511873"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:47:58.511873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:58.540810"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:47:58.540810"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hope@mrazvonrueden.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216788382xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:58.544515"], ["email", "hope@mrazvonrueden.info"], ["encrypted_password", "100de89ed120c626e0c54d043095ff15be76420fd5e1801922b808aaf089d1a16bccb7a5bced507369ee18cf26f64c59a217979d3f3c98a4f738e4ec964beaca"], ["login", "hope@mrazvonrueden.info"], ["password_salt", "ggbACDoSQzXsAtUVXXmc"], ["updated_at", "2014-11-12 19:47:58.544515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:58.547287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:58.548747"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:47:58.548747"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R675969742' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R675969742%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R675969742' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'gxZiw401pXtzQk31_5WbNQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:47:58.554288"], ["currency", "USD"], ["email", "hope@mrazvonrueden.info"], ["guest_token", "gxZiw401pXtzQk31_5WbNQ"], ["number", "R675969742"], ["state", "cart"], ["updated_at", "2014-11-12 19:47:58.554288"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '77B74ZA8' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:47:58.566337"], ["identifier", "77B74ZA8"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:47:58.566337"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.569435' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-045342' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-045342"], ["updated_at", "2014-11-12 19:47:58.570827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (169.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'holly@ankunding.info' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216785273xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:58.765331"], ["email", "holly@ankunding.info"], ["encrypted_password", "d8229a55b045a8ff9d2a7763540bc0f92b760b24518011b3b8bf768177fd8e0e4b6459366d170196427bef7f0447c405589845831275e589e960d6ca6de3f767"], ["login", "holly@ankunding.info"], ["password_salt", "7PZSbvHXstf1qg3nJbyE"], ["updated_at", "2014-11-12 19:47:58.765331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:58.770141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:58.771917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:58.773582"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:58.773582"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:58.776119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:58.777401"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:47:58.777401"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R067478802' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R067478802%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R067478802' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9V9z4E76d7vQBxA7VsMqbQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:47:58.783531"], ["currency", "USD"], ["email", "holly@ankunding.info"], ["guest_token", "9V9z4E76d7vQBxA7VsMqbQ"], ["number", "R067478802"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:47:58.783531"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:58.792207"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 19:47:58.792207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 982162' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:58.795097"], ["description", "Similique dolorem sed officia suscipit quidem."], ["name", "TaxCategory - 982162"], ["updated_at", "2014-11-12 19:47:58.795097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:58.798622"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:58.798622"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-6599' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-6599' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:58.791155"], ["created_at", "2014-11-12 19:47:58.802335"], ["description", "Est sed veritatis magnam soluta. Alias dolorem perferendis occaecati consequatur voluptatem. Atque consequatur reiciendis rem eos magnam voluptatum qui.\nMolestias nisi ipsam cupiditate placeat. Libero aspernatur nulla fugit deleniti rerum. Vel aut voluptatem est dolores suscipit aperiam. Aut qui omnis dolorum consectetur atque.\nConsequatur fugit velit in officia quae. Quae repellat consectetur expedita unde sed tempora dolor. Rem quis accusantium ut voluptatum molestiae architecto est.\nEst harum saepe veritatis amet labore id aut qui. Mollitia quasi nesciunt molestiae eos consequatur commodi ad assumenda. Voluptatem minima aut veritatis ipsa tempora.\nPossimus doloremque eum in placeat blanditiis occaecati voluptas. Sequi enim quo nesciunt esse maiores dolores minima. Sunt harum et recusandae deserunt expedita impedit quisquam et. Minima ipsa ut et et. Nobis explicabo consequatur eos beatae sit aut qui corporis."], ["name", "Product #6 - 6599"], ["shipping_category_id", 1], ["slug", "product-6-6599"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.802335"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-11-12 19:47:58.804952"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.807359' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.808562' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.809859' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.810467' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:58.813375"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:58.813375"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.814316' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.814830' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.815923' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.816421' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.820337' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.820894' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.821419' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:58.823018"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.823680' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.824150' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.824631' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.825179' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.825684' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:58.830417"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.830417"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-6599' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.836221' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:58.841835' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-4760' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-4760' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:58.848058"], ["created_at", "2014-11-12 19:47:58.851850"], ["description", "Qui et ipsum architecto accusantium. Rerum nobis ullam expedita quia est quibusdam. Sed cupiditate et unde id ullam qui.\nAliquid magnam earum iusto ipsa reiciendis non ea quos. Enim debitis quia voluptatem incidunt. Consequatur eos doloribus perspiciatis et impedit ut. Occaecati quod cum tempora maxime cupiditate.\nInventore eum ut magnam et officiis. Voluptatem repellat consequatur sed est aut. Suscipit sit perferendis et repellendus quibusdam necessitatibus eius. Expedita dolores recusandae itaque dolore rerum.\nQuia ea vero est at sapiente autem sunt est. Et est dolores dolorem ea corporis. Sunt non est magni eum similique. Dolor deserunt voluptatem consequuntur voluptate incidunt natus omnis. Architecto enim et nostrum fugit aperiam sint perspiciatis voluptas."], ["name", "Product #7 - 4760"], ["shipping_category_id", 1], ["slug", "product-7-4760"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.851850"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-11-12 19:47:58.854074"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.856020' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.857104' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.858302' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.858857' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:58.861689"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:58.861689"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.862592' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.863115' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.864207' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.864704' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.868509' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.869075' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.869636' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:58.871186"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.871837' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.872299' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.872789' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.873354' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.873835' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:58.878436"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.878436"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-4760' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.884139' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:58.889620' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3865' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3865' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:58.895146"], ["created_at", "2014-11-12 19:47:58.898803"], ["description", "Doloremque delectus neque inventore distinctio et quod sit. Aut delectus consectetur adipisci ad ab harum. Et quia pariatur sunt quibusdam cum voluptatibus vitae.\nImpedit culpa excepturi voluptatum sequi voluptates repudiandae eligendi commodi. Et nobis nesciunt in dolorem beatae. At neque illo doloremque vel ea voluptatem placeat. Non nesciunt totam quos odio ut maiores perferendis. Qui optio sint facilis eligendi modi minus ipsum sequi.\nAutem dolorem aspernatur aut magnam et error amet. Aspernatur ipsam accusantium nemo odit maiores expedita. Et amet neque vitae ut cumque sit. Quo alias dicta a aut aut maiores fugit."], ["name", "Product #8 - 3865"], ["shipping_category_id", 1], ["slug", "product-8-3865"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.898803"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-11-12 19:47:58.900921"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.902783' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.903823' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.905036' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.905612' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:58.908433"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:58.908433"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.909270' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.909768' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.910813' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.911338' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.915199' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.915710' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.916239' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:58.917835"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.918466' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.918932' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.919424' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.920021' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.920506' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:58.925216"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.925216"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3865' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.930999' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:58.936481' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-1765' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-1765' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:58.941617"], ["created_at", "2014-11-12 19:47:58.945297"], ["description", "Dolores et quae officiis ut magni facilis eveniet. Natus rerum unde porro ipsa ex. Placeat inventore beatae officia vel possimus. Animi sunt aut adipisci ut itaque labore aspernatur eos.\nQuia id praesentium blanditiis dolor dignissimos sit. Alias unde consequatur et et consectetur doloremque eligendi dignissimos. Laborum sapiente magnam adipisci numquam. Dicta suscipit ut a eos sunt aliquid in ut. Sed nihil mollitia adipisci quos."], ["name", "Product #9 - 1765"], ["shipping_category_id", 1], ["slug", "product-9-1765"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.945297"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-11-12 19:47:58.947424"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.949253' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.950343' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.951571' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.952148' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:58.955036"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:58.955036"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.955926' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.956428' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.957495' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.958019' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.961858' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.962399' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.962919' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:58.964551"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.965172' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.965629' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.966114' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.966660' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.967116' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:58.971816"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.971816"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-1765' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.977559' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:58.983059' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-4379' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-4379' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:58.988337"], ["created_at", "2014-11-12 19:47:58.992076"], ["description", "Rerum soluta odit tenetur fugiat necessitatibus. Et aut ut atque officia doloremque iure ea. Ea provident amet fugiat quis quidem ut sequi quae. Magnam voluptas qui dolorem et vel aut. Tenetur hic commodi rerum itaque ducimus.\nLabore omnis ipsam dignissimos neque quia error eveniet. Minus beatae amet voluptate autem corporis aut. Nemo voluptatem sed repudiandae quia ut illo reprehenderit. Quos placeat quo rerum aut autem ut rem optio. Est omnis ut dolores sunt laboriosam minus."], ["name", "Product #10 - 4379"], ["shipping_category_id", 1], ["slug", "product-10-4379"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:58.992076"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-11-12 19:47:58.994173"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.996069' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.997178' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.998401' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:58.998941' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.001779"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:59.001779"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.002649' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.003158' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.004250' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.004757' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.008659' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.009222' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.009739' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.011311"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.011926' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.012379' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.012865' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.013458' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.013924' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:59.018608"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.018608"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-4379' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.024407' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.029987' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:59.035170"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:59.035170"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.038815"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.038815"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.039708' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.040845' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.042081' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.042643' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.045062"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.045062"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.045921' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.047222' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.048356' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.048882' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.051316"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.051316"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.052225' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.053270' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.054498' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.055078' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.057836"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.057836"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.058783' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.059895' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.061100' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.061624' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.064710"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.064710"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.065557' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.066662' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.067978' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.068567' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H21152715674%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:59.071386"], ["number", "H21152715674"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:47:59.071386"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.072342' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.075352' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.079079"], ["description", "Commodi accusamus autem laudantium porro."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:47:59.079079"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.080888"], ["updated_at", "2014-11-12 19:47:59.080888"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:59.090730"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:59.090730"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:47:59.091518"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:47:59.091518"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.092904"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:59.092904"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:59.095667"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:59.095667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.099336"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.099336"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.100570' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.101638' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.103087"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.103087"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.103743' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.104230' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.105543"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.105543"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.106192' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.106638' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.107929"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.107929"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.108572' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.109042' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.110349"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.110349"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.111005' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.111440' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:47:59.120633' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.124392"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:47:59.124392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.126459"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:47:59.126459"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sabina_mcglynn@spinka.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216798764xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:59.129503"], ["email", "sabina_mcglynn@spinka.com"], ["encrypted_password", "9fb05c977782af2d74c4f4027a3ba5b8a73a2ead1b2f0d5b7cdf8c8df36c25a8b935c40317a60e7f2858142ba3023e41100831cb9f96d91abe66a9d6917747d1"], ["login", "sabina_mcglynn@spinka.com"], ["password_salt", "8cSgEZnkB-DckaqYBMHq"], ["updated_at", "2014-11-12 19:47:59.129503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:59.132234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:59.148907"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:47:59.148907"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R908345763' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R908345763%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R908345763' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'a6PQvuz8rT-mR4XMdueZFA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:47:59.154844"], ["currency", "USD"], ["email", "sabina_mcglynn@spinka.com"], ["guest_token", "a6PQvuz8rT-mR4XMdueZFA"], ["number", "R908345763"], ["state", "cart"], ["updated_at", "2014-11-12 19:47:59.154844"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '6MB2BA3Q' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:47:59.157964"], ["identifier", "6MB2BA3Q"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:47:59.157964"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.160249' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-345543' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-345543"], ["updated_at", "2014-11-12 19:47:59.161499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (5.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dallas@stracke.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216796405xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:59.187875"], ["email", "dallas@stracke.ca"], ["encrypted_password", "6ce051f91d3fd1f74db414e14412259712af575d7bfdab1f1db96d9a6924f0888b16be26e725881ce959ac6180e1931f7beda5561bc5d12da086e4aafe7a8f72"], ["login", "dallas@stracke.ca"], ["password_salt", "UevF65ePU8_55WsumDFo"], ["updated_at", "2014-11-12 19:47:59.187875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:59.192314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:59.193986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:59.195429"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:59.195429"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:59.197997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:59.199306"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:47:59.199306"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R811001251' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R811001251%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R811001251' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'b9hIwiQAojBDzCb24vZvIQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:47:59.205935"], ["currency", "USD"], ["email", "dallas@stracke.ca"], ["guest_token", "b9hIwiQAojBDzCb24vZvIQ"], ["number", "R811001251"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:47:59.205935"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:59.213042"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 19:47:59.213042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 875720' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.215626"], ["description", "Ex odit quasi adipisci ad aut."], ["name", "TaxCategory - 875720"], ["updated_at", "2014-11-12 19:47:59.215626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:59.219298"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:59.219298"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-9743' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-9743' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:59.211993"], ["created_at", "2014-11-12 19:47:59.223196"], ["description", "Et voluptate expedita consectetur molestias tempore. Sunt consequatur nisi laborum est at molestiae. Provident ut et et et nam explicabo magni. Illo necessitatibus sunt nesciunt distinctio velit amet ab.\nFuga aperiam assumenda incidunt quas qui dolore quis. Omnis illum quisquam modi quos qui. Ex quos quam iure est ut quae et cupiditate."], ["name", "Product #11 - 9743"], ["shipping_category_id", 1], ["slug", "product-11-9743"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.223196"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 19:47:59.225911"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.228092' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.229273' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.230668' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.231247' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.234208"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:59.234208"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.235173' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.235709' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.236777' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.237292' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.241287' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.241852' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.242409' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.244397"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.245052' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.245545' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.246059' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.246606' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.247087' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:59.251949"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.251949"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-9743' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.257629' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.263472' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-593' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-593' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:59.268898"], ["created_at", "2014-11-12 19:47:59.272702"], ["description", "Incidunt qui aut est maxime expedita consequatur similique. Porro veniam error ea eveniet. Ullam sapiente assumenda explicabo sed rem. Quia sequi qui dolore voluptas consequatur quisquam.\nCommodi qui culpa et quo nulla quibusdam voluptatibus est. Dolor in voluptas id nisi reprehenderit adipisci odit. Voluptatem et et corrupti qui sunt maiores. Pariatur exercitationem et sed aut voluptas."], ["name", "Product #12 - 593"], ["shipping_category_id", 1], ["slug", "product-12-593"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.272702"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 19:47:59.274942"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.276938' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.278025' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.279259' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.279842' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.282658"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:59.282658"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.283554' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.284078' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.285231' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.285725' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.289753' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.290283' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.290799' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.292398"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.293061' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.293524' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.294008' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.294575' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.295052' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:59.300077"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.300077"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-593' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.305913' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.311515' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-335' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-335' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:59.316621"], ["created_at", "2014-11-12 19:47:59.320306"], ["description", "Ut quis molestias mollitia eveniet reprehenderit quas maiores sit. Et totam nulla pariatur qui. Voluptas quos et voluptas quo veniam animi.\nLibero sed sit impedit dolor velit fugit dolore iusto. Eveniet et velit cupiditate ea mollitia quia porro autem. Expedita facere sunt molestias nihil ea in ut velit. Enim libero sed odit qui quas sunt."], ["name", "Product #13 - 335"], ["shipping_category_id", 1], ["slug", "product-13-335"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.320306"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-11-12 19:47:59.322497"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.324394' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.325479' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.326677' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.327255' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.330056"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:59.330056"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.330919' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.331435' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.332491' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.333026' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.336861' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.337380' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.337885' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-13' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.339476"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.340110' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.340568' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.341051' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.341602' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.342054' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:59.346708"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.346708"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-335' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.352466' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.358005' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-7871' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-7871' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:59.363709"], ["created_at", "2014-11-12 19:47:59.367757"], ["description", "Quia libero alias numquam vel consequatur quibusdam illo aperiam. Ut voluptas libero iure unde. Nobis dolorum dicta laborum amet dolores repudiandae nihil enim.\nNisi autem illo commodi et. Ex minus porro quia debitis non. Et sint id nisi vel qui eius sequi. Ipsum voluptatibus hic minima qui nulla officia.\nAut veritatis illum laudantium non. Qui cumque quo non quisquam perspiciatis. Quis et eum dolor dolores quae soluta occaecati qui. Dicta accusamus qui hic excepturi rerum. Cum et commodi occaecati ullam suscipit non magni deserunt."], ["name", "Product #14 - 7871"], ["shipping_category_id", 1], ["slug", "product-14-7871"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.367757"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-14"], ["updated_at", "2014-11-12 19:47:59.369973"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.371862' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.372918' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.374150' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.374710' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.377550"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:59.377550"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.378431' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.378935' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.380031' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.380532' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.384440' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.384994' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.385510' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-14' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.387066"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.387699' WHERE "spree_products"."id" = 4 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.388151' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.388758' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.389320' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.389802' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:59.394559"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.394559"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-7871' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.400332' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.405851' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-2413' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-2413' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:59.413104"], ["created_at", "2014-11-12 19:47:59.416902"], ["description", "Autem assumenda velit et ut id omnis cumque. Assumenda quibusdam quos occaecati nesciunt ut iste. Earum sit deleniti omnis sint ab eum molestias. Sed quia perspiciatis distinctio qui.\nPerspiciatis est alias numquam aut odio id voluptas. Cupiditate non suscipit laborum quas eveniet occaecati temporibus quam. Atque optio aut aliquid placeat occaecati. Ipsa et amet nobis culpa sint non unde qui. Dolores doloribus ut est saepe.\nVelit minima id itaque consectetur ipsa ad maxime. Qui esse sit quos cumque iure voluptatum. Vero est accusamus deserunt consequuntur nemo. Facilis est non consectetur aut. Ut quo eos et modi libero commodi dicta.\nNobis in possimus architecto sed. Sint occaecati molestiae eligendi quia minima cumque ut. Non ut recusandae fugit laboriosam similique eligendi sit minus. Consequatur nulla voluptatem repellendus tenetur non qui voluptatibus. Amet qui assumenda qui officia nihil laborum.\nEt eius qui at sint corporis consectetur ad est. Ad voluptas veniam quia quod cupiditate maiores vero. Qui eligendi velit et sequi beatae nam minima et. Dolores ratione est ut dicta laudantium maxime."], ["name", "Product #15 - 2413"], ["shipping_category_id", 1], ["slug", "product-15-2413"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.416902"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-11-12 19:47:59.419061"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.420953' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.422003' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.423219' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.423754' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.426608"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:59.426608"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.427469' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.427967' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.429017' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.429537' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.433392' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.433917' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.434440' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-15' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.435975"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.436574' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.437046' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.437526' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.438076' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.438535' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:59.443181"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.443181"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-2413' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.448844' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.454406' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:59.459199"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:59.459199"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.462794"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.462794"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.463863' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.464996' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.466367' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.466961' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.469429"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.469429"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.470244' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.471276' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.472416' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.472914' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.475192"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.475192"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.476004' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.477028' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.478136' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.478675' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.481276"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.481276"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.482182' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.483326' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.484506' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.485023' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.487340"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.487340"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.488156' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.489173' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.490372' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.491990' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H51425522315%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:59.497211"], ["number", "H51425522315"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:47:59.497211"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.498623' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.503035' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.507304"], ["description", "Voluptas vitae enim culpa exercitationem et accusantium sed."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:47:59.507304"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.508719"], ["updated_at", "2014-11-12 19:47:59.508719"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:59.517209"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:59.517209"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:47:59.517999"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:47:59.517999"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.519349"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:59.519349"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:59.522125"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:59.522125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.525814"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.525814"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.526601' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.527184' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.528601"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.528601"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.529250' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.529708' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.531022"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.531022"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.531672' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.532127' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.533418"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.533418"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.534077' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.534536' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.535870"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.535870"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.536510' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.536985' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:47:59.545409' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.549152"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:47:59.549152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.551208"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:47:59.551208"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'barry@satterfieldbartoletti.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216798716xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:59.554172"], ["email", "barry@satterfieldbartoletti.com"], ["encrypted_password", "386531d09375a831df9d3a347e6884c7e69273af3914197aa61d36c8168a6640771b1ead5c2f9c15636da512eb82703e50cb2a095060ab2f5722656d693a7f51"], ["login", "barry@satterfieldbartoletti.com"], ["password_salt", "8-fdaEEXzESKZPAdL1Ti"], ["updated_at", "2014-11-12 19:47:59.554172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:59.556776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:59.558246"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:47:59.558246"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R449518033' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R449518033%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R449518033' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CSNVDPFUMkvZHYwqMW37zA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:47:59.563719"], ["currency", "USD"], ["email", "barry@satterfieldbartoletti.com"], ["guest_token", "CSNVDPFUMkvZHYwqMW37zA"], ["number", "R449518033"], ["state", "cart"], ["updated_at", "2014-11-12 19:47:59.563719"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'H3DLQZAY' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:47:59.566211"], ["identifier", "H3DLQZAY"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:47:59.566211"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.568523' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-215320' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-215320"], ["updated_at", "2014-11-12 19:47:59.569778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'marlon.keeling@kling.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216799357xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:59.589229"], ["email", "marlon.keeling@kling.biz"], ["encrypted_password", "444e895f1f71c39290bc02fb6e1e8351f3a302b9abdd50df1a4c7bb5b68b43271144ba7978898bfe3b4897a83eb3e05d94612953da59bbae741683c182b934f0"], ["login", "marlon.keeling@kling.biz"], ["password_salt", "UNhUJCcgHhXCm1ZmzSsM"], ["updated_at", "2014-11-12 19:47:59.589229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:59.604253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:59.605763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:59.607275"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:59.607275"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:59.609840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:59.611167"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:47:59.611167"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R637708175' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R637708175%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R637708175' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bCY0Qu9JjFNVLPviUb-hVQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:47:59.616943"], ["currency", "USD"], ["email", "marlon.keeling@kling.biz"], ["guest_token", "bCY0Qu9JjFNVLPviUb-hVQ"], ["number", "R637708175"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:47:59.616943"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:59.627374"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 19:47:59.627374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 380601' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.630281"], ["description", "Ipsam perspiciatis veniam et et error."], ["name", "TaxCategory - 380601"], ["updated_at", "2014-11-12 19:47:59.630281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:59.633651"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:59.633651"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-8990' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-8990' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:59.625990"], ["created_at", "2014-11-12 19:47:59.637381"], ["description", "Qui vero consectetur fugiat nemo id in asperiores ea. Labore consequatur dignissimos deleniti est soluta ut non. Possimus pariatur recusandae officia illum expedita nostrum autem architecto.\nAut ut et ipsum est. Ab omnis animi in et velit rem quas corporis. Voluptatem cum assumenda provident quaerat illum. Quia expedita rerum a vel eum aut ratione corporis. Quidem qui enim eligendi iusto.\nLaborum nesciunt similique sed at. Magni nemo ut atque dolor dolorum animi. Quia ducimus quo eum temporibus aut. Est distinctio minima autem officia sunt.\nQui esse vero impedit beatae. Et perferendis neque est quod ad ea rem corporis. Eum deserunt itaque voluptatem et unde velit est. Eos quidem quos dolorem corporis placeat beatae. Eos et est rerum excepturi.\nQuae eos incidunt error nostrum. Possimus dolor saepe quas excepturi ratione deserunt iure. Repudiandae explicabo voluptatem esse ipsa beatae distinctio alias. Maxime soluta excepturi asperiores dolores. Aut beatae ipsam quisquam id dicta minima cum et."], ["name", "Product #16 - 8990"], ["shipping_category_id", 1], ["slug", "product-16-8990"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.637381"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-16"], ["updated_at", "2014-11-12 19:47:59.639593"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.641667' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.642758' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.644082' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.644676' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.647620"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:59.647620"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.648586' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.649075' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.650193' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.650696' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.654604' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.655150' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.655680' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-16' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.657304"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.657956' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.658455' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.658946' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.659522' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.660030' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:59.664760"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.664760"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-8990' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.670679' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.676392' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-5230' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-5230' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:59.683004"], ["created_at", "2014-11-12 19:47:59.686725"], ["description", "Voluptatibus consequatur et odit aut. Illo nostrum corrupti provident exercitationem blanditiis. Similique tenetur eum enim pariatur nesciunt deleniti rerum. Et id deserunt dolor et ut dignissimos. Dignissimos suscipit rerum voluptatibus facere rerum.\nNon deserunt dolorum id consequuntur quae eos nobis. Modi aliquid eos adipisci veniam inventore quos odio. Officia qui provident quo magnam quaerat quia.\nSequi ipsum nihil ducimus magnam voluptas optio vitae maiores. Exercitationem quas odit reprehenderit illo odio sed. Asperiores error est ut rerum.\nHic quaerat porro non dolorem. Blanditiis eum voluptatum dignissimos illum ad vel illo. Libero velit necessitatibus consequatur voluptates sed. Alias accusantium animi voluptatem ea blanditiis. Velit et molestiae voluptatem quam sed.\nVero nemo ab error saepe. Alias dignissimos et aspernatur voluptas. Eaque qui quis deleniti non repudiandae."], ["name", "Product #17 - 5230"], ["shipping_category_id", 1], ["slug", "product-17-5230"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.686725"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-17"], ["updated_at", "2014-11-12 19:47:59.688877"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.690790' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.691858' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.693082' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.693656' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.696496"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:59.696496"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.697427' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.697949' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.699008' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.699509' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.703390' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.703964' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.704495' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-17' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.706028"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.706688' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.707162' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.707688' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.708250' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.708711' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:59.713367"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.713367"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-5230' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.719077' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.724628' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-9735' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-9735' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:59.730347"], ["created_at", "2014-11-12 19:47:59.734104"], ["description", "Expedita omnis et sit sed tempora. Consectetur doloremque aut pariatur sed voluptas est reiciendis ullam. Enim cumque a aliquam tempore qui quia illum.\nSapiente eveniet quibusdam in voluptatem iste. Iste eos et culpa et qui beatae. Qui repudiandae recusandae nulla dignissimos.\nVoluptatem eveniet aut porro consequatur et nobis voluptates. Aspernatur enim aut ipsam ut sapiente. Doloremque perferendis et voluptas dolorum ducimus.\nEt enim iste nesciunt maxime eos perspiciatis. Excepturi id odio sapiente laborum voluptas. Voluptatibus odit occaecati repellat quia et nesciunt similique. Voluptatem labore voluptatum ea quis accusantium."], ["name", "Product #18 - 9735"], ["shipping_category_id", 1], ["slug", "product-18-9735"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.734104"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-18"], ["updated_at", "2014-11-12 19:47:59.736215"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.738096' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.739149' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.740355' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.740926' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.743745"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:59.743745"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.744594' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.745137' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.746265' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.746775' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.750993' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.751554' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.752087' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-18' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.753635"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.754257' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.754729' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.755224' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.755818' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.756275' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:59.761120"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.761120"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-9735' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.766904' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.772522' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-6596' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-6596' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:59.778865"], ["created_at", "2014-11-12 19:47:59.782564"], ["description", "Ipsam sint non quia et minus nihil et ad. Eum enim dolorum nihil et. Ea possimus autem quis at dolorem similique impedit. Non consequatur ex aliquam quas repellendus quam. Aut quae non nobis at.\nSed excepturi recusandae corporis mollitia. Non eaque quis nobis deserunt mollitia dolores ea cupiditate. Non voluptatem totam commodi architecto quia labore. Laudantium est neque accusantium eos et voluptatibus eius qui. Officiis facilis aut quas tempore in recusandae.\nLabore optio in ut explicabo voluptatem. Omnis suscipit consequatur repudiandae est velit eius dolor. Sed repellat vero necessitatibus deserunt magnam et. Quod quo non iste et.\nAliquam iste dolores repellendus vel culpa ab. Accusamus impedit atque qui perspiciatis illum corrupti voluptatem sed. Vel sit ut adipisci quidem a."], ["name", "Product #19 - 6596"], ["shipping_category_id", 1], ["slug", "product-19-6596"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.782564"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-19"], ["updated_at", "2014-11-12 19:47:59.784678"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.786523' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.787561' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.788750' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.789326' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.792119"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:59.792119"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.792966' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.793466' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.794539' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.795027' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.798944' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.799460' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.799969' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-19' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.801531"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.802148' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.802638' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.803135' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.803692' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.804157' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:59.809690"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.809690"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-6596' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.819423' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.825589' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-768' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-768' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:47:59.830140"], ["created_at", "2014-11-12 19:47:59.833826"], ["description", "Tempora sequi qui alias expedita. Eos sed ipsum nulla odio laborum. Illum aut officia repellendus dolores. Similique perferendis quis reprehenderit nobis libero fugit optio. Soluta occaecati incidunt quisquam et labore pariatur."], ["name", "Product #20 - 768"], ["shipping_category_id", 1], ["slug", "product-20-768"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.833826"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-20"], ["updated_at", "2014-11-12 19:47:59.836007"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.837871' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.838944' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.840139' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.840725' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.843558"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:47:59.843558"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.844422' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.844929' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.845998' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.846518' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.850405' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.850969' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.851568' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-20' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.853142"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.853771' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.854231' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.854738' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.855309' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.855773' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:47:59.860371"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:47:59.860371"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-768' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.866003' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.871581' WHERE "spree_line_items"."id" = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:47:59.876663"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:47:59.876663"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.880148"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.880148"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.881027' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.882168' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.883407' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.883951' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.886364"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.886364"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.887197' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.888223' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.889336' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.889821' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.892163"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.892163"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.892977' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.894026' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.895147' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.895728' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.898376"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.898376"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.899302' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.900442' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.901591' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.902121' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:47:59.904402"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:47:59.904402"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.905214' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.906261' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.907410' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:47:59.907973' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H68701147772%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:59.910724"], ["number", "H68701147772"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:47:59.910724"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.911683' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:47:59.914733' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.918376"], ["description", "Soluta omnis ratione in sunt odit aperiam doloremque est."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:47:59.918376"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.919975"], ["updated_at", "2014-11-12 19:47:59.919975"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:47:59.928614"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:59.928614"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:47:59.929386"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:47:59.929386"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.930741"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:59.930741"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:47:59.933608"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:47:59.933608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.937261"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.937261"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.938033' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.938642' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.940043"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.940043"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.940727' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.941173' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.942479"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.942479"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.943133' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.943604' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.944935"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.944935"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.945580' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.946049' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.947349"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:47:59.947349"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.947978' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.948461' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:47:59.956887' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.960629"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:47:59.960629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:47:59.962652"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:47:59.962652"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'keira.hyatt@kunzeemmerich.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158216796178xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:47:59.965668"], ["email", "keira.hyatt@kunzeemmerich.name"], ["encrypted_password", "5bf6bf6197522b71493b01cb1854119a130883aba0850853028f74c228b5e1316ef365c360224e4b3e9ce8cfd8c026838590a3024fdcdd82c9c59e4cad5e83bb"], ["login", "keira.hyatt@kunzeemmerich.name"], ["password_salt", "HK4B1idDVC-2b81uJPtM"], ["updated_at", "2014-11-12 19:47:59.965668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:59.968274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:47:59.969748"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:47:59.969748"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R595236104' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R595236104%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R595236104' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ZyI4ov6fB5qql_HBvoZ2BA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:47:59.975502"], ["currency", "USD"], ["email", "keira.hyatt@kunzeemmerich.name"], ["guest_token", "ZyI4ov6fB5qql_HBvoZ2BA"], ["number", "R595236104"], ["state", "cart"], ["updated_at", "2014-11-12 19:47:59.975502"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'SWQSYZA2' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:47:59.978070"], ["identifier", "SWQSYZA2"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:47:59.978070"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.980408' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-523343' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-523343"], ["updated_at", "2014-11-12 19:47:59.981618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (4.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'marley@howeschulist.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158220255591xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:53:45.995330"], ["email", "marley@howeschulist.co.uk"], ["encrypted_password", "a514f16cf148aa447bbc2572b3a67748bd818f066b595ab02c797cfe537300fc9021a5e350d4b802fbf20ed3e531c4e3a38a4ae1cacf003b2f676b9647a479b9"], ["login", "marley@howeschulist.co.uk"], ["password_salt", "Bw-XxBb2b_zqWDJMkbW_"], ["updated_at", "2014-11-12 19:53:45.995330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:53:46.027653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:46.033812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:46.041793"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:46.041793"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:46.062583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:46.064022"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:53:46.064022"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R952148483' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R952148483%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R952148483' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'lM66yCP829BCEiyoxJCaWw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:53:46.081027"], ["currency", "USD"], ["email", "marley@howeschulist.co.uk"], ["guest_token", "lM66yCP829BCEiyoxJCaWw"], ["number", "R952148483"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:53:46.081027"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:53:46.134083"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 19:53:46.134083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 412317' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:46.144120"], ["description", "Aut sunt et non perferendis."], ["name", "TaxCategory - 412317"], ["updated_at", "2014-11-12 19:53:46.144120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:53:46.167356"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:46.167356"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-609' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-609' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:46.130039"], ["created_at", "2014-11-12 19:53:46.172400"], ["description", "Quibusdam placeat quae in omnis vel id. Eos mollitia quia molestiae eum impedit quis placeat voluptas. Et natus quasi in veniam. Omnis sit nemo explicabo et beatae tempora. Quas molestiae tenetur suscipit voluptatem et ipsam dolore facilis.\nQuia quis natus rem ut itaque et et quidem. Laboriosam dolor cumque perferendis ut deleniti. Cumque eaque facere ipsam explicabo commodi."], ["name", "Product #1 - 609"], ["shipping_category_id", 1], ["slug", "product-1-609"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:46.172400"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:53:46.175031"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.182589' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.183860' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.197702' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.198871' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:46.220105"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:46.220105"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.221293' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.221878' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.223020' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.223513' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.238093' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.239042' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.239898' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:46.242366"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.243877' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.244343' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.244786' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.245307' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.245748' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:46.261987"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:46.261987"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-609' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.328922' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:46.338650' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-218' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-218' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:46.344354"], ["created_at", "2014-11-12 19:53:46.348144"], ["description", "Rerum et provident architecto dolorem animi. Vel illo laboriosam exercitationem maiores non. Omnis voluptates ut autem nostrum. Est sit quia iusto quos.\nQuia eius et sed quae culpa animi ratione. Praesentium ea sunt perspiciatis voluptatem. Ut reiciendis voluptas et aliquam rerum molestias facere dolore.\nQui et exercitationem saepe quia ut. Expedita laudantium et sed eligendi molestias quaerat repellat. Ipsam suscipit sequi doloribus modi cum molestiae eius."], ["name", "Product #2 - 218"], ["shipping_category_id", 1], ["slug", "product-2-218"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:46.348144"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 19:53:46.350317"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.352338' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.353458' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.354738' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.355287' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:46.358080"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:46.358080"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.358998' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.359524' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.360575' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.361057' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.364879' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.365518' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.366105' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:46.367872"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.368671' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.369194' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.369716' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.370306' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.370783' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:46.375503"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:46.375503"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-218' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.381236' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:46.386802' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-1746' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-1746' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:46.392304"], ["created_at", "2014-11-12 19:53:46.396047"], ["description", "Hic sit sunt nemo aliquid corrupti eos vero. Ut inventore ipsam labore at consequuntur sint facilis. Repellendus voluptatem ut rerum enim sequi voluptatem placeat. Tempora vel velit modi aliquam fuga vero dolorem id.\nRerum laborum minima necessitatibus saepe quibusdam aperiam nihil quas. In hic illo aut fugiat reprehenderit. Minus officiis soluta ad quidem. Illo reprehenderit sint et minima tempore accusantium.\nDolore ex voluptas aut quae et. Aperiam ratione odit quo cum consequatur reiciendis non minus. Quae sit suscipit dolor sequi nihil quas minima quia."], ["name", "Product #3 - 1746"], ["shipping_category_id", 1], ["slug", "product-3-1746"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:46.396047"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:53:46.398220"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.400088' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.401163' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.402423' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.402956' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:46.405776"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:46.405776"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.406654' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.407153' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.408215' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.408707' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.412470' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.412967' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.413464' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:46.415028"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.415713' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.416190' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.416663' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.417192' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.417643' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:46.422266"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:46.422266"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-1746' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.427836' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:46.433458' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-5404' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-5404' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:46.439673"], ["created_at", "2014-11-12 19:53:46.443335"], ["description", "Dignissimos quia ut est dolorem molestias. Sit quo voluptates qui commodi facilis quis deleniti. Nesciunt natus consectetur nemo et.\nFacere repellendus blanditiis dolores rerum nam et dicta quidem. Hic et maxime repellat omnis. Harum minima quia quasi voluptatum culpa. Omnis aut et quia minima. Ea sed officiis ipsa voluptatem nulla est quo occaecati.\nEt voluptatem laboriosam ut odio fuga delectus. Et in perspiciatis et sequi. Quis nostrum sed ea quibusdam quos quas. Qui debitis nam consequatur quas et ducimus voluptate iure.\nQui est sed est nihil eius et minus et. Et nesciunt beatae voluptatem error autem dolorem quos voluptate. Non quia omnis ab non reprehenderit repellendus. Deserunt repudiandae velit ratione quidem non autem tempore voluptatum."], ["name", "Product #4 - 5404"], ["shipping_category_id", 1], ["slug", "product-4-5404"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:46.443335"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-11-12 19:53:46.445476"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.447346' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.448413' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.449627' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.450160' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:46.453035"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:46.453035"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.453891' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.454405' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.455505' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.455998' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.459857' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.460394' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.460958' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:46.464186"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.465515' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.466380' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.467069' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.468041' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.469530' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:46.475827"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:46.475827"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-5404' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.483582' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:46.490718' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-5365' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-5365' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:46.495868"], ["created_at", "2014-11-12 19:53:46.500400"], ["description", "Tempora odio qui autem ad voluptas fugiat officia odit. Impedit aut accusamus aut sed perferendis est sunt voluptatem. Itaque distinctio provident perspiciatis consequatur delectus omnis deserunt. Odio neque explicabo quam sed doloribus nihil sed."], ["name", "Product #5 - 5365"], ["shipping_category_id", 1], ["slug", "product-5-5365"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:46.500400"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:53:46.503161"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.505420' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.506536' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.508011' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.508659' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:46.512565"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:46.512565"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.513775' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.514552' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.516096' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.516869' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.522814' WHERE "spree_products"."id" = 5 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.524140' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.525360' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:46.527402"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.528203' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.528726' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.529218' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.529754' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.530190' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:46.535579"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:46.535579"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-5365' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.541351' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:46.547521' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:53:46.565405"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:46.565405"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:46.569105"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:46.569105"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.570027' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.571228' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.572504' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.573061' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:46.577390"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:46.577390"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.579186' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.581385' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.583230' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.584047' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:46.587878"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:46.587878"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.588883' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.590072' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.591245' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.591801' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:46.594311"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:46.594311"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.595340' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.596553' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.597776' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.598421' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:46.600976"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:46.600976"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.601892' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.602984' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.604169' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:46.604675' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H11058423517%') SQL (0.3ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:53:46.610446"], ["number", "H11058423517"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:53:46.610446"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.611771' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:46.617940' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:46.637376"], ["description", "Sed ut dolore repudiandae aliquid."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:53:46.637376"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:46.640606"], ["updated_at", "2014-11-12 19:53:46.640606"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:53:46.691578"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:53:46.691578"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:53:46.692800"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:53:46.692800"]] SQL (0.2ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:46.694742"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:53:46.694742"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:53:46.709854"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:53:46.709854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:46.724892"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:46.724892"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:46.726138' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.726861' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:46.728452"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:46.728452"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:46.729182' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.729715' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:46.731058"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:46.731058"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:46.731717' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.732174' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:46.733502"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:46.733502"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:46.734181' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.734657' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:46.736225"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:46.736225"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:46.737093' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.737668' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:53:46.755986' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:46.780652"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:53:46.780652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:46.811445"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:53:46.811445"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'florencio@dibbertdach.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158220262642xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:53:46.815501"], ["email", "florencio@dibbertdach.biz"], ["encrypted_password", "a063c3a4ec26364648cbea404fdac9e59a94dc5418d4cbde78e383be421e8a853b0a22fa24d191dd0ee20ac5250d36fc1b430fc9638e404b2176e4255781d50a"], ["login", "florencio@dibbertdach.biz"], ["password_salt", "KXDz-KDXx1yM5ozVSdLJ"], ["updated_at", "2014-11-12 19:53:46.815501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:46.818607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:46.820227"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:53:46.820227"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R160243098' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R160243098%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R160243098' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'VP-m_OZcbOupgDQ2qgqYDA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:53:46.827546"], ["currency", "USD"], ["email", "florencio@dibbertdach.biz"], ["guest_token", "VP-m_OZcbOupgDQ2qgqYDA"], ["number", "R160243098"], ["state", "cart"], ["updated_at", "2014-11-12 19:53:46.827546"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '748QZVKK' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:53:46.840374"], ["identifier", "748QZVKK"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:53:46.840374"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.843496' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-333534' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-333534"], ["updated_at", "2014-11-12 19:53:46.844867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (145.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rey@fritschkutch.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158220273583xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:53:47.014841"], ["email", "rey@fritschkutch.biz"], ["encrypted_password", "e418b05a292ba79019f9fe562b79b3e8ed0f9144f166e4651f5016f09ea2de3cbf7d4759ae841fb91e3fc02c4e5c9e503c5ad4a1e9d5bfebefc61ce460f1d4a0"], ["login", "rey@fritschkutch.biz"], ["password_salt", "qH1vH4hds72fEx1h3y3W"], ["updated_at", "2014-11-12 19:53:47.014841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:53:47.017960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:47.019197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:47.020641"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:47.020641"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:47.023395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:47.024857"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:53:47.024857"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R374979920' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R374979920%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R374979920' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'RUU_XZN44hJFsKebNqLcBg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:53:47.030508"], ["currency", "USD"], ["email", "rey@fritschkutch.biz"], ["guest_token", "RUU_XZN44hJFsKebNqLcBg"], ["number", "R374979920"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:53:47.030508"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:53:47.038999"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 19:53:47.038999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 566888' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.041671"], ["description", "Cumque omnis animi ut repudiandae."], ["name", "TaxCategory - 566888"], ["updated_at", "2014-11-12 19:53:47.041671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:53:47.044949"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:47.044949"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-1737' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-1737' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:47.037947"], ["created_at", "2014-11-12 19:53:47.048883"], ["description", "Quo similique praesentium vel nam. Adipisci amet magni sapiente harum dolore voluptas. Illum et explicabo veniam autem. Nesciunt sit qui quia laudantium sunt sint velit.\nRecusandae et ea ratione labore vitae et delectus corporis. Ratione autem eos in laudantium. Ut nisi aliquid tenetur id quo. Sequi veniam ipsam itaque ipsum esse deserunt excepturi veritatis.\nExplicabo accusantium quasi tempore vel consequatur atque qui. Quisquam ipsum reiciendis omnis debitis aut soluta. Nihil eos sapiente deserunt debitis autem ut. Aut dolore debitis et tempora hic quo quia.\nFacere autem amet doloribus pariatur veniam laudantium deserunt quia. Et et optio nisi dolores aliquam. Repudiandae esse corrupti nihil tempora itaque rerum et. Nemo ut assumenda id sint eum. Ea veritatis fugit vero quis nostrum placeat itaque hic."], ["name", "Product #6 - 1737"], ["shipping_category_id", 1], ["slug", "product-6-1737"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.048883"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-11-12 19:53:47.051142"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.053202' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.054307' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.055557' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.056112' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.058982"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:47.058982"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.059986' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.060501' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.061582' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.062101' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.066060' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.066613' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.067157' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.068767"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.069426' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.069878' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.070364' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.070892' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.071351' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:47.075998"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.075998"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-1737' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.081587' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.087074' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-4368' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-4368' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:47.092216"], ["created_at", "2014-11-12 19:53:47.095901"], ["description", "Ducimus delectus rem mollitia ipsam. Quas ut provident omnis ullam sunt sit magni. Id quos qui nam sit rerum velit animi et. Voluptas enim in deserunt non quam possimus veniam voluptas.\nConsectetur sunt cum ipsa voluptatem quaerat non nostrum. Laudantium qui porro officiis est et dolorem cumque reprehenderit. Libero modi nisi aut et nihil. Magnam ullam illo ut excepturi sit vel atque. Deserunt voluptas commodi consectetur ut quas totam."], ["name", "Product #7 - 4368"], ["shipping_category_id", 1], ["slug", "product-7-4368"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.095901"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-11-12 19:53:47.097997"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.099956' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.101029' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.102278' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.102819' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.105623"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:47.105623"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.106532' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.107064' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.108117' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.108597' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.112444' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.113010' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.113566' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.115177"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.115872' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.116347' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.116825' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.117364' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.117798' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:47.122484"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.122484"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-4368' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.132275' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.138754' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-8473' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-8473' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:47.144231"], ["created_at", "2014-11-12 19:53:47.147904"], ["description", "Provident optio expedita laborum vero qui nisi consequatur sunt. Officia laudantium rerum consequuntur molestiae numquam sed ea. Eum sunt laborum id tempore. Delectus error ad natus harum temporibus dolor molestiae velit. Cupiditate cum nulla dolor voluptatum sed.\nAut sit explicabo eligendi ea consequatur. Magni et exercitationem voluptates in non id officia. Est quis eaque officiis et rerum.\nNam excepturi voluptatem delectus blanditiis quo. Aut distinctio qui vel magni. Non et et illo non veritatis voluptas commodi."], ["name", "Product #8 - 8473"], ["shipping_category_id", 1], ["slug", "product-8-8473"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.147904"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-11-12 19:53:47.150092"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.152354' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.153685' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.155173' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.155801' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.158784"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:47.158784"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.159731' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.160249' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.161375' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.161851' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.166108' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.166684' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.167297' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.169062"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.169718' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.170192' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.170668' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.171237' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.171737' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:47.177876"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.177876"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-8473' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.187713' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.193973' WHERE "spree_line_items"."id" = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-7777' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-7777' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:47.199721"], ["created_at", "2014-11-12 19:53:47.203527"], ["description", "Omnis nesciunt quae odio accusantium dolorum sit eos. Doloremque est sit quod velit modi natus ratione vel. Quia corporis quo impedit dicta accusantium. Et doloribus ea eum amet corrupti. Et quae illum accusantium quod.\nAtque pariatur et fugit rem rerum et. Rerum quisquam temporibus iste quia vel voluptatem. Laboriosam et ut minima consequatur explicabo laborum itaque. Tempore natus voluptas et a aut ea. Non nisi laudantium veniam et rem."], ["name", "Product #9 - 7777"], ["shipping_category_id", 1], ["slug", "product-9-7777"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.203527"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-11-12 19:53:47.205629"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.207527' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.208579' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.209785' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.210350' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.213521"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:47.213521"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.214394' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.214909' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.216013' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.216517' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.220430' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.220951' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.221483' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.223145"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.223751' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.224197' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.224682' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.225213' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.225657' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:47.230804"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.230804"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-7777' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.236480' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.242073' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-9118' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-9118' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:47.247107"], ["created_at", "2014-11-12 19:53:47.250823"], ["description", "Odio tempore et maiores est sed esse. Aut autem doloribus aliquam quos minus consectetur. Sint quia excepturi officiis corporis. Quaerat dolore nesciunt nihil qui sit non nemo dignissimos. Beatae voluptas quas sint esse nobis consequatur.\nVoluptatibus vero atque corrupti voluptatem. Est eum aliquam aspernatur magnam aut. Pariatur maxime neque voluptates qui."], ["name", "Product #10 - 9118"], ["shipping_category_id", 1], ["slug", "product-10-9118"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.250823"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-11-12 19:53:47.252938"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.254894' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.255920' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.257164' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.257723' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.260570"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:47.260570"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.261471' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.262033' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.263188' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.263671' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.267587' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.268074' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.268617' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.271430"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.272549' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.273288' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.274328' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.275344' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.276102' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:47.284109"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.284109"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-9118' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.289852' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.295538' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:53:47.301654"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:47.301654"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.306213"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:47.306213"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.307460' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.308923' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.310421' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.311187' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.314224"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:47.314224"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.315423' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.316813' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.318056' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.318572' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.321245"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:47.321245"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.322158' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.323467' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.324808' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.325390' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.328053"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:47.328053"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.329105' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.330352' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.332012' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.332637' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.335559"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:47.335559"], ["variant_id", 5]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.336591' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.338529' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.340359' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.341136' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H13227038302%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:53:47.344682"], ["number", "H13227038302"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:53:47.344682"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.345815' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.350063' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.354730"], ["description", "Quam unde dolorem est asperiores."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:53:47.354730"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.356314"], ["updated_at", "2014-11-12 19:53:47.356314"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:53:47.365703"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:53:47.365703"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:53:47.366516"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:53:47.366516"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.367898"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:53:47.367898"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:53:47.370641"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:53:47.370641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.374330"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:47.374330"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.375169' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.375751' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.377172"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:47.377172"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.377824' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.378277' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.379699"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:47.379699"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.380361' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.380844' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.382279"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:47.382279"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.382959' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.383472' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.384943"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:47.384943"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.385677' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.386177' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:53:47.394971' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.398868"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:53:47.398868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.400971"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:53:47.400971"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'felipa@hilll.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415822027174xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:53:47.404034"], ["email", "felipa@hilll.ca"], ["encrypted_password", "18339d980df00f30516ed1db85f31a54a96b720e0aecce009afbda076c9144a2e8f6a6a60dd220b37294193a7e758bec3057b5383b62a6c26916e505c6a2fcc6"], ["login", "felipa@hilll.ca"], ["password_salt", "muvko7WQmCQzSUnMEmao"], ["updated_at", "2014-11-12 19:53:47.404034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:47.406760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (15.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:47.408235"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:53:47.408235"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R478517998' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R478517998%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R478517998' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'lZPkKIvXUiEJ9mKUIBXidA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:53:47.429388"], ["currency", "USD"], ["email", "felipa@hilll.ca"], ["guest_token", "lZPkKIvXUiEJ9mKUIBXidA"], ["number", "R478517998"], ["state", "cart"], ["updated_at", "2014-11-12 19:53:47.429388"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XNJW9BBC' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:53:47.431889"], ["identifier", "XNJW9BBC"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:53:47.431889"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.434149' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-324303' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-324303"], ["updated_at", "2014-11-12 19:53:47.435369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (5.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'casandra@cruickshank.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415822027965xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:53:47.455076"], ["email", "casandra@cruickshank.com"], ["encrypted_password", "5bcb5c83ba61c09a5bbf3f84e410cbc8d8288402c2673b32795bec0f4ef06cac1742d3631a30c37cd5a3ea508d67b93ae45f4303ef7b3834b301ad7432fcc4d8"], ["login", "casandra@cruickshank.com"], ["password_salt", "BU1zVdqmzddu1J15f2Hc"], ["updated_at", "2014-11-12 19:53:47.455076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:53:47.458419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:47.459702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:47.461216"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:47.461216"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:47.463834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:47.465185"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:53:47.465185"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R662369812' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R662369812%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R662369812' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '1j3REocclQGtVwNjw47VSg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:53:47.471436"], ["currency", "USD"], ["email", "casandra@cruickshank.com"], ["guest_token", "1j3REocclQGtVwNjw47VSg"], ["number", "R662369812"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:53:47.471436"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:53:47.479336"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 19:53:47.479336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 920219' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.482122"], ["description", "Nesciunt et dignissimos amet magnam dolorem."], ["name", "TaxCategory - 920219"], ["updated_at", "2014-11-12 19:53:47.482122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:53:47.485654"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:47.485654"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-316' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-316' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:47.478229"], ["created_at", "2014-11-12 19:53:47.489680"], ["description", "Et aut accusantium aliquam voluptatem et minus. Necessitatibus saepe sit est beatae officiis eos ea voluptatum. Officiis molestiae maiores qui quis inventore. Aut ut minima fuga quaerat totam incidunt iure. Est consequuntur et esse voluptatem aliquid non.\nRepudiandae beatae accusamus saepe quos velit in. Tempore qui dolor culpa voluptas sit assumenda. Quia incidunt deleniti soluta dolores dolorum earum qui.\nMolestiae quam possimus quia ducimus quia voluptatum. Et labore beatae molestiae praesentium aperiam corrupti animi et. Repellendus rem ratione expedita odit."], ["name", "Product #11 - 316"], ["shipping_category_id", 1], ["slug", "product-11-316"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.489680"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 19:53:47.492103"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.494361' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.495510' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.496828' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.497464' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.500459"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:47.500459"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.501421' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.501948' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.503046' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.503532' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.507589' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.508171' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.508718' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.510363"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.511051' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.511548' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.512031' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.512591' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.513088' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:47.517909"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.517909"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-316' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.523994' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.529789' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-4476' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-4476' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:47.535434"], ["created_at", "2014-11-12 19:53:47.539121"], ["description", "In maiores ut temporibus quidem alias cumque adipisci. Necessitatibus ad quos et ut veniam. Repudiandae impedit qui eum asperiores nulla nemo dolorem similique. Optio rerum commodi debitis totam est magni aspernatur.\nNon et iure odio quibusdam. Quam amet ea dolor animi exercitationem aut. Aut et itaque est illum autem.\nId quia voluptas consequatur omnis distinctio nobis optio. Ex dicta soluta vel quibusdam rerum earum velit placeat. Sit reprehenderit dolore officia architecto quisquam. Temporibus iusto dolorum sunt aspernatur iure saepe. Aut praesentium cumque eum aliquid possimus exercitationem enim."], ["name", "Product #12 - 4476"], ["shipping_category_id", 1], ["slug", "product-12-4476"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.539121"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 19:53:47.541502"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.543583' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.544675' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.545898' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.546454' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.549336"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:47.549336"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.550276' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.550803' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.551888' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.552413' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.556244' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.556779' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.557351' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.559016"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.559705' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.560205' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.560674' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.561216' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.561664' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:47.566882"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.566882"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-4476' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.572633' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.578482' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-4755' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-4755' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:47.585216"], ["created_at", "2014-11-12 19:53:47.588833"], ["description", "Doloribus qui fuga officiis tempora quia dolorem optio. Explicabo at omnis hic quibusdam aliquid qui voluptatem quisquam. Inventore tempora unde recusandae alias rerum nulla nam ducimus. Veritatis molestias ab doloribus harum. Odit nesciunt fugiat voluptatem quae.\nPerspiciatis omnis vitae voluptatum enim quaerat minima. Repellat provident blanditiis recusandae quam officiis enim possimus consequatur. Repellat mollitia quia quia aut non possimus itaque quis. Incidunt at ducimus magnam ex.\nAccusamus et maiores rerum non in. Alias nam aspernatur aut cupiditate. Consequatur sequi quo voluptatem fuga deserunt doloribus. Magni nesciunt in cumque aut.\nMolestiae asperiores mollitia nostrum cum commodi perspiciatis. Quam et sit et rerum sed a. Sit dolores dolores consequatur deserunt. Quod dolores commodi totam laborum non aut recusandae corporis.\nProvident magnam totam quia libero iusto enim error. Reprehenderit alias quos sed quo sint vel. Minima debitis ea facere voluptas."], ["name", "Product #13 - 4755"], ["shipping_category_id", 1], ["slug", "product-13-4755"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.588833"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-11-12 19:53:47.590984"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.592936' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.593996' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.595209' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.595790' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.598609"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:47.598609"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.599475' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.599981' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.601030' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.601548' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.605316' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.605837' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.606350' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-13' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.607932"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.608692' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.609157' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.609657' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.610255' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.610741' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:47.615670"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.615670"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-4755' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.621487' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.627383' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-2187' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-2187' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:47.634206"], ["created_at", "2014-11-12 19:53:47.637942"], ["description", "Distinctio quia fugiat quisquam quis. Consectetur eum et suscipit minima velit quo. Libero quo quisquam quae sed aspernatur necessitatibus tempore qui. Minima quia molestiae dicta assumenda quis et quos veritatis.\nMagnam aut id sed explicabo. Ullam ipsa praesentium tempora distinctio accusantium. Cum autem quo omnis natus mollitia.\nLibero aut aut voluptatem et voluptas doloribus architecto. Et dolorem et exercitationem ea. Quibusdam ex qui aut ducimus.\nSimilique velit nihil quod possimus illo. Ratione et laborum consequatur nostrum impedit numquam eos. Nesciunt sint dolorum quaerat quis. Officiis sed provident eveniet rerum nisi ab.\nReiciendis nobis ut iste corporis ipsa est blanditiis voluptas. Atque doloremque odio est non. Sequi ad sit cumque consequuntur cum ullam qui. Maxime deleniti dolor libero velit aperiam voluptatum. Qui soluta mollitia autem perferendis."], ["name", "Product #14 - 2187"], ["shipping_category_id", 1], ["slug", "product-14-2187"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.637942"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-14"], ["updated_at", "2014-11-12 19:53:47.640061"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.641908' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.642930' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.644136' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.644669' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.647487"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:47.647487"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.648360' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.648896' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.649977' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.650462' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.654282' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.654839' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.655349' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-14' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.656931"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.657608' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.658097' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.658586' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.659174' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.659625' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:47.664309"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.664309"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-2187' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.670057' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.675429' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-8578' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-8578' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:47.680532"], ["created_at", "2014-11-12 19:53:47.684277"], ["description", "Omnis et consequatur soluta asperiores aut delectus doloribus. Illo voluptatibus aliquid ipsum totam harum sint. Eius ea hic saepe explicabo perspiciatis vel dolores. Natus dicta possimus quia sit sint sapiente.\nNumquam voluptatem nihil velit magnam voluptatem eveniet esse deleniti. Sed corporis rerum laboriosam aut aut dolores et. Et repudiandae vel praesentium cupiditate dolorem adipisci. Modi error sequi quia pariatur. Fuga magnam voluptatem aliquid velit architecto quo reprehenderit aut."], ["name", "Product #15 - 8578"], ["shipping_category_id", 1], ["slug", "product-15-8578"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.684277"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-11-12 19:53:47.686390"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.688268' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.689323' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.690589' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.691220' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.694106"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:47.694106"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.694984' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.695507' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.696576' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.697062' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.700869' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.701391' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.701941' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-15' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.703569"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.704185' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.704640' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.705103' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.705631' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.706103' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:47.710791"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.710791"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-8578' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.716503' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.721954' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:53:47.727003"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:47.727003"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.730678"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:47.730678"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.731580' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.732695' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.733913' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.734456' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.736915"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:47.736915"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.737754' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.738759' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.739910' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.740385' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.742712"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:47.742712"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.743520' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.744557' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.745668' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.746222' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.748710"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:47.748710"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.749573' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.750645' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.751820' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.752298' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.754647"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:47.754647"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.755500' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.756573' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.757679' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.758267' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H35071813814%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:53:47.761073"], ["number", "H35071813814"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:53:47.761073"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.762024' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.764939' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.768793"], ["description", "Facilis et sequi libero molestiae repellendus non impedit quidem."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:53:47.768793"]] Spree::ZoneMember Exists (0.2ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.3ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.770825"], ["updated_at", "2014-11-12 19:53:47.770825"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:53:47.784385"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:53:47.784385"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:53:47.785203"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:53:47.785203"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.786515"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:53:47.786515"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:53:47.789323"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:53:47.789323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.793041"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:47.793041"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.793827' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.794410' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.795834"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:47.795834"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.796491' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.796935' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.798240"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:47.798240"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.798890' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.799334' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.800643"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:47.800643"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.801304' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.801760' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.803107"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:47.803107"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.803755' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.804217' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:53:47.812442' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.816095"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:53:47.816095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.818176"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:53:47.818176"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lane@barrows.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158220277966xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:53:47.821145"], ["email", "lane@barrows.biz"], ["encrypted_password", "5230643429891689528aba6c586a260cae05777fbed0b8753a77f84e7a8388e08ab53e8e7b089bead4c10bf0d9a86439706a6581de96122bbac1caedc7f24eeb"], ["login", "lane@barrows.biz"], ["password_salt", "9JmFKmno2HYf8oqWihG9"], ["updated_at", "2014-11-12 19:53:47.821145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:47.823731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:47.825136"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:53:47.825136"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R978621116' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R978621116%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R978621116' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'o_Jx4fHo69QRtwLEr-ohtQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:53:47.830653"], ["currency", "USD"], ["email", "lane@barrows.biz"], ["guest_token", "o_Jx4fHo69QRtwLEr-ohtQ"], ["number", "R978621116"], ["state", "cart"], ["updated_at", "2014-11-12 19:53:47.830653"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'YE6U2SFG' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:53:47.833193"], ["identifier", "YE6U2SFG"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:53:47.833193"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.835478' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-323003' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-323003"], ["updated_at", "2014-11-12 19:53:47.836721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (4.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'gerda_rodriguez@langosh.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158220277787xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:53:47.856656"], ["email", "gerda_rodriguez@langosh.com"], ["encrypted_password", "d5d68cef2fc525d8405ef2a5194a25982e1506befba81855463f278a3680926cfe24dfa0da12104b3b62f05399050656c30fba162ea399e00a2cf8a8858a2be4"], ["login", "gerda_rodriguez@langosh.com"], ["password_salt", "8vjA96oedN6g1mzgCLjV"], ["updated_at", "2014-11-12 19:53:47.856656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:53:47.871861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:47.873319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:47.874803"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:47.874803"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:47.877441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:47.878730"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:53:47.878730"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R305381506' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R305381506%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R305381506' LIMIT 1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'UzlHX6VFENOlXDtkNxWUEA' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:53:47.885789"], ["currency", "USD"], ["email", "gerda_rodriguez@langosh.com"], ["guest_token", "UzlHX6VFENOlXDtkNxWUEA"], ["number", "R305381506"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:53:47.885789"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:53:47.898394"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 19:53:47.898394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 473525' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:47.901247"], ["description", "Quae sint ducimus ullam et ratione accusantium."], ["name", "TaxCategory - 473525"], ["updated_at", "2014-11-12 19:53:47.901247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:53:47.904619"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:47.904619"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-7116' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-7116' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:47.897153"], ["created_at", "2014-11-12 19:53:47.908276"], ["description", "Modi quaerat quidem dolorum rerum. Est ut aut laborum voluptas exercitationem optio debitis ut. Ullam quidem magnam accusantium sit eum ut omnis. Rerum ullam et officiis ea voluptate.\nNatus dolor officia voluptatem iusto excepturi voluptas molestiae. Quia sed fuga quis illum beatae magni sint mollitia. Vel velit suscipit est ex.\nQui in molestiae aut in omnis totam hic. Perspiciatis eaque aut esse voluptates quaerat. Dolorem non veniam facere optio qui autem in. Unde aspernatur doloribus et iusto aperiam mollitia."], ["name", "Product #16 - 7116"], ["shipping_category_id", 1], ["slug", "product-16-7116"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.908276"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-16"], ["updated_at", "2014-11-12 19:53:47.910513"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.912610' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.913707' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.914979' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.915581' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.918504"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:47.918504"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.919421' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.919972' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.921102' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.921621' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.925581' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.926140' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.926668' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-16' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.928243"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.928958' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.929433' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.929920' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.930480' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.930926' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:47.938781"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.938781"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-7116' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.947198' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.952714' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-7451' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-7451' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:47.957032"], ["created_at", "2014-11-12 19:53:47.960617"], ["description", "Ut sed ut quia repellat. Est quo consectetur numquam hic laudantium molestiae nostrum. Ut consequuntur consequatur vel id aut rerum temporibus quam."], ["name", "Product #17 - 7451"], ["shipping_category_id", 1], ["slug", "product-17-7451"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.960617"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-17"], ["updated_at", "2014-11-12 19:53:47.962693"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.964641' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.965692' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.966896' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.967426' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:47.970266"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:47.970266"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.971181' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.971699' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.972736' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.973227' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.977014' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.977554' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.978153' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-17' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.979770"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.980413' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.980881' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.981360' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.981919' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:47.982362' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:47.986978"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:47.986978"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-7451' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.992599' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:47.998054' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-2120' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-2120' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:48.002253"], ["created_at", "2014-11-12 19:53:48.005976"], ["description", "Aperiam et repellendus consequatur voluptatem aut eos. Possimus tenetur voluptatem expedita eos. Enim magnam quo ipsa magni."], ["name", "Product #18 - 2120"], ["shipping_category_id", 1], ["slug", "product-18-2120"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.005976"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-18"], ["updated_at", "2014-11-12 19:53:48.008076"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.009939' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.010953' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.012147' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.012681' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.015538"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:48.015538"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.016430' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.016931' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.017991' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.018473' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.022381' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.022899' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.023421' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-18' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.025040"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.025667' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.026113' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.026583' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.027121' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.027570' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:48.032694"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.032694"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-2120' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.038408' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:48.043891' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-4711' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-4711' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:48.049702"], ["created_at", "2014-11-12 19:53:48.053398"], ["description", "Eveniet qui cumque molestiae expedita ut qui reiciendis. Autem ut id inventore neque. Blanditiis dolor amet distinctio et. Quia laudantium impedit ipsam eum.\nVoluptatibus soluta iure asperiores eum autem nisi nulla. Officiis blanditiis similique sed assumenda dolor error dolor. Quisquam aut pariatur inventore dicta. Assumenda sequi quod nesciunt nemo sit dolore.\nOdio deleniti aut aut natus veritatis laudantium nostrum nulla. Aliquam dolorem quis a distinctio saepe doloribus. Cupiditate est et saepe voluptatem.\nRecusandae sed veritatis placeat et cupiditate blanditiis eveniet. Alias cupiditate optio quaerat libero dolorem et. Incidunt blanditiis aut et voluptatibus."], ["name", "Product #19 - 4711"], ["shipping_category_id", 1], ["slug", "product-19-4711"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.053398"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-19"], ["updated_at", "2014-11-12 19:53:48.055543"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.057400' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.058441' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.059645' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.060202' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.063030"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:48.063030"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.063886' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.064390' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.065453' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.065949' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.069782' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.070300' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.070815' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-19' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.072424"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.073049' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.073498' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.073988' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.074517' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.074986' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:48.079646"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.079646"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-4711' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.085227' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:48.090878' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-8225' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-8225' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:48.097273"], ["created_at", "2014-11-12 19:53:48.100976"], ["description", "Esse praesentium velit quia doloremque qui reiciendis. Quia cumque consequuntur non aperiam velit. Ducimus ut quam eligendi voluptatibus inventore quia unde explicabo. Ab autem accusamus itaque sunt.\nBeatae a error voluptatem occaecati fuga possimus placeat. Deleniti consequuntur quia sed esse rerum voluptates. Porro voluptatem nobis quis unde voluptatem nam et est.\nAtque qui qui similique itaque voluptate accusantium quisquam. Incidunt et officia illum est ipsum reiciendis dignissimos aperiam. Recusandae est occaecati consequatur perferendis maiores aspernatur at. Ab aut qui et corrupti. Quod delectus ut occaecati omnis voluptate fuga.\nTenetur quia nemo officia omnis. Quos et tempore quo laboriosam velit. Sit nesciunt libero suscipit id cupiditate aspernatur. Animi asperiores aspernatur magni beatae laudantium. Corporis eligendi ut non soluta ad doloremque est ratione."], ["name", "Product #20 - 8225"], ["shipping_category_id", 1], ["slug", "product-20-8225"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.100976"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-20"], ["updated_at", "2014-11-12 19:53:48.103142"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.105009' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.106064' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.107264' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.107828' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.110679"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:48.110679"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.111573' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.112085' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.113163' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.113657' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.117536' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.118072' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.118623' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-20' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.120356"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.120974' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.121422' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.121888' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.122425' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.122896' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:48.128539"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.128539"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-8225' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.138541' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:48.144712' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:53:48.149526"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:48.149526"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.153075"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:48.153075"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.154009' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.155154' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.156410' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.156957' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.159427"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:48.159427"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.160234' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.161279' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.162414' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.162903' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.165272"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:48.165272"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.166090' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.167131' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.168312' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.168927' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.171633"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:48.171633"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.172578' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.173631' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.174769' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.175254' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.177642"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:48.177642"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.178463' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.179499' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.180681' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.181239' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H00630634465%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:53:48.184045"], ["number", "H00630634465"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:53:48.184045"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.184992' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:48.188025' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.191694"], ["description", "Labore unde reiciendis eius quibusdam."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:53:48.191694"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.193098"], ["updated_at", "2014-11-12 19:53:48.193098"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:53:48.201769"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:53:48.201769"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:53:48.202539"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:53:48.202539"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.203867"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:53:48.203867"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:53:48.206607"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:53:48.206607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.210219"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:48.210219"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.210983' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.211554' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.212922"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:48.212922"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.213581' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.214033' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.215336"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:48.215336"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.215977' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.216424' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.217722"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:48.217722"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.218441' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.218931' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.220288"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:48.220288"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.220946' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.221388' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:53:48.229704' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.233393"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:53:48.233393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.235615"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:53:48.235615"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'maggie_mcdermott@lind.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158220283858xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:53:48.238905"], ["email", "maggie_mcdermott@lind.name"], ["encrypted_password", "de955d40469bf01d6eef42ddcd593d5eaf1a60902852f528972e6a83c31fa76256c6dc79b8f3f3985090739a072f5c5b3687d3910df3650648ce1a62f1de1093"], ["login", "maggie_mcdermott@lind.name"], ["password_salt", "hQ2gE1Z2RzBS9JzYfXVT"], ["updated_at", "2014-11-12 19:53:48.238905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:48.241655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:48.243088"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:53:48.243088"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R286249053' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R286249053%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R286249053' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LEpxQEnoZ8BDNYr3I4Enqg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:53:48.248462"], ["currency", "USD"], ["email", "maggie_mcdermott@lind.name"], ["guest_token", "LEpxQEnoZ8BDNYr3I4Enqg"], ["number", "R286249053"], ["state", "cart"], ["updated_at", "2014-11-12 19:53:48.248462"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'BHPGABC6' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:53:48.250926"], ["identifier", "BHPGABC6"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:53:48.250926"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.253252' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-105331' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-105331"], ["updated_at", "2014-11-12 19:53:48.254426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (4.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nolan_bruen@mcculloughjohnson.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158220281209xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:53:48.281178"], ["email", "nolan_bruen@mcculloughjohnson.biz"], ["encrypted_password", "775aaef1ad036f4ea9cf82c659f897d8635e3fdb43057c00c61a0954303feae6accdf7711cfdf9869293dde5e2e407ec752b6bd5d53ec4c1071f45073fd4805f"], ["login", "nolan_bruen@mcculloughjohnson.biz"], ["password_salt", "99Ny78bWTQLgV9ac2_G8"], ["updated_at", "2014-11-12 19:53:48.281178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:53:48.284492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:48.285761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:48.287185"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:48.287185"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:48.289764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:48.291074"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:53:48.291074"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R646856021' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R646856021%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R646856021' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CE1VL7CWGghDvJbtiZZIpQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:53:48.297344"], ["currency", "USD"], ["email", "nolan_bruen@mcculloughjohnson.biz"], ["guest_token", "CE1VL7CWGghDvJbtiZZIpQ"], ["number", "R646856021"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:53:48.297344"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:53:48.318404"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 19:53:48.318404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 460216' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.321311"], ["description", "Expedita excepturi odio quia maiores."], ["name", "TaxCategory - 460216"], ["updated_at", "2014-11-12 19:53:48.321311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:53:48.324699"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:48.324699"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-6508' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-6508' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:48.317087"], ["created_at", "2014-11-12 19:53:48.328397"], ["description", "Dolore beatae ut et accusamus impedit nihil. Ea natus nesciunt molestiae ducimus occaecati repellat. Ea vel fuga veritatis dolorem reiciendis vel.\nAliquam quos minus quia eum necessitatibus est quod voluptatibus. Ducimus perspiciatis quo nemo possimus. Quod recusandae aliquid velit earum dolor esse odit praesentium. Animi laborum fuga excepturi incidunt ab ipsum nihil.\nVelit labore ipsa quos quo non voluptas delectus omnis. Sunt aut qui dignissimos qui voluptate excepturi voluptatibus. Occaecati architecto atque laboriosam qui tenetur. Similique mollitia voluptatem sit aut maxime qui.\nOfficiis ipsum necessitatibus et amet perspiciatis. Enim id culpa aliquam mollitia ut. Voluptatem repudiandae consectetur dicta qui molestiae."], ["name", "Product #21 - 6508"], ["shipping_category_id", 1], ["slug", "product-21-6508"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.328397"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-21"], ["updated_at", "2014-11-12 19:53:48.330973"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.332980' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.334047' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.335314' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.335872' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.338790"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:48.338790"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.339916' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.340426' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.341525' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.342058' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.345984' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.346541' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.347056' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-21' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.348615"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.349284' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.349750' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.350232' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.350789' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.351253' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:48.356296"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.356296"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-6508' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.362142' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:48.367609' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-9176' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-9176' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:48.373879"], ["created_at", "2014-11-12 19:53:48.377486"], ["description", "Minima at magnam dignissimos dolores praesentium. A est possimus odio aspernatur consequuntur tempora. Ea est distinctio iure velit ex amet.\nQuia animi non enim quisquam libero. Non culpa fugiat voluptatem hic earum iste mollitia. Autem earum natus eveniet magnam consequatur dolores sit. Et aut corrupti a odit.\nEx similique velit ab soluta cumque enim. Aliquam perspiciatis ut amet culpa. Tempora eaque debitis cum consequatur.\nDicta consequatur nostrum id illum. Quas quia alias dolore nisi. A laborum est minus quidem impedit. Consequatur hic eveniet quod voluptatibus laudantium quae aperiam corrupti.\nAliquid vitae quod illum voluptate quas modi corrupti. Commodi inventore ipsa in assumenda et pariatur quia et. Odio et quam nihil nobis ea ad et."], ["name", "Product #22 - 9176"], ["shipping_category_id", 1], ["slug", "product-22-9176"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.377486"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-22"], ["updated_at", "2014-11-12 19:53:48.379615"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.381568' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.382598' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.383887' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.384461' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.387330"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:48.387330"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.388228' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.388775' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.389863' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.390348' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.394154' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.394673' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.395197' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-22' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.396734"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.397385' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.397846' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.398294' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.398860' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.399304' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:48.403862"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.403862"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-9176' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.409582' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:48.415013' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-2771' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-2771' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:48.421930"], ["created_at", "2014-11-12 19:53:48.425585"], ["description", "Libero sapiente in voluptas modi. Eum magnam ut ipsam eius qui quod. Eum aperiam cupiditate aliquid veniam officia asperiores.\nRepellat perspiciatis voluptatem culpa esse voluptas neque velit quasi. Totam pariatur quis a fuga unde non. Fuga delectus quis quisquam earum vel impedit qui sapiente. Dolore asperiores neque corporis et non amet quos dolorum.\nMolestiae excepturi tenetur amet ut quasi optio doloremque dignissimos. Aut esse quisquam blanditiis incidunt id. In nulla minima aut ea asperiores. Mollitia et illum enim quo architecto est.\nMaxime ut enim sed molestiae delectus nihil modi. Nemo nam sed maiores qui nihil qui. Omnis eligendi autem iste esse. Corporis magni voluptatibus inventore est veniam qui qui mollitia. Soluta sapiente deserunt consequuntur minus mollitia perspiciatis quasi ut.\nLabore at est quisquam saepe quas et. Et sed dolore aspernatur consectetur. Quia dolores asperiores quibusdam ut occaecati. Ut eos itaque laborum et est cupiditate. Voluptate magni saepe similique qui et odio."], ["name", "Product #23 - 2771"], ["shipping_category_id", 1], ["slug", "product-23-2771"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.425585"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-23"], ["updated_at", "2014-11-12 19:53:48.427697"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.429858' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.431090' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.432482' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.433118' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.436041"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:48.436041"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.436924' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.437444' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.438526' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.439008' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.443081' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.443594' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.444118' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-23' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.445761"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.446430' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.446902' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.447364' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.447892' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.448356' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:48.453194"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.453194"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-2771' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.458813' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.4ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:48.468355' WHERE "spree_line_items"."id" = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-204' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-204' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:48.476475"], ["created_at", "2014-11-12 19:53:48.480205"], ["description", "Inventore fugiat illo veniam quo. Perspiciatis ut voluptatem omnis aut harum praesentium eos amet. Aperiam earum sit in quis quod odio distinctio.\nQui sit libero impedit dolores explicabo fugiat. Sit at corrupti omnis delectus ad. Laboriosam aut aut totam magnam nobis culpa. Culpa atque ratione sequi a et doloribus adipisci. Corrupti cum quas doloribus est repellendus iusto a omnis.\nIste voluptatem architecto non cupiditate. Est dolorem nobis quas velit eaque nihil. Laboriosam autem unde et recusandae suscipit doloremque.\nTemporibus a aspernatur ut qui quis consequatur. Non cum est esse enim voluptatem cumque atque nam. Blanditiis error similique est molestias aut iure explicabo. Qui id dolore et enim."], ["name", "Product #24 - 204"], ["shipping_category_id", 1], ["slug", "product-24-204"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.480205"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-24"], ["updated_at", "2014-11-12 19:53:48.482375"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.484355' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.485431' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.486666' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.487215' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.490111"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:48.490111"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.491029' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.491552' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.492598' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.493104' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.496909' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.497453' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.498036' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-24' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.499639"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.500263' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.500704' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.501168' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.501703' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.502183' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:48.507442"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.507442"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-204' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.513037' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:48.518571' WHERE "spree_line_items"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-6260' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-6260' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:48.525323"], ["created_at", "2014-11-12 19:53:48.532195"], ["description", "Voluptatibus eaque odio corporis illum ab rem. Non eveniet molestiae tempore sit sapiente aliquid. Et maxime eaque rerum perspiciatis.\nAutem tenetur saepe ut ut. Voluptatem sed ullam deserunt similique debitis. Autem et voluptates provident dolorem odit vero. Mollitia aperiam enim ad ut libero sed et.\nDolor harum quo rerum accusantium adipisci consequatur. Voluptatem quia error magni ab. Alias maxime odio doloribus similique qui iste. In ipsam facere doloribus dignissimos.\nQui facilis suscipit omnis sint est. Tenetur aut sed itaque voluptatem sunt corrupti. Architecto quia aperiam distinctio voluptatibus neque dolor voluptate incidunt. Ea repudiandae in et unde ipsa.\nEligendi quia expedita ad sapiente molestiae et et. Est asperiores velit nobis nesciunt. Et qui eligendi vel quod. Sunt voluptatem voluptas omnis quis enim autem."], ["name", "Product #25 - 6260"], ["shipping_category_id", 1], ["slug", "product-25-6260"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.532195"]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-25"], ["updated_at", "2014-11-12 19:53:48.536777"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.539607' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.541773' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.543517' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.544178' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.547516"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:48.547516"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.548518' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.549078' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.550206' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.550728' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.555299' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.556025' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.556619' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-25' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.559200"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.560071' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.560678' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.561335' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.562083' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.562655' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:48.568819"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.568819"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-6260' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.576070' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:48.583002' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:53:48.588506"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:48.588506"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.592182"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:48.592182"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.593111' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.594330' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.595562' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.596134' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.598638"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:48.598638"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.599471' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.600537' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.601667' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.602157' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.604576"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:48.604576"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.605403' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.606461' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.607577' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.608180' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.610879"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:48.610879"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.611828' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.612910' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.614052' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.614573' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.616975"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:48.616975"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.617823' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.618847' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.620750' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.622232' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H44857027250%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:53:48.627207"], ["number", "H44857027250"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:53:48.627207"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.628664' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:48.632957' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.639879"], ["description", "Unde eum similique velit neque voluptas porro odio ut."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:53:48.639879"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.642284"], ["updated_at", "2014-11-12 19:53:48.642284"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:53:48.652372"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:53:48.652372"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:53:48.653209"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:53:48.653209"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.654554"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:53:48.654554"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:53:48.657320"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:53:48.657320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.660973"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:48.660973"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.661784' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.662359' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.663795"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:48.663795"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.664445' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.664902' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.666236"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:48.666236"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.666869' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.667317' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.668669"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:48.668669"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.669304' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.669758' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.671044"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:48.671044"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.671701' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.672143' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:53:48.680609' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.684346"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:53:48.684346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.686392"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:53:48.686392"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'luciano@gorczany.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582202899510xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:53:48.689347"], ["email", "luciano@gorczany.com"], ["encrypted_password", "8dd920d10656936a4f0c23423dfd5295a8e30cd6497ffb7a2c0794b905d504853b9a64a299fe846627596adc49a6b91525f04e2d1579743a10e2f89ad66cae13"], ["login", "luciano@gorczany.com"], ["password_salt", "iMjgndcpzXy7qReZyU5W"], ["updated_at", "2014-11-12 19:53:48.689347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:48.691955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:48.693393"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:53:48.693393"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R126651028' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R126651028%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R126651028' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'iHsgxq7upBzpfoVEZXjQ6A' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:53:48.698839"], ["currency", "USD"], ["email", "luciano@gorczany.com"], ["guest_token", "iHsgxq7upBzpfoVEZXjQ6A"], ["number", "R126651028"], ["state", "cart"], ["updated_at", "2014-11-12 19:53:48.698839"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'V6KCK7ML' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:53:48.701323"], ["identifier", "V6KCK7ML"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:53:48.701323"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.703590' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-351532' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-351532"], ["updated_at", "2014-11-12 19:53:48.704806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Deserunt et nam minima et labore a neque dolor.' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.729128"], ["description", "Quam ducimus voluptas dicta neque."], ["name", "Deserunt et nam minima et labore a neque dolor."], ["updated_at", "2014-11-12 19:53:48.729128"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 244370' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.750502"], ["description", "Pariatur inventore ullam modi est."], ["name", "TaxCategory - 244370"], ["updated_at", "2014-11-12 19:53:48.750502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.755439"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:53:48.755439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?) [["amount", 0.1], ["created_at", "2014-11-12 19:53:48.762625"], ["tax_category_id", 2], ["updated_at", "2014-11-12 19:53:48.762625"], ["zone_id", 2]] SQL (0.1ms) UPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:53:48.763653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (4.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'trace@marquardt.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582202896611xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:53:48.782333"], ["email", "trace@marquardt.biz"], ["encrypted_password", "7f06d2b6baf41b327648395858ca86e92ee967a85621d871bfd81420e6316fb3b582be05f9b9a748dd7c7ad4411d2d9bb41f8d4031602fba883b8d29f1cd26f5"], ["login", "trace@marquardt.biz"], ["password_salt", "geyCm8VoYSgxcZRVSN2h"], ["updated_at", "2014-11-12 19:53:48.782333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:53:48.785691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:48.787122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:48.788659"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:48.788659"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:48.791544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:48.792924"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 19:53:48.792924"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R684952977' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R684952977%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R684952977' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XqkS-igUP7CF8YIp5TyNRA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 19:53:48.803317"], ["currency", "USD"], ["email", "trace@marquardt.biz"], ["guest_token", "XqkS-igUP7CF8YIp5TyNRA"], ["number", "R684952977"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 19:53:48.803317"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:53:48.812817"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 19:53:48.812817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 131289' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:48.815843"], ["description", "Sint possimus autem quas sequi voluptas quo iusto."], ["name", "TaxCategory - 131289"], ["updated_at", "2014-11-12 19:53:48.815843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:53:48.819397"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:48.819397"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-7877' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-7877' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:48.811775"], ["created_at", "2014-11-12 19:53:48.823327"], ["description", "Qui voluptates ducimus quis at a aut odio. Eum voluptate quia aperiam soluta qui. Consectetur ut in sapiente vel dolorem corrupti.\nDebitis architecto qui sit quidem nemo aliquam. Molestias perspiciatis rem itaque reprehenderit cumque aperiam non. Laboriosam maiores reiciendis voluptas qui.\nSit odit quia reprehenderit recusandae libero. Suscipit illum voluptates optio ratione reiciendis ut. In mollitia dolorem quia accusamus et cumque voluptatibus totam.\nEt blanditiis dolorem et aut sed ratione. Quia vero sequi libero voluptatem. Aliquam facilis fugiat aut eos adipisci. Reiciendis ipsam molestiae dolor ea laboriosam vel. Porro vitae voluptatum beatae ut magnam id recusandae.\nOptio id odio ipsam ullam. Veniam asperiores unde qui in. Veritatis odit aut voluptas quos excepturi alias ipsa voluptatum. Dolor eius est corporis perspiciatis sunt porro."], ["name", "Product #26 - 7877"], ["shipping_category_id", 1], ["slug", "product-26-7877"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.823327"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-26"], ["updated_at", "2014-11-12 19:53:48.825663"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.827697' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.828856' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.830130' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.830727' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.833631"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:48.833631"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.834549' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.835075' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.836163' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.836676' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.840699' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.841237' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.841764' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-26' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.843450"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.844138' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.844613' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.845089' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.845638' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.846100' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:48.852391"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.852391"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-7877' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.861649' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:48.867656' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-5827' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-5827' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:48.873443"], ["created_at", "2014-11-12 19:53:48.877275"], ["description", "Magnam minima libero accusamus sed distinctio maxime ipsam omnis. Error sit ut sed quis quia hic eos voluptatem. Et earum voluptas ipsam quo perspiciatis facere maxime. Id animi iure dignissimos qui labore. Reprehenderit esse doloremque fugiat quis.\nEum voluptatem hic magni est suscipit. Et quibusdam facere est in sunt. Occaecati et enim expedita sed. Omnis aperiam earum ipsam aliquam consectetur non vel. Consequatur magnam tempora atque ut et.\nFugiat et sit quo porro aliquid. Ex aut omnis cumque repellendus. Maxime et vel consequatur voluptate."], ["name", "Product #27 - 5827"], ["shipping_category_id", 1], ["slug", "product-27-5827"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.877275"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-27"], ["updated_at", "2014-11-12 19:53:48.879396"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.881381' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.882471' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.883662' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.884229' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.887053"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:48.887053"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.887953' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.888513' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.889585' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.890102' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.893917' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.894485' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.895027' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-27' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.896662"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.897294' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.897763' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.898226' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.898782' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.899226' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:48.903953"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.903953"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-5827' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.909625' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:48.915095' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-9564' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-9564' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:48.920836"], ["created_at", "2014-11-12 19:53:48.924515"], ["description", "Tempore dolore corrupti deserunt laudantium placeat perferendis et enim. Minima dolor atque ut facilis sed impedit natus nesciunt. Consequuntur cumque accusantium sed et.\nQui illo ut porro rerum nobis. Magnam sit iste placeat a. Ut sed et adipisci aut.\nTenetur quidem sit nam et est iste. Rerum omnis voluptas aliquam omnis qui ut odio. Error sequi sit velit perspiciatis. Cupiditate ad ut odit illo maxime.\nDoloribus suscipit ut natus deleniti. Consequatur et quis voluptas molestiae doloribus. Dolorem accusamus a tenetur suscipit soluta id."], ["name", "Product #28 - 9564"], ["shipping_category_id", 1], ["slug", "product-28-9564"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.924515"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-28"], ["updated_at", "2014-11-12 19:53:48.926630"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.928532' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.929608' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.930801' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.931352' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.934195"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:48.934195"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.935055' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.935571' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.936754' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.937254' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.941288' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.941865' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.942474' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-28' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.944212"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.944946' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.945446' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.945951' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.946512' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.946956' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:48.951954"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.951954"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-9564' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.957794' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:48.963354' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-2816' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-2816' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:48.967788"], ["created_at", "2014-11-12 19:53:48.971478"], ["description", "Qui ut quia sequi omnis deserunt dignissimos laudantium. Est voluptas qui non rerum ad. Omnis harum doloremque veniam consequatur sunt distinctio unde. Qui inventore ut eos repudiandae repellendus totam."], ["name", "Product #29 - 2816"], ["shipping_category_id", 1], ["slug", "product-29-2816"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.971478"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-29"], ["updated_at", "2014-11-12 19:53:48.973574"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.975575' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.976620' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.977825' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.978373' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:48.981197"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:48.981197"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.982063' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.982550' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.983652' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.984130' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.987933' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.988481' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.988995' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-29' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.990593"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.991201' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.991645' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.992124' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.992652' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:48.993107' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:48.997761"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:48.997761"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-2816' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.003366' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:49.008899' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-5716' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-5716' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 19:53:49.014047"], ["created_at", "2014-11-12 19:53:49.017900"], ["description", "Quae quia incidunt ad voluptatum accusantium voluptatem. Corporis et facilis consequuntur nisi. Non alias facere et asperiores corrupti sequi. Qui consequatur et assumenda vero fugiat alias.\nDelectus quia temporibus ipsum optio corporis neque et veniam. Soluta quisquam ut animi veniam. Dolor culpa unde ullam aliquam sequi. Nam facilis ad molestiae sint."], ["name", "Product #30 - 5716"], ["shipping_category_id", 1], ["slug", "product-30-5716"], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:49.017900"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-30"], ["updated_at", "2014-11-12 19:53:49.020035"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.021901' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.022968' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.024175' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:49.024707' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:49.027540"], ["stock_location_id", 1], ["updated_at", "2014-11-12 19:53:49.027540"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.028414' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.028939' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.030015' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:49.030527' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.034337' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.034894' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:49.035456' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-30' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 19:53:49.037020"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.037652' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.038101' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:49.038562' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.039088' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:49.039561' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 19:53:49.044328"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 19:53:49.044328"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-5716' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.049992' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:49.055573' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 19:53:49.060574"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 19:53:49.060574"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:49.064084"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:49.064084"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.064983' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.066115' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.067344' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:49.067936' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:49.070418"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:49.070418"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.071243' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.072311' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.073487' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:49.074041' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:49.076449"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:49.076449"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.077283' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.078315' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.079531' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:49.080160' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:49.082887"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:49.082887"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.083826' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.084941' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.086129' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:49.086638' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 19:53:49.089123"], ["stock_location_id", 2], ["updated_at", "2014-11-12 19:53:49.089123"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.089992' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.091049' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.092285' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 19:53:49.092853' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H48701262454%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:53:49.095707"], ["number", "H48701262454"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 19:53:49.095707"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.096719' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 19:53:49.099764' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:49.103476"], ["description", "Odit perspiciatis vel dolor et id sapiente quaerat repellat."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 19:53:49.103476"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.3ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:49.105949"], ["updated_at", "2014-11-12 19:53:49.105949"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 19:53:49.120042"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:53:49.120042"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 19:53:49.120866"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 19:53:49.120866"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 19:53:49.122224"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:53:49.122224"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 19:53:49.125003"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 19:53:49.125003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:49.128755"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:49.128755"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:49.129600' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.130187' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:49.131675"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:49.131675"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:49.132358' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.132841' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:49.134238"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:49.134238"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:49.134920' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.135380' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:49.136771"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:49.136771"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:49.137626' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.138136' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:49.139480"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 19:53:49.139480"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:49.140163' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.140636' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 19:53:49.149156' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:49.168841"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 19:53:49.168841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 19:53:49.171211"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 19:53:49.171211"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'thad.lehner@hoegerosinski.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582202968812xxxxxxxxxxxxx"], ["created_at", "2014-11-12 19:53:49.174284"], ["email", "thad.lehner@hoegerosinski.biz"], ["encrypted_password", "ffcc9a09ca4dfaa480da689d039c52f08631f0d9178dcc9ad324d87895d35612ecc0d88ebe548216747635e86267353975c57e884ac28cd420270137b15455b7"], ["login", "thad.lehner@hoegerosinski.biz"], ["password_salt", "Ppv76oy82AqN5CLyN33L"], ["updated_at", "2014-11-12 19:53:49.174284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:49.176844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 19:53:49.178227"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 19:53:49.178227"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R722586912' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R722586912%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R722586912' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'diIPpMPb_VW64BxhMkUNVQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 19:53:49.183572"], ["currency", "USD"], ["email", "thad.lehner@hoegerosinski.biz"], ["guest_token", "diIPpMPb_VW64BxhMkUNVQ"], ["number", "R722586912"], ["state", "cart"], ["updated_at", "2014-11-12 19:53:49.183572"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '2HRN44S9' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 19:53:49.186025"], ["identifier", "2HRN44S9"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 19:53:49.186025"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.188255' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-554315' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-554315"], ["updated_at", "2014-11-12 19:53:49.189816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'michelle.schuppe@bogan.name' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415822532481xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:12.893959"], ["email", "michelle.schuppe@bogan.name"], ["encrypted_password", "afb8c0d9edb26761dcca143c5f7f7527bfc4eaf851f6fc5c5694774fd30a8730753a7a777cb41e4e101532cd82e5949e4bf7400d159f62a37e6c9ef6b4f2e154"], ["login", "michelle.schuppe@bogan.name"], ["password_salt", "4bBzSQ_nyDX7WGLAFLyL"], ["updated_at", "2014-11-12 20:02:12.893959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:12.927212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:12.932995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:12.941676"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:12.941676"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R298420289' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R298420289%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R298420289' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '2CA4ejvinVeIer9POk8kNw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:02:12.975865"], ["currency", "USD"], ["email", "michelle.schuppe@bogan.name"], ["guest_token", "2CA4ejvinVeIer9POk8kNw"], ["number", "R298420289"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:12.975865"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:02:13.026256"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:02:13.026256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 717060' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:02:13.035990"], ["description", "Quia laborum ea rem accusantium eaque blanditiis."], ["name", "TaxCategory - 717060"], ["updated_at", "2014-11-12 20:02:13.035990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:02:13.058740"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:13.058740"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-5551' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-5551' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:13.022312"], ["created_at", "2014-11-12 20:02:13.063796"], ["description", "Et exercitationem nam beatae blanditiis sapiente et incidunt. Tenetur est facere ratione a pariatur. Inventore quisquam consequatur qui a hic voluptatem."], ["name", "Product #1 - 5551"], ["shipping_category_id", 1], ["slug", "product-1-5551"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.063796"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:02:13.066470"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.073847' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.075171' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.088715' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.089914' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:13.110659"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:13.110659"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.111830' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.112407' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.113560' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.114081' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.2ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.129509' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.130259' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.130810' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.132426"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.133555' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.134025' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.134476' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.135007' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.135435' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:13.156862"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.156862"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-5551' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.165595' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:13.174106' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-8615' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-8615' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:13.180040"], ["created_at", "2014-11-12 20:02:13.236516"], ["description", "Nulla et consequatur rerum autem quae. Qui dolor dolores quia non in et ipsum. Maxime sed ducimus veritatis ex nemo explicabo.\nCorrupti voluptas expedita laborum dolore inventore in aut libero. Tempore et aut omnis placeat accusamus. Ut qui ullam quia sint iusto. Officia ex est quas porro. Ea sit et optio ut doloribus.\nQuae porro veniam voluptatibus et at dolor laudantium. Numquam sunt voluptates eum consequatur ullam ipsum et. Ullam aut aut eligendi nobis iusto. Ut quasi qui omnis nihil nihil qui sed. Et qui et sed ut neque id voluptas."], ["name", "Product #2 - 8615"], ["shipping_category_id", 1], ["slug", "product-2-8615"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.236516"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:02:13.238775"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.240819' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.241927' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.243157' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.243709' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:13.246612"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:13.246612"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.247537' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.248135' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.249181' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.249673' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.253548' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.254149' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.254710' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.256245"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.256960' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.257445' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.257915' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.258477' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.258930' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:13.263665"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.263665"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-8615' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.268448' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:13.273160' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:02:13.290688' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'alexandrine@runolfsson.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225333052xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:13.319091"], ["email", "alexandrine@runolfsson.biz"], ["encrypted_password", "0b58fd8d2ef353079ac354a09bcbb1330250403c17eb85e5560c55b5eda976eb8931591941732a24d30d99ed4dba5038ad840454a0cc7f60562638bbe394f8b2"], ["login", "alexandrine@runolfsson.biz"], ["password_salt", "sa8UYKAF7rmQxnnZZtXk"], ["updated_at", "2014-11-12 20:02:13.319091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:13.323545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:13.325029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:13.326454"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:13.326454"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R230732415' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R230732415%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R230732415' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'zL4CfgiihR-DtwG27IBvxw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:02:13.332065"], ["currency", "USD"], ["email", "alexandrine@runolfsson.biz"], ["guest_token", "zL4CfgiihR-DtwG27IBvxw"], ["number", "R230732415"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:13.332065"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:02:13.338669"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:02:13.338669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 306859' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:02:13.341235"], ["description", "Saepe facere possimus nesciunt earum et corrupti."], ["name", "TaxCategory - 306859"], ["updated_at", "2014-11-12 20:02:13.341235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:02:13.344595"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:13.344595"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-7039' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-7039' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:13.337648"], ["created_at", "2014-11-12 20:02:13.348126"], ["description", "Nisi beatae laudantium quod iure autem quos ducimus. Esse et beatae ratione quae quo suscipit. Laborum eos unde vel quidem similique voluptatem perferendis ut."], ["name", "Product #3 - 7039"], ["shipping_category_id", 1], ["slug", "product-3-7039"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.348126"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:02:13.350605"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.352726' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.353815' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.355070' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.355632' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:13.359382"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:13.359382"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.360500' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.361082' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.362195' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.362703' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.366699' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.367241' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.367831' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.369527"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.370262' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.370792' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.371324' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.371939' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.372443' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:13.377280"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.377280"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-7039' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.381625' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:13.386183' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-3951' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-3951' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:13.392298"], ["created_at", "2014-11-12 20:02:13.395870"], ["description", "Qui voluptatem consequatur autem vero et inventore earum. Vitae reiciendis quibusdam dolores similique suscipit in incidunt dolorum. Veritatis expedita autem nobis dolores ea.\nRerum ut ut nesciunt soluta dolores eos. Possimus delectus est ut voluptas voluptate. Alias voluptates quia a natus veniam nemo molestiae omnis. Quam eligendi impedit id molestiae molestiae. Fuga quia a cupiditate dignissimos voluptas consequatur.\nIllum dignissimos voluptate fuga earum inventore est voluptatem sapiente. Ea dignissimos consequatur est voluptatem dolorem explicabo et. Dolor nihil accusantium harum quisquam. Magnam et officia itaque et. Sint repudiandae quasi veritatis quia sapiente similique veniam itaque.\nQuia quod perspiciatis hic reprehenderit. Quibusdam nemo quasi expedita accusamus consequatur ducimus. Recusandae harum beatae dolore suscipit occaecati illo minus."], ["name", "Product #4 - 3951"], ["shipping_category_id", 1], ["slug", "product-4-3951"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.395870"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:02:13.397988"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.399916' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.400955' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.402169' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.402729' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:13.405948"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:13.405948"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.406862' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.407379' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.408490' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.408969' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.412871' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.413389' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.413898' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.415630"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.416375' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.416898' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.417428' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.418066' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.418567' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:13.423211"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.423211"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-3951' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.427365' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:13.431818' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:02:13.440434' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (3.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kiarra.hoppe@wunsch.info' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225338373xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:13.455430"], ["email", "kiarra.hoppe@wunsch.info"], ["encrypted_password", "3d314ed03d1f857a14c6c21da948f05b639be08fe8e26518eb52fa4df6bffee5cceaa51969f50258fce4d9d259c8c8ec2893d50d1f6dfa8fb0a2ea8bc66efa83"], ["login", "kiarra.hoppe@wunsch.info"], ["password_salt", "KsuE2z1xnDfCZHLeFpjM"], ["updated_at", "2014-11-12 20:02:13.455430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:13.458921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:13.460296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:13.461778"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:13.461778"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R015679174' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R015679174%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R015679174' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'kUWdCRCNwmHKshcqPvyL-Q' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:02:13.467229"], ["currency", "USD"], ["email", "kiarra.hoppe@wunsch.info"], ["guest_token", "kUWdCRCNwmHKshcqPvyL-Q"], ["number", "R015679174"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:13.467229"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:02:13.474915"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:02:13.474915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 249751' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:02:13.477542"], ["description", "Omnis voluptatem dolor ipsa dolor molestiae."], ["name", "TaxCategory - 249751"], ["updated_at", "2014-11-12 20:02:13.477542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:02:13.481170"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:13.481170"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-2252' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-2252' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:13.473836"], ["created_at", "2014-11-12 20:02:13.485044"], ["description", "Voluptates dolor dolore eveniet quis corporis unde rerum qui. Ex molestiae magnam quos inventore. Possimus delectus et voluptatem ut sunt aperiam. Ut sequi vero quod est.\nTempore libero quae inventore molestias. Natus praesentium sed animi sunt minima error vero ea. Sed quod laboriosam dolor eius temporibus et sunt et. Quidem natus et cumque eum veniam omnis."], ["name", "Product #5 - 2252"], ["shipping_category_id", 1], ["slug", "product-5-2252"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.485044"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:02:13.487569"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.489728' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.490921' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.492515' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.493173' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:13.496807"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:13.496807"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.497830' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.498380' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.499505' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.500041' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.504056' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.504605' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.505777' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.509442"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.510801' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.511707' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.512473' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.7ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.513347' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.514632' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:13.520507"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.520507"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-2252' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.524813' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:13.529848' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-2011' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-2011' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:13.535490"], ["created_at", "2014-11-12 20:02:13.539215"], ["description", "Nemo odit repudiandae optio officiis omnis corrupti eaque sed. Consectetur praesentium ipsam dolorum quia quia hic qui maxime. Quisquam similique est consequatur commodi itaque aut.\nEarum ratione nesciunt accusamus nam sit quaerat voluptatem. Sit in distinctio nobis et cum. Eius est commodi aut fuga id. Eum dolores molestias voluptatibus aperiam.\nMolestiae vel laboriosam inventore a. Illum ut ducimus numquam dolor aspernatur accusantium animi laborum. Et ab vel velit voluptatem. Non dolorem at neque odio. Eaque delectus nesciunt veritatis voluptas."], ["name", "Product #6 - 2011"], ["shipping_category_id", 1], ["slug", "product-6-2011"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.539215"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:02:13.541350"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.543315' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.544373' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.545627' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.546174' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:13.549756"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:13.549756"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.550726' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.551222' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.552307' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.552829' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.556676' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.557216' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.557755' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.561482"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.562846' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.563833' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.564776' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.565689' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.566472' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:13.573125"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.573125"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-2011' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.577321' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:13.582019' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:02:13.591512' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (3.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'maxime_hettinger@smith.co.uk' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225336764xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:13.606973"], ["email", "maxime_hettinger@smith.co.uk"], ["encrypted_password", "1961b616f76bc5f1410bbea5dcccdb61716c87682325833b07fad62f21cfbe4d9072665106a16b93e3c164f7219283a8d2f9b4b90acc4df0ad80124dac0f92dd"], ["login", "maxime_hettinger@smith.co.uk"], ["password_salt", "zmzzCD5Ry1K1N8ZhXK1S"], ["updated_at", "2014-11-12 20:02:13.606973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:13.611528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:13.613183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:13.614564"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:13.614564"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R765944819' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R765944819%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R765944819' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'vW2vdK0NHWbVmD5dxVzQLA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:02:13.620150"], ["currency", "USD"], ["email", "maxime_hettinger@smith.co.uk"], ["guest_token", "vW2vdK0NHWbVmD5dxVzQLA"], ["number", "R765944819"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:13.620150"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:02:13.628438"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:02:13.628438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 985912' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:02:13.631049"], ["description", "Rerum est aut dolores eius aut quibusdam qui."], ["name", "TaxCategory - 985912"], ["updated_at", "2014-11-12 20:02:13.631049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:02:13.634288"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:13.634288"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-6982' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-6982' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:13.627345"], ["created_at", "2014-11-12 20:02:13.638080"], ["description", "Quasi earum magnam impedit repudiandae illum consequuntur nobis quod. Ut a corporis labore in non autem est. Dolorum dignissimos perferendis animi dolor nam repellendus consequatur neque. Dolor cupiditate molestiae corrupti quisquam.\nAccusantium provident incidunt laboriosam commodi. Et dolorem in saepe temporibus dolores autem. Dolor aliquid fuga illo iure. Est nostrum cumque blanditiis ut rerum rem assumenda.\nEligendi architecto saepe est accusantium asperiores voluptatibus non. Enim vel sed fugiat inventore. Dolorum aut voluptas ullam harum sit. Molestiae provident incidunt sint voluptatem nulla doloremque. Maxime eaque enim aliquid odit magnam."], ["name", "Product #7 - 6982"], ["shipping_category_id", 1], ["slug", "product-7-6982"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.638080"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:02:13.640398"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.642704' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.644027' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.645358' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.645940' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:13.649308"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:13.649308"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.650263' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.650778' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.651861' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.652355' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.656291' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.656824' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.657322' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.659086"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.659859' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.660368' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.660892' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.661518' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.661973' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:13.666708"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.666708"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-6982' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.670970' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:13.675634' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-689' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-689' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:13.682716"], ["created_at", "2014-11-12 20:02:13.686445"], ["description", "Officiis ipsum aliquid officia ut. Omnis et soluta beatae voluptas exercitationem in sint. Eveniet et occaecati ratione est ut magnam. Laboriosam et quisquam expedita consequatur nisi numquam. Libero nulla hic sequi quo temporibus dolores.\nMolestias aut rerum fugiat in dolores. Quibusdam perferendis maxime quasi nihil facere dolorum sunt error. Ullam dolorem in dolore maxime ipsum vel. Unde vitae beatae expedita culpa. Accusamus velit voluptas pariatur vitae architecto molestiae neque.\nEveniet odio eos et rerum animi similique et non. Consequatur voluptatem a temporibus aperiam omnis sapiente aut. Repellendus sunt quibusdam qui qui non non nemo et. Illum recusandae modi quis et.\nLaborum ratione mollitia magni non voluptatibus beatae voluptas quidem. Eaque officiis pariatur labore vel nisi culpa sunt. Nemo dolorum molestiae consequatur qui odio autem.\nQuod ex nisi laborum nostrum in. Omnis eligendi quas distinctio dignissimos voluptatum alias. Reprehenderit rerum nihil sed ullam saepe. Eaque qui est non esse autem omnis non. Eos ut debitis voluptatem tenetur."], ["name", "Product #8 - 689"], ["shipping_category_id", 1], ["slug", "product-8-689"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.686445"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:02:13.688646"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.690633' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.691756' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.693035' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.693599' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:13.696934"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:13.696934"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.697879' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.698402' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.699539' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.700044' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.703923' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.704449' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.704971' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.707129"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.707897' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.708438' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.708978' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.709625' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.710093' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:13.714887"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.714887"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-689' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.719209' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:13.723914' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:02:13.746230' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (3.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kelvin_baumbach@wuckertosinski.name' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225339155xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:13.761514"], ["email", "kelvin_baumbach@wuckertosinski.name"], ["encrypted_password", "fe8eb9ec56e6d0be70e01f6cab1a725b7455db582a605b66afb1fb6b44f94d46228b59ce111f39f52dc4ce22b122c225ac4ac9f0debc6148defac36cbbf51610"], ["login", "kelvin_baumbach@wuckertosinski.name"], ["password_salt", "mfngsNxvr5SKhQFR5gBu"], ["updated_at", "2014-11-12 20:02:13.761514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:13.766135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:13.767765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:13.769169"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:13.769169"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R389064740' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R389064740%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R389064740' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'cvg2zrt4c6vyFe9nszAljQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:02:13.774815"], ["currency", "USD"], ["email", "kelvin_baumbach@wuckertosinski.name"], ["guest_token", "cvg2zrt4c6vyFe9nszAljQ"], ["number", "R389064740"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:13.774815"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:02:13.781870"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:02:13.781870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 194259' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:02:13.784520"], ["description", "Explicabo veritatis unde doloribus eum nesciunt."], ["name", "TaxCategory - 194259"], ["updated_at", "2014-11-12 20:02:13.784520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:02:13.788161"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:13.788161"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-5573' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-5573' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:13.780823"], ["created_at", "2014-11-12 20:02:13.792092"], ["description", "Accusamus numquam et non corporis reiciendis laboriosam rerum. Itaque impedit eos architecto et aut dolores quidem. Voluptatum quidem quasi est dicta. Voluptatem nam eos commodi minima. Delectus voluptatibus autem dolore placeat non est perspiciatis sit."], ["name", "Product #9 - 5573"], ["shipping_category_id", 1], ["slug", "product-9-5573"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.792092"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:02:13.794672"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.796823' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.798003' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.799313' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.799908' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:13.803363"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:13.803363"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.804301' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.804810' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.805972' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.806470' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.810713' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.811533' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.812179' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.814122"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.814904' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.815456' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.815995' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.816561' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.817028' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:13.821900"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.821900"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-5573' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.826560' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:13.831451' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-3622' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-3622' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:13.836429"], ["created_at", "2014-11-12 20:02:13.840122"], ["description", "Praesentium facere sit quia voluptatem. Dolorum ipsam corrupti consectetur quibusdam laboriosam omnis quasi cum. Deserunt nesciunt vel suscipit voluptatem repellat ipsa aliquam magnam. Beatae facilis esse ea tenetur aspernatur eius.\nCupiditate vitae modi impedit sapiente id. Sint quia velit tenetur et. Atque sapiente accusamus voluptatibus excepturi minus. Nihil aut sit eaque deserunt voluptate et."], ["name", "Product #10 - 3622"], ["shipping_category_id", 1], ["slug", "product-10-3622"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.840122"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:02:13.842235"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.844163' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.845237' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.846468' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.847020' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:13.850489"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:13.850489"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.851383' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.851919' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.853009' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.853512' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.857310' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.857849' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.858344' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.860077"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.860779' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.861296' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.861821' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.862426' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.862917' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:13.867892"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.867892"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-3622' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.872183' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:13.876652' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:02:13.885152' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (3.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'xander@nikolaus.info' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225334276xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:13.896487"], ["email", "xander@nikolaus.info"], ["encrypted_password", "21be39cba6c9552d70a661c57b07fa189d0981b21328ab6c85e47237dd0c151c13755df39c860247acd0d8119d1288781243d1d749b0f41b80cd349d7161b0a9"], ["login", "xander@nikolaus.info"], ["password_salt", "NeqAsj2tVBwkcyAFjzr2"], ["updated_at", "2014-11-12 20:02:13.896487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:13.899390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:13.900797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:13.902396"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:13.902396"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R584276670' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R584276670%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R584276670' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CftZX1kh8NVL0h3WIP7SJw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:02:13.908025"], ["currency", "USD"], ["email", "xander@nikolaus.info"], ["guest_token", "CftZX1kh8NVL0h3WIP7SJw"], ["number", "R584276670"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:13.908025"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:02:13.915825"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:02:13.915825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.2ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 194947' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:02:13.918820"], ["description", "Est ratione tempora aut quidem est cum aut enim."], ["name", "TaxCategory - 194947"], ["updated_at", "2014-11-12 20:02:13.918820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:02:13.922204"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:13.922204"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-5897' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-5897' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:13.914642"], ["created_at", "2014-11-12 20:02:13.925867"], ["description", "Tenetur voluptas aut id molestias voluptas iusto et. Nostrum placeat qui molestias eveniet ut voluptas. Expedita ipsam quod voluptas id assumenda autem ratione est. Voluptates reprehenderit vel molestiae a perferendis.\nVoluptatem voluptatem eaque porro voluptatum nihil impedit et sunt. Et non minima et est. Ut voluptates aut voluptas officiis repellendus consequatur et. Corporis assumenda ut quasi ipsum non. Magnam harum provident reiciendis neque eius eum alias."], ["name", "Product #11 - 5897"], ["shipping_category_id", 1], ["slug", "product-11-5897"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.925867"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:02:13.928052"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.930351' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.931554' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.932851' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.933428' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:13.936809"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:13.936809"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.937771' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.938275' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.939372' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.939850' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.943932' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.944932' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.946466' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.949749"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.951014' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.951797' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.952569' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.953471' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.954257' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:13.959892"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.959892"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-5897' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.964174' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:13.968853' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-659' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-659' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:13.975291"], ["created_at", "2014-11-12 20:02:13.979021"], ["description", "Commodi excepturi officiis molestiae perspiciatis perferendis et aut ipsam. Fuga nihil enim est distinctio repellat amet dolorem. Sit earum error sed tenetur officia eum debitis.\nAmet rerum vel quia voluptatum ut reiciendis nemo. Quis dolor omnis ut eaque nisi distinctio. Repellendus eius maxime nostrum laboriosam vel error. Qui et blanditiis rem quibusdam.\nInventore dolorum ratione culpa amet voluptate perspiciatis. Velit aspernatur maxime voluptatum explicabo odit. Quidem non quia dolorum quia aut sunt.\nAliquam minima quae animi minus ratione et delectus. Nulla saepe praesentium labore iure ullam. Et ipsum est facere quos autem dolore in tenetur. Reiciendis suscipit repudiandae quam harum dolor sunt.\nExcepturi ea tempore omnis qui. Qui facere laudantium autem facilis cupiditate cum sit aut. Consequatur illum voluptatem quam excepturi. Omnis omnis distinctio tempore laudantium eum commodi."], ["name", "Product #12 - 659"], ["shipping_category_id", 1], ["slug", "product-12-659"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:13.979021"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:02:13.981129"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.983092' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.984205' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.985436' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.985970' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:13.989216"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:13.989216"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.990142' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.990709' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.991820' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.992306' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.996255' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.996793' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:13.997325' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.999120"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.999846' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:14.000377' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:14.000893' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:14.001496' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:14.002038' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:14.006655"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:14.006655"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-659' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:14.010722' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:14.015259' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:02:14.023741' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (3.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'leonard.jenkins@hudson.name' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225532141xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:33.818908"], ["email", "leonard.jenkins@hudson.name"], ["encrypted_password", "13b2b45f18a787567eb5fc0c3d40444efb226fa76e3a7a28afc16fa55620d4565a206f8ef662c3c98c853a292a2c8f0aa2a1836ef28b01c0b2753777790f52e7"], ["login", "leonard.jenkins@hudson.name"], ["password_salt", "r3YHqsFSh7gH7-cWD684"], ["updated_at", "2014-11-12 20:02:33.818908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:33.850964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:33.856874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:33.865344"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:33.865344"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R724389032' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R724389032%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R724389032' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '6JuwPMphSh-xIQaDZsK1GQ' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:02:33.899683"], ["currency", "USD"], ["email", "leonard.jenkins@hudson.name"], ["guest_token", "6JuwPMphSh-xIQaDZsK1GQ"], ["number", "R724389032"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:33.899683"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:02:33.957500"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:02:33.957500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 2310' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:02:33.971787"], ["description", "Deleniti delectus hic laudantium sequi vitae et."], ["name", "TaxCategory - 2310"], ["updated_at", "2014-11-12 20:02:33.971787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:02:33.995500"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:33.995500"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-7960' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-7960' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:33.953529"], ["created_at", "2014-11-12 20:02:34.000811"], ["description", "Fugiat aliquam sint cum voluptatem et. Ipsam tempore consequuntur aliquam cum corporis asperiores. Nihil fugiat cum architecto nostrum quibusdam eum. Numquam praesentium neque rem quis deserunt.\nAlias rerum qui aliquam ullam. Et deleniti aut et eveniet excepturi expedita ea hic. Quis cumque quae laboriosam fugiat fuga suscipit vitae dolorum. Earum maxime tempore voluptatem occaecati possimus quaerat. Enim quidem aliquam debitis cupiditate at corporis.\nUt et quos id repudiandae. Modi maxime eos ipsa deleniti beatae. Omnis vitae aut molestias quasi optio fuga beatae. Fugit dicta minus perferendis culpa repellendus. Ad aspernatur assumenda cumque molestiae officia.\nHic voluptatem quia velit rerum sunt ea dolores. Quia molestias rerum eveniet dicta minus dolorem eum voluptates. Vero omnis ut corporis omnis aspernatur dolor.\nMollitia odio est labore sapiente perspiciatis. Provident quasi eos nostrum voluptas vel autem aut. Esse inventore odit itaque occaecati voluptates velit deserunt."], ["name", "Product #1 - 7960"], ["shipping_category_id", 1], ["slug", "product-1-7960"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.000811"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:02:34.003609"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.010824' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.012148' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.025724' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.027023' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:34.054031"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:34.054031"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.055599' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.056200' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.057440' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.057936' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.068161' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.068758' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.069287' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.070972"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.072124' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.072594' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.073043' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.073606' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.074031' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:34.090064"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.090064"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-7960' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.098894' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:34.112484' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-1960' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-1960' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:34.118916"], ["created_at", "2014-11-12 20:02:34.175247"], ["description", "Non voluptatibus adipisci culpa quam eum. Voluptate iste consequatur labore ex aperiam at. Vero quo itaque praesentium velit eaque voluptatibus autem et. Veritatis aut quae nihil rerum officia ducimus nisi voluptatem.\nSed consectetur voluptas qui eos animi. Suscipit sapiente veniam modi totam esse aspernatur. Dolor adipisci non rerum ipsum corrupti voluptas et. Ipsum molestiae reprehenderit sed at.\nSed harum consequatur et vero quaerat itaque. Et enim est maiores consectetur libero et. Et ut assumenda esse quasi autem et.\nSit nihil reiciendis fugit velit. Ipsa provident pariatur vel velit facilis fuga. In suscipit vel odio et. Fugiat hic quis harum fuga nulla aut non commodi. Praesentium quis aut labore quaerat omnis alias aperiam."], ["name", "Product #2 - 1960"], ["shipping_category_id", 1], ["slug", "product-2-1960"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.175247"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:02:34.177608"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.179657' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.180696' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.181895' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.182435' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:34.185679"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:34.185679"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.186631' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.187130' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.188249' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.188745' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.192635' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.193215' WHERE 1=0 SQL (0.5ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.193720' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.197963"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.199418' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.200412' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.201287' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.202203' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.202912' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:34.209016"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.209016"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-1960' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.213139' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:34.217649' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:02:34.234286' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:02:34.255329"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:02:34.255329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:02:34.268273"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:02:34.268273"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'pearl_schamberger@bins.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225545702xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:34.273076"], ["email", "pearl_schamberger@bins.biz"], ["encrypted_password", "2b58894b216347d905670e13368dc6ca4c8cd446c2f6fe94d3118bc35205211e5069161d673c1a5a43055ec80e092ca0e4965d1dc320aaa0703bcc44064882f5"], ["login", "pearl_schamberger@bins.biz"], ["password_salt", "6cW6Z-nMm-vkBppaoMF9"], ["updated_at", "2014-11-12 20:02:34.273076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:34.275742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:34.277239"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:02:34.277239"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R002313690' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R002313690%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R002313690' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NTNVnkM0i4IFYfnLvvbc3A' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:02:34.282837"], ["currency", "USD"], ["email", "pearl_schamberger@bins.biz"], ["guest_token", "NTNVnkM0i4IFYfnLvvbc3A"], ["number", "R002313690"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:34.282837"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'QW6HG32F' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:02:34.299327"], ["identifier", "QW6HG32F"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:02:34.299327"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.303589' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-233531' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-233531"], ["updated_at", "2014-11-12 20:02:34.304913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nelson.mante@becker.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225549603xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:34.326449"], ["email", "nelson.mante@becker.com"], ["encrypted_password", "8465b2ab0e7743b8f1065ba341b34df326de400819c6a84dba9a2c66304538ffc91f8a398717984c4a7b32af9f463255ca20a4c601517279c5cb1c808e58ced8"], ["login", "nelson.mante@becker.com"], ["password_salt", "kP6y3pTPnCwaySsbQzam"], ["updated_at", "2014-11-12 20:02:34.326449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:34.330389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:34.332747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:34.335358"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:34.335358"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R433746064' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R433746064%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R433746064' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9u_X1-JbSAUlV0xvAhJB_w' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:02:34.342768"], ["currency", "USD"], ["email", "nelson.mante@becker.com"], ["guest_token", "9u_X1-JbSAUlV0xvAhJB_w"], ["number", "R433746064"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:34.342768"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:02:34.352744"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:02:34.352744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 439267' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:02:34.355504"], ["description", "Est et veniam repudiandae voluptas aut tempore."], ["name", "TaxCategory - 439267"], ["updated_at", "2014-11-12 20:02:34.355504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:02:34.359372"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:34.359372"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-4814' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-4814' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:34.351625"], ["created_at", "2014-11-12 20:02:34.363399"], ["description", "Totam voluptas esse magni cumque voluptatem dolor voluptatem. Rerum dolores ut autem nemo adipisci quos possimus ad. Ex quidem eum quisquam asperiores repellat ullam sunt dolores. Voluptas eaque asperiores ut non. Est autem quidem ut dolores consequuntur odit labore facere.\nTotam autem est quasi iure. Corporis asperiores dolorum et eos. Eius est fugiat esse inventore. Exercitationem accusamus est culpa odit sunt ipsum. Numquam omnis et vel sit cumque tempore.\nIusto delectus asperiores dignissimos sint sed dolorem. Incidunt voluptatem enim illum quasi sint placeat saepe explicabo. Eos rerum harum expedita neque et molestias rerum. Explicabo architecto itaque quis quod libero consequatur quasi.\nMolestiae voluptatibus sed voluptatem reiciendis. Nam minus eos a rem. Sed ut vel quasi voluptatem dicta totam et doloribus. Reprehenderit illo qui odit ut. Dolore sequi et velit aut qui omnis.\nVoluptate provident exercitationem quia sunt nam officia natus qui. Ratione iure et non aliquid dignissimos. Exercitationem ut at quibusdam atque. Velit ad quo deleniti autem nulla. Officiis totam ex porro impedit vel et quae."], ["name", "Product #3 - 4814"], ["shipping_category_id", 1], ["slug", "product-3-4814"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.363399"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:02:34.365890"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.368139' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.369534' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.371744' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.373209' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:34.379288"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:34.379288"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.380748' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.381538' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.383034' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.383661' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.387852' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.388483' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.389083' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.390893"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.391596' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.392090' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.392552' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.393117' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.393582' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:34.399531"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.399531"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-4814' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.407568' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:34.413154' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-8005' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-8005' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:34.418771"], ["created_at", "2014-11-12 20:02:34.422525"], ["description", "Dicta quis magni blanditiis hic iste ut non. Ratione vel qui ullam a. Vel nesciunt quaerat quae quia.\nMaxime est consequatur minus dicta mollitia. Qui eum voluptatem et sunt magnam et eum. Velit nesciunt ut id deserunt. Corrupti optio dolore velit earum quo. Exercitationem quis dolorum vitae commodi ut.\nCorrupti ut quidem rem pariatur cum earum. Qui aut cumque esse dolores. Magnam et ut minima ducimus ad adipisci. Reiciendis laudantium sint vel quas deleniti possimus a."], ["name", "Product #4 - 8005"], ["shipping_category_id", 1], ["slug", "product-4-8005"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.422525"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:02:34.424597"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.426609' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.427691' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.428965' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.429529' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:34.432805"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:34.432805"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.433754' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.434273' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.435405' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.435932' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.439818' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.440367' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.440880' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.442705"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.443434' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.443951' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.444505' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.445125' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.445620' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:34.450347"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.450347"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-8005' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.454563' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:34.459020' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:02:34.467697' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:02:34.471410"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:02:34.471410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:02:34.473441"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:02:34.473441"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'concepcion@padberg.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225543454xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:34.476494"], ["email", "concepcion@padberg.us"], ["encrypted_password", "6b5aa87370f2803320dc31d812fb39e432cd4bfd30e8ba04b81f502f137907706e1b87b596129f96257596146b53dae6d605375e7a6c94db6f77014cd16481a9"], ["login", "concepcion@padberg.us"], ["password_salt", "Fa-4Z2zd-hax8vfkZ_9i"], ["updated_at", "2014-11-12 20:02:34.476494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:34.479094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:34.480465"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:02:34.480465"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R549369407' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R549369407%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R549369407' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ytzo8ftOlZudGvHgHoKw6w' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:02:34.485879"], ["currency", "USD"], ["email", "concepcion@padberg.us"], ["guest_token", "ytzo8ftOlZudGvHgHoKw6w"], ["number", "R549369407"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:34.485879"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'RTNKVB3K' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:02:34.488400"], ["identifier", "RTNKVB3K"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:02:34.488400"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.490650' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-433035' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-433035"], ["updated_at", "2014-11-12 20:02:34.491853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'roxane@quigley.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415822554735xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:34.508624"], ["email", "roxane@quigley.com"], ["encrypted_password", "e1ede9de6d72a19c08c1a16a44a0f163b30d59321b63e82e19f7b63b7cc038229254d37c3874164b991ed2a47c6634edaa8f72cf6705768883928a674eb72e27"], ["login", "roxane@quigley.com"], ["password_salt", "W2oJrBmeGMBM3FQQU3bT"], ["updated_at", "2014-11-12 20:02:34.508624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:34.512942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:34.514144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:34.515617"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:34.515617"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R005962601' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R005962601%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R005962601' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '8lOHWJaaEyKclI93Oq5zvg' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:02:34.521303"], ["currency", "USD"], ["email", "roxane@quigley.com"], ["guest_token", "8lOHWJaaEyKclI93Oq5zvg"], ["number", "R005962601"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:34.521303"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:02:34.530009"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:02:34.530009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 399644' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:02:34.532822"], ["description", "Porro est ex sapiente voluptatem."], ["name", "TaxCategory - 399644"], ["updated_at", "2014-11-12 20:02:34.532822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:02:34.536228"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:34.536228"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-624' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-624' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:34.528865"], ["created_at", "2014-11-12 20:02:34.540301"], ["description", "Quaerat officia odio nulla sit sed vero. Culpa reprehenderit voluptatem porro autem itaque. Est soluta voluptas enim odio quia numquam. Consectetur ducimus quibusdam aliquid qui molestiae facere necessitatibus.\nMolestiae beatae nobis architecto dignissimos et recusandae voluptatem sed. Aperiam consequatur quisquam quod qui. Vel quia qui aliquam adipisci placeat aut magni et. Nulla animi in ex voluptatem velit.\nUt velit et qui voluptas. Saepe labore commodi necessitatibus optio nemo earum nostrum et. Amet consectetur adipisci vero nihil modi voluptatibus nisi dicta. Ipsam sed laborum vitae amet et sit.\nRepellat facilis assumenda rerum quo eum. Incidunt perspiciatis quod aut omnis nam aperiam. Non quia eius commodi voluptate earum quis minima vitae."], ["name", "Product #5 - 624"], ["shipping_category_id", 1], ["slug", "product-5-624"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.540301"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:02:34.542723"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.544807' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.545946' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.547273' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.547894' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:34.551579"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:34.551579"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.552653' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.553287' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.554558' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.555134' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.559255' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.559867' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.560476' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.562268"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.563009' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.563533' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.564088' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.564686' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.565136' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:34.569904"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.569904"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-624' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.574346' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:34.579195' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-3579' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-3579' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:34.583600"], ["created_at", "2014-11-12 20:02:34.587374"], ["description", "Aut cumque dolorum libero aut magni qui eos. Nemo cupiditate voluptatum et quia delectus tenetur voluptas omnis. Cum enim quae sit et enim tempore est architecto."], ["name", "Product #6 - 3579"], ["shipping_category_id", 1], ["slug", "product-6-3579"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.587374"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:02:34.589573"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.591586' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.592661' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.593961' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.594554' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:34.598033"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:34.598033"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.599018' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.599543' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.600706' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.601222' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.605284' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.605843' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.606440' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.608351"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.609106' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.609645' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.610218' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.610871' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.611358' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:34.616195"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.616195"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-3579' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.620481' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:34.625177' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:02:34.634273' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:02:34.638147"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:02:34.638147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:02:34.640298"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:02:34.640298"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'elenora.spencer@danielbrakus.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415822554116xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:34.643446"], ["email", "elenora.spencer@danielbrakus.co.uk"], ["encrypted_password", "6d497e35a74d767c397c25de2c36545a63ea9b90ef52d4d0ea697ed1e33cb13a28efe1d5196767165901a82960feda73d49eb808bd54ba0a803847d022586244"], ["login", "elenora.spencer@danielbrakus.co.uk"], ["password_salt", "q9vXoGWvK6P5woUVQCy_"], ["updated_at", "2014-11-12 20:02:34.643446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:34.646066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:34.647528"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:02:34.647528"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R375219554' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R375219554%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R375219554' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'zG26TzijbyKQq53SPP88CQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:02:34.653102"], ["currency", "USD"], ["email", "elenora.spencer@danielbrakus.co.uk"], ["guest_token", "zG26TzijbyKQq53SPP88CQ"], ["number", "R375219554"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:34.653102"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'G5QTUMKU' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:02:34.655600"], ["identifier", "G5QTUMKU"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:02:34.655600"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.672369' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-143354' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-143354"], ["updated_at", "2014-11-12 20:02:34.673618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'savanah.bernhard@spinka.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225548387xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:34.690749"], ["email", "savanah.bernhard@spinka.ca"], ["encrypted_password", "b403ed0a93ec2cc7dcc70644d307f16f2c0b8288b9f98135b357fc9e59549dcf596b2dc627471a2695ad30a3c50fdb1259a1328e010fadb69ef46ab05e45b2fd"], ["login", "savanah.bernhard@spinka.ca"], ["password_salt", "jW5HLw7jwGKjSA5DAGF8"], ["updated_at", "2014-11-12 20:02:34.690749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:34.695020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:34.696376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:34.697749"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:34.697749"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R568022263' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R568022263%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R568022263' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xeuCZyk16X0Q27Pk2U09Rw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:02:34.703475"], ["currency", "USD"], ["email", "savanah.bernhard@spinka.ca"], ["guest_token", "xeuCZyk16X0Q27Pk2U09Rw"], ["number", "R568022263"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:34.703475"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:02:34.710511"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:02:34.710511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 511842' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:02:34.713176"], ["description", "Modi aut ut delectus iste architecto."], ["name", "TaxCategory - 511842"], ["updated_at", "2014-11-12 20:02:34.713176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:02:34.716533"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:34.716533"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-816' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-816' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:34.709415"], ["created_at", "2014-11-12 20:02:34.720231"], ["description", "Nesciunt fugit est quo dolores quam dignissimos voluptate. Laborum saepe quasi optio voluptas et nisi ut culpa. Veritatis officiis porro distinctio voluptatem qui. Quasi quod et consectetur eligendi tempora. Reprehenderit officiis enim aut molestias dicta iste sint."], ["name", "Product #7 - 816"], ["shipping_category_id", 1], ["slug", "product-7-816"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.720231"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:02:34.722843"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.724943' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.726133' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.727444' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.728006' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:34.731409"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:34.731409"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.732369' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.732931' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.734110' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.735141' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.741701' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.742283' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.742895' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.744554"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.745242' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.745710' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.746170' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.746804' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.747295' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:34.752690"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.752690"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-816' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.757456' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:34.762107' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3896' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3896' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:34.767476"], ["created_at", "2014-11-12 20:02:34.771307"], ["description", "Id et suscipit esse incidunt. Asperiores mollitia fugit quo explicabo dolor. Quia excepturi ad pariatur iusto delectus amet nam. Quod maiores voluptate nobis et iure. Cum quam necessitatibus reiciendis tenetur.\nDolore cupiditate non quaerat ducimus assumenda in. Culpa inventore deleniti exercitationem laudantium blanditiis ex porro repellendus. Quia est similique hic dignissimos aut veritatis tempora. Fugit aspernatur fugiat ut rerum iusto aut deserunt."], ["name", "Product #8 - 3896"], ["shipping_category_id", 1], ["slug", "product-8-3896"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.771307"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:02:34.773517"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.775659' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.776766' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.778111' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.778692' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:34.782327"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:34.782327"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.783328' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.783904' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.785174' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.785664' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.790664' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.792179' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.793322' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.796484"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.797525' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.798282' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.799052' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.799954' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.800989' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:34.810177"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.810177"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3896' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.815318' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:34.819968' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:02:34.828886' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:02:34.832545"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:02:34.832545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:02:34.834625"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:02:34.834625"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'columbus@abshire.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225544748xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:34.837607"], ["email", "columbus@abshire.us"], ["encrypted_password", "77a93bc428d87f254e8e47c1317da32cea1f49724e0be76b0443d34f77e1bbaed5e83f3ba04157b9d89d19f7b77f1859a7dee74cc3fc41a38b865bd42d5430ff"], ["login", "columbus@abshire.us"], ["password_salt", "RCzUg_C9nTnNbixNxKt_"], ["updated_at", "2014-11-12 20:02:34.837607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:34.840205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:34.841585"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:02:34.841585"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R905606796' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R905606796%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R905606796' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'SWcCGWiObt3LU5i4rnoscw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:02:34.847131"], ["currency", "USD"], ["email", "columbus@abshire.us"], ["guest_token", "SWcCGWiObt3LU5i4rnoscw"], ["number", "R905606796"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:34.847131"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WYUZ6NBT' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:02:34.849516"], ["identifier", "WYUZ6NBT"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:02:34.849516"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.851852' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-404244' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-404244"], ["updated_at", "2014-11-12 20:02:34.853069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'darrion.raynor@gradylangosh.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415822554859xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:34.870058"], ["email", "darrion.raynor@gradylangosh.us"], ["encrypted_password", "8be75186ad22d3b615938e00a89beefd18d4c0fd7fd585d0f0579d09d98a79860b798b83f991fa1ccab240068047d341f3bd84ab4303346e00c6f57549dacf4d"], ["login", "darrion.raynor@gradylangosh.us"], ["password_salt", "Yg5zY-kAyjzKSV4MpjTF"], ["updated_at", "2014-11-12 20:02:34.870058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:34.874368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:34.875776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:34.877153"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:34.877153"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R222485001' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R222485001%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R222485001' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'RMXYpNV3sHu6uMrsS2LyRw' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:02:34.883076"], ["currency", "USD"], ["email", "darrion.raynor@gradylangosh.us"], ["guest_token", "RMXYpNV3sHu6uMrsS2LyRw"], ["number", "R222485001"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:34.883076"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:02:34.891757"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:02:34.891757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 712796' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:02:34.894543"], ["description", "Quaerat tempora qui adipisci eum voluptatibus quam."], ["name", "TaxCategory - 712796"], ["updated_at", "2014-11-12 20:02:34.894543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:02:34.897868"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:34.897868"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-6074' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-6074' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:34.890677"], ["created_at", "2014-11-12 20:02:34.901916"], ["description", "Totam delectus iusto quod voluptas distinctio. Nihil nemo quibusdam rerum cupiditate aliquam possimus animi voluptatem. Repudiandae aut velit aut error. Est nesciunt magni tenetur in sit nihil porro rerum.\nIure debitis quam qui vel. Doloremque et ipsum dolores ratione id iure perspiciatis omnis. Aut sit iste nisi excepturi voluptate. Sed voluptatum non ducimus ut qui consectetur. Neque autem aliquam quasi libero doloremque quo ea harum.\nVel magnam voluptas itaque enim nesciunt nisi incidunt ut. Magni et quae laudantium at. Et reiciendis impedit voluptatem et qui. Qui tempora quis vel inventore officiis ut in. Qui earum quibusdam soluta temporibus."], ["name", "Product #9 - 6074"], ["shipping_category_id", 1], ["slug", "product-9-6074"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.901916"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:02:34.904595"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.906790' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.907933' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.909202' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.909787' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:34.913109"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:34.913109"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.914027' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.914609' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.915690' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.916214' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.920134' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.920658' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.921178' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.925025"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.926378' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.927399' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.928294' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.929207' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.929933' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:34.936276"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.936276"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-6074' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.940634' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:34.945232' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-4868' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-4868' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:34.950917"], ["created_at", "2014-11-12 20:02:34.954663"], ["description", "Soluta minus doloremque fugiat in. Expedita sunt ut vero a tempora ea nisi dolores. Molestiae temporibus minus at nulla possimus. Maiores voluptatem ab soluta qui.\nA optio veniam cupiditate facilis eveniet. Natus culpa laudantium laborum quia ex incidunt. Illo quia velit tenetur tempore aliquam dolor possimus harum. Optio ad minus esse voluptatibus fugiat temporibus dignissimos.\nVel debitis nulla non perferendis necessitatibus placeat harum. Officia eius et voluptas dolores vero. Consequuntur consequatur aperiam quo molestias cum. Perspiciatis rerum consectetur ad quae."], ["name", "Product #10 - 4868"], ["shipping_category_id", 1], ["slug", "product-10-4868"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.954663"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:02:34.956903"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.958972' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.960089' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.961363' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.961903' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:34.965229"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:34.965229"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.966206' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.966762' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.967909' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.968447' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.972358' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.972934' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.973475' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.975281"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.976024' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.976565' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.977083' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.977677' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:34.978130' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:34.983137"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:34.983137"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-4868' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.987515' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:34.992419' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:02:35.001406' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:02:35.005309"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:02:35.005309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:02:35.007490"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:02:35.007490"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'consuelo@satterfield.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582255528610xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:35.010543"], ["email", "consuelo@satterfield.ca"], ["encrypted_password", "f344ce1fb7355967d8fff94a2d19cc33858153adbdc1070315d6a946b21ddee4547613b3e2dd0499b10978379e9d176e84779407cfa61b5661f8c35f76d29aaf"], ["login", "consuelo@satterfield.ca"], ["password_salt", "qspg64NsQdZ1ktGshfFs"], ["updated_at", "2014-11-12 20:02:35.010543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:35.013147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:35.014579"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:02:35.014579"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R754571616' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R754571616%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R754571616' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '3Xur9Z1fXPYI8-CNxjiymQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:02:35.020085"], ["currency", "USD"], ["email", "consuelo@satterfield.ca"], ["guest_token", "3Xur9Z1fXPYI8-CNxjiymQ"], ["number", "R754571616"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:35.020085"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '552GDBR7' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:02:35.022615"], ["identifier", "552GDBR7"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:02:35.022615"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:35.024901' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-222314' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-222314"], ["updated_at", "2014-11-12 20:02:35.026105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'colin.sauer@paucek.info' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582255550011xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:35.057327"], ["email", "colin.sauer@paucek.info"], ["encrypted_password", "8d288455f64879e0b8400898d5249c9e538a41385ddcdaa193c7dcc9e7e2aa394ad55504911eb9f8493bb122bf67eb729c478ea30be816a324dd931238f7b81e"], ["login", "colin.sauer@paucek.info"], ["password_salt", "xsyWGNX-Tdsm798C1Q6h"], ["updated_at", "2014-11-12 20:02:35.057327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:35.061593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:35.062939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:35.064316"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:35.064316"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R092065270' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R092065270%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R092065270' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-EpxWpEeoMKrKUZTZjmQow' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:02:35.069940"], ["currency", "USD"], ["email", "colin.sauer@paucek.info"], ["guest_token", "-EpxWpEeoMKrKUZTZjmQow"], ["number", "R092065270"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:35.069940"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:02:35.078744"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:02:35.078744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 350007' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:02:35.081495"], ["description", "Aut et nihil harum nostrum et."], ["name", "TaxCategory - 350007"], ["updated_at", "2014-11-12 20:02:35.081495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:02:35.084760"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:02:35.084760"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-927' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-927' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:35.077642"], ["created_at", "2014-11-12 20:02:35.089982"], ["description", "Minima doloribus qui dolor inventore aut quasi perferendis modi. Rem nihil optio quos eos aspernatur hic libero ut. Libero sequi tempora asperiores consequuntur est. Animi eos veritatis aspernatur in non dolor.\nAccusamus et sit voluptatibus dolorum. Atque numquam molestias maiores dolorem omnis. Ut explicabo delectus eos et mollitia.\nPossimus accusantium deleniti dignissimos eum doloremque consequatur. In qui temporibus quaerat omnis distinctio voluptate nisi adipisci. Aut dicta ut eos autem neque voluptates dolorem et. Vero aut non debitis praesentium voluptate est. Eveniet laboriosam dicta et totam.\nDucimus qui vitae culpa tempora molestiae quia. Perspiciatis iusto dolorem est quos quia et. Quae magnam fugiat ut et voluptatem. Est autem ipsa est dolores fuga impedit."], ["name", "Product #11 - 927"], ["shipping_category_id", 1], ["slug", "product-11-927"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:35.089982"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:02:35.092614"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:35.094805' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.096024' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.097382' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:35.097973' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:35.101446"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:35.101446"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:35.102406' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.103006' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.104318' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:35.104882' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.109271' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.109915' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:35.110528' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:35.112333"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.113098' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.113651' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:35.114202' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.114827' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:35.115342' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:35.120290"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:35.120290"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-927' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:35.124994' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:35.134237' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1098' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1098' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:02:35.141742"], ["created_at", "2014-11-12 20:02:35.145595"], ["description", "Recusandae repudiandae deserunt veritatis eveniet repellat doloribus. Dolorem amet ex rem occaecati nihil. Illo vero hic quia voluptas. Voluptas omnis ipsa accusamus exercitationem unde.\nEst ipsa eum sit eos alias sed. Nihil suscipit enim consequatur ratione culpa ut. Porro in accusamus omnis velit ea. Et nisi soluta mollitia aspernatur. Qui similique voluptatem aut et.\nAutem ullam quis a et voluptas. Totam exercitationem quas repudiandae sed eveniet. In eum asperiores autem saepe impedit iste neque perspiciatis. Dolores eligendi officia blanditiis eveniet nulla est suscipit.\nNulla voluptates autem placeat voluptas quas. Repudiandae culpa consectetur maxime sint dolores mollitia veritatis. Ab asperiores et vitae quaerat quia ipsum. Non odio mollitia modi necessitatibus ipsa ducimus et earum."], ["name", "Product #12 - 1098"], ["shipping_category_id", 1], ["slug", "product-12-1098"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:35.145595"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:02:35.147774"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:35.149787' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.150876' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.152081' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:35.152641' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:02:35.155949"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:02:35.155949"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:35.156934' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.157474' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.158608' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:35.159126' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.163079' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.163636' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:35.164255' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:02:35.168318"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.169686' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.170663' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:35.171530' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.172445' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:02:35.173188' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:02:35.179308"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:02:35.179308"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1098' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:35.197852' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:02:35.202477' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:02:35.211341' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:02:35.218169"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:02:35.218169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:02:35.221641"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:02:35.221641"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lucas_tremblay@stokes.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582255587212xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:02:35.225813"], ["email", "lucas_tremblay@stokes.ca"], ["encrypted_password", "fced005f923de4dfed04be6fee8900ece30beebc61886717c030b275244e7b631df376a2a2610d068cb6fe99d2989c0ca305ce0add48f1a97c0d523d24a0bb72"], ["login", "lucas_tremblay@stokes.ca"], ["password_salt", "d9FyAT8HsBdRyATascRq"], ["updated_at", "2014-11-12 20:02:35.225813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:35.228431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:02:35.229902"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:02:35.229902"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R594636705' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R594636705%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R594636705' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'peiJOcriA5KHEBnTlkrcIg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:02:35.235419"], ["currency", "USD"], ["email", "lucas_tremblay@stokes.ca"], ["guest_token", "peiJOcriA5KHEBnTlkrcIg"], ["number", "R594636705"], ["state", "cart"], ["updated_at", "2014-11-12 20:02:35.235419"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '3ZNJ9AET' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:02:35.237950"], ["identifier", "3ZNJ9AET"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:02:35.237950"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:35.240224' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-250245' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-250245"], ["updated_at", "2014-11-12 20:02:35.241485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'calista.ryan@pollichhauck.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225987141xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:18.395889"], ["email", "calista.ryan@pollichhauck.biz"], ["encrypted_password", "14f1478be31ab3ab8823ea6895b696c404544392af97757b0ed873c12c74434acaa3b0170515cfddfba71e80771220f43d34489a10f1ebc9153e780a565973f1"], ["login", "calista.ryan@pollichhauck.biz"], ["password_salt", "mP9wrgQ6xssVkyH2_5_z"], ["updated_at", "2014-11-12 20:03:18.395889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:18.428455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:18.438284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:18.453579"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:18.453579"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R462804279' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R462804279%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R462804279' LIMIT 1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'kynhKjJ3HkmVaSXv5AREsQ' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:03:18.489096"], ["currency", "USD"], ["email", "calista.ryan@pollichhauck.biz"], ["guest_token", "kynhKjJ3HkmVaSXv5AREsQ"], ["number", "R462804279"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:18.489096"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:03:18.547427"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:03:18.547427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 62046' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:03:18.562205"], ["description", "Cum corporis voluptatibus odio officia quae quia commodi."], ["name", "TaxCategory - 62046"], ["updated_at", "2014-11-12 20:03:18.562205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:03:18.586110"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:18.586110"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-3290' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-3290' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:18.543338"], ["created_at", "2014-11-12 20:03:18.591278"], ["description", "Sint id eos id nihil. Accusamus voluptas cumque consequatur repudiandae voluptatem molestiae. Ea tenetur ab et necessitatibus a commodi. Facilis quis ex consequatur libero omnis voluptas sit esse. Commodi ut ea alias atque.\nNostrum dolor rem autem dolores. Et corporis qui sint cum perferendis voluptatum libero veniam. Autem error mollitia atque quaerat.\nIste vel amet aut animi architecto dolore voluptas. Ipsam beatae et delectus aliquid in. Quasi sed repudiandae est libero quibusdam quaerat qui voluptatem.\nFugiat recusandae corporis est voluptatem. Nisi esse quis autem ducimus. Laudantium nostrum ut non qui ipsa et doloribus.\nA quisquam autem ipsum est est ut aut occaecati. Ut eaque impedit repellendus qui et veniam officia. Cum aliquid harum ipsa animi similique voluptatibus omnis sint. Delectus minima adipisci aspernatur quis."], ["name", "Product #1 - 3290"], ["shipping_category_id", 1], ["slug", "product-1-3290"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:18.591278"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:03:18.594013"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:18.601236' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.602568' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.621773' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.622999' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:18.644497"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:18.644497"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:18.645765' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.646383' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.647654' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.648184' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.658281' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.658903' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.659472' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:18.661199"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.662369' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.662886' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.663388' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.663922' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.664363' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:18.685680"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:18.685680"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-3290' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:18.693805' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:18.702124' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-3083' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-3083' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:18.708286"], ["created_at", "2014-11-12 20:03:18.765945"], ["description", "Possimus vel praesentium error sunt impedit numquam. Expedita velit magni autem mollitia est ut. Est ut delectus voluptatum impedit aut est aut voluptas. Recusandae ut unde laborum corporis consequatur iure dignissimos accusantium. Eveniet nisi neque deserunt officia hic est exercitationem.\nTempore recusandae modi qui praesentium. Quia tenetur nulla dolor facere tempore at consequatur. Minus deserunt vel magnam dolorem. Harum necessitatibus rerum qui est.\nQuia neque eaque voluptatibus reiciendis. Ipsa aut earum corrupti dolor illo consequatur eum quia. Minima assumenda quasi quod quos. Et alias repellat enim error est qui aspernatur ut."], ["name", "Product #2 - 3083"], ["shipping_category_id", 1], ["slug", "product-2-3083"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:18.765945"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:03:18.768347"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:18.770424' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.771524' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.772790' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.773336' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:18.776644"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:18.776644"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:18.777636' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.778164' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.779388' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.779880' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.783729' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.785072' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.786645' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:18.789794"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.791081' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.791858' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.792621' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.793499' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.794272' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:18.799838"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:18.799838"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-3083' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:18.804060' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:18.809103' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:03:18.832090' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:18.855015"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:03:18.855015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:18.867681"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:03:18.867681"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'madalyn_medhurst@hauck.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225987752xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:18.872206"], ["email", "madalyn_medhurst@hauck.biz"], ["encrypted_password", "521e9d2964cd40624c03b1c43e4a797e4d756d2de315125e00c355c4aea3da2e5adf07d60e8af0244dc24ed95d232705d9eefa966ea4f159dfae8a50e4e14bbf"], ["login", "madalyn_medhurst@hauck.biz"], ["password_salt", "kZzRjTBxcv3xEUu8vMnc"], ["updated_at", "2014-11-12 20:03:18.872206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:18.874878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:18.876325"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:03:18.876325"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R008443054' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R008443054%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R008443054' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'uNDPS7TeTAaZPdanCPva-A' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:03:18.881743"], ["currency", "USD"], ["email", "madalyn_medhurst@hauck.biz"], ["guest_token", "uNDPS7TeTAaZPdanCPva-A"], ["number", "R008443054"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:18.881743"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'YBPQA6VZ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:03:18.893369"], ["identifier", "YBPQA6VZ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:03:18.893369"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:18.896279' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-020445' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-020445"], ["updated_at", "2014-11-12 20:03:18.897641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'evelyn@deckowblick.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415822598383xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:18.915269"], ["email", "evelyn@deckowblick.com"], ["encrypted_password", "9b555620113e181d83419fef362ad414890598ef89315df537123ab87d825da72dd246f209f7722ff37b5619832b0bbfdd7b91853425c7da3eacbc5e2a5bbf75"], ["login", "evelyn@deckowblick.com"], ["password_salt", "NCWNDiMtjxDTYH-Z_U8i"], ["updated_at", "2014-11-12 20:03:18.915269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:18.918864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:18.920258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:18.921804"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:18.921804"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R033781641' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R033781641%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R033781641' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'jhua9UxM0vW8U9qIkxYGQg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:03:18.927562"], ["currency", "USD"], ["email", "evelyn@deckowblick.com"], ["guest_token", "jhua9UxM0vW8U9qIkxYGQg"], ["number", "R033781641"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:18.927562"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:03:18.937979"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:03:18.937979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 131641' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:03:18.942090"], ["description", "Accusantium omnis et voluptas qui odio impedit aliquid."], ["name", "TaxCategory - 131641"], ["updated_at", "2014-11-12 20:03:18.942090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:03:18.945951"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:18.945951"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5637' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5637' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:18.936204"], ["created_at", "2014-11-12 20:03:18.950412"], ["description", "Delectus inventore libero alias ut ut expedita consequuntur. Autem ut aut labore ipsa voluptas corrupti. Dolores consequuntur itaque adipisci asperiores eligendi est.\nFacere quod eum aut unde sed et blanditiis est. Quo sunt in amet omnis soluta quam. Sit facilis quae neque veritatis nulla consequuntur nesciunt. Reprehenderit beatae non at veritatis. Veniam cumque commodi culpa maiores et.\nAd assumenda aut est ut voluptatem quidem minus. Dolor omnis repudiandae quidem optio dignissimos dolorem necessitatibus accusamus. Est sapiente fugiat unde sit culpa doloribus dolores. Accusamus commodi hic praesentium fugit dignissimos provident incidunt. Facilis non reiciendis quis commodi.\nSapiente nobis qui placeat corporis blanditiis nisi. Harum laboriosam voluptas enim et. Quam hic quis ipsam libero consequatur eos impedit qui. Eos dolor et maxime rem. Non quia et ratione aut."], ["name", "Product #3 - 5637"], ["shipping_category_id", 1], ["slug", "product-3-5637"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:18.950412"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:03:18.953058"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:18.955299' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.956508' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.958094' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.958704' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:18.962429"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:18.962429"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:18.963441' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.964021' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.965270' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.965833' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.970567' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.971175' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.971807' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:18.973631"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.974341' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.974852' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.975340' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.975908' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:18.976389' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:18.981291"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:18.981291"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5637' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:18.985671' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:18.990375' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-1918' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-1918' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:18.996653"], ["created_at", "2014-11-12 20:03:19.000498"], ["description", "Nam vero labore dolorum commodi sit. Non blanditiis modi placeat et. Eaque aut voluptatem expedita aut voluptas ut voluptatem nulla.\nNulla quasi alias vel quo consectetur non. Similique provident architecto voluptatem laboriosam mollitia. Corrupti perferendis dolores iste occaecati tempora.\nEos quia repudiandae architecto ea laudantium dolores reprehenderit rerum. Officia a magnam est iste ex velit commodi id. Ut id saepe exercitationem ipsa accusantium aut. Ut asperiores est alias odio blanditiis perspiciatis nobis mollitia.\nRerum unde nulla cumque sit soluta molestias. Blanditiis sunt ipsum ea est distinctio. Consequatur qui beatae accusamus exercitationem. Aut non quod velit voluptatem. Itaque voluptas deleniti asperiores qui."], ["name", "Product #4 - 1918"], ["shipping_category_id", 1], ["slug", "product-4-1918"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.000498"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:03:19.002730"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.004725' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.005815' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.007059' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.007643' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:19.011145"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:19.011145"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.012123' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.012676' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.013906' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.014478' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.018761' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.019348' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.019942' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.021706"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.022445' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.023012' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.023547' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.024173' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.024689' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:19.029559"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.029559"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-1918' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.033900' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:19.038450' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:03:19.047383' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.051202"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:03:19.051202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.053279"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:03:19.053279"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'maryse@oconner.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415822599424xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:19.056223"], ["email", "maryse@oconner.name"], ["encrypted_password", "bf637a1987902d604f1f8b55049ad461413c01e1b3900726b55f91d586adec4cfb1845857111498c3e32201e5bf7ea87c0a43423571791ed1b2254ec79f7d21b"], ["login", "maryse@oconner.name"], ["password_salt", "-Grt4Rg86-MXQoE4oedt"], ["updated_at", "2014-11-12 20:03:19.056223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:19.058807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:19.060187"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:03:19.060187"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R837752830' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R837752830%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R837752830' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '4AUUruqIDATea40icvsAog' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:03:19.065536"], ["currency", "USD"], ["email", "maryse@oconner.name"], ["guest_token", "4AUUruqIDATea40icvsAog"], ["number", "R837752830"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:19.065536"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'KEZ6WJXB' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:03:19.068020"], ["identifier", "KEZ6WJXB"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:03:19.068020"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.070207' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-520434' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-520434"], ["updated_at", "2014-11-12 20:03:19.071389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'haylie.hyatt@bernhard.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225994515xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:19.084796"], ["email", "haylie.hyatt@bernhard.us"], ["encrypted_password", "d95cad6ead6e3a3e7830823e5dba1ac5d1c8431f300d9c7386c4e2e40ce5b55bc9e34302ffb0b4ede3e3921b4059bb95466a7ec83d9ee7d38790e21966c5509b"], ["login", "haylie.hyatt@bernhard.us"], ["password_salt", "LeX5e2RueysGFuKNqq3s"], ["updated_at", "2014-11-12 20:03:19.084796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:19.087884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:19.089238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:19.090773"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:19.090773"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R592471734' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R592471734%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R592471734' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'OI02xLEfANrEvJNo3ByqWA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:03:19.096300"], ["currency", "USD"], ["email", "haylie.hyatt@bernhard.us"], ["guest_token", "OI02xLEfANrEvJNo3ByqWA"], ["number", "R592471734"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:19.096300"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:03:19.104901"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:03:19.104901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 651075' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.107702"], ["description", "At eveniet dolorem necessitatibus tempore."], ["name", "TaxCategory - 651075"], ["updated_at", "2014-11-12 20:03:19.107702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:03:19.111124"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:19.111124"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-2264' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-2264' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:19.103635"], ["created_at", "2014-11-12 20:03:19.114877"], ["description", "Id illo laboriosam sit fuga qui. Aut sed consectetur alias facilis est illo. Laborum accusantium voluptas ex velit. Aut est sint unde quos vel.\nEveniet laboriosam inventore sunt ab alias fugiat ut. Reprehenderit dicta necessitatibus alias at mollitia voluptas. Provident voluptatum quod ut facilis. Ea aut fugit eum explicabo vero facilis necessitatibus praesentium. Officiis facere sint dignissimos recusandae quis repellendus.\nPlaceat vel magnam ipsam aut voluptate nostrum quia consequuntur. Et est magni aperiam aut maiores expedita necessitatibus. Ipsam debitis earum repellat et voluptas eligendi autem."], ["name", "Product #5 - 2264"], ["shipping_category_id", 1], ["slug", "product-5-2264"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.114877"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:03:19.117601"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.120031' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.122291' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.124676' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.125608' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:19.130579"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:19.130579"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.131694' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.132373' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.133798' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.134383' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.139291' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.139932' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.140482' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.142184"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.142924' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.143438' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.143941' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.144627' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.145166' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:19.151583"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.151583"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-2264' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.156979' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:19.162013' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-2965' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-2965' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:19.169551"], ["created_at", "2014-11-12 20:03:19.173718"], ["description", "Consequatur voluptate ipsam et minima quia aut corrupti vitae. Aut quis hic nobis eum modi. Debitis blanditiis dolores atque impedit sed ut eum reiciendis. Hic ut ad incidunt fuga. Ullam et eos molestias enim ducimus similique aperiam architecto.\nEum quia veniam autem eos nesciunt. Impedit a consequuntur dolore sed sit dolor. Ut asperiores ab autem necessitatibus amet quam. Excepturi pariatur et odit impedit dolor enim repellendus. Molestias perspiciatis odit incidunt minus atque.\nEa sunt sit et ut at hic natus. Officiis ut et quos quisquam. Quidem dicta labore in omnis quas eaque.\nEst porro culpa ab totam sed eum nulla dolorum. Architecto odit atque quibusdam ut quo. Sint delectus quod vel aut assumenda ut amet voluptatem.\nVeritatis dolores tenetur et voluptas eos sapiente unde dolorum. Illum quia facere officiis ad. Voluptatem molestias iste soluta in officiis quod. Neque accusantium alias in quia."], ["name", "Product #6 - 2965"], ["shipping_category_id", 1], ["slug", "product-6-2965"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.173718"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:03:19.175850"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.177863' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.178990' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.180301' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.180881' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:19.184662"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:19.184662"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.185768' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.186378' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.187686' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.188299' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.193027' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.194668' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.195972' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.199168"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.200239' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.201054' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.201863' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.202792' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.203532' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:19.213100"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.213100"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-2965' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.218375' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:19.223234' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:03:19.232440' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.236316"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:03:19.236316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.238450"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:03:19.238450"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rachael@tillman.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225998866xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:19.241602"], ["email", "rachael@tillman.info"], ["encrypted_password", "3b958a8f8a485fb4541e58f3c7a7dac8f21b263f4631667e9b856dc16c11af497aaf2d8ba36eaf4549048d65e048e9fc5e359ce0731a8e64ecd26806ce9b9e96"], ["login", "rachael@tillman.info"], ["password_salt", "m_U7o59Sjmtmm6TbfjNU"], ["updated_at", "2014-11-12 20:03:19.241602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:19.244342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:19.245865"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:03:19.245865"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R828013269' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R828013269%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R828013269' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LeFwiUM-fMb5DjE7gPzixw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:03:19.251450"], ["currency", "USD"], ["email", "rachael@tillman.info"], ["guest_token", "LeFwiUM-fMb5DjE7gPzixw"], ["number", "R828013269"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:19.251450"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '5WKWVTXA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:03:19.254078"], ["identifier", "5WKWVTXA"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:03:19.254078"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.270804' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-030105' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-030105"], ["updated_at", "2014-11-12 20:03:19.272088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'amalia.dickens@schusterweissnat.co.uk' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225997767xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:19.288900"], ["email", "amalia.dickens@schusterweissnat.co.uk"], ["encrypted_password", "9d91ce0821ad3d277112bde2d049162b846d56a9f08ad48cf73c352de6342f6b0294b155138569123666dd31216f5097521af6bf62daaec1eefeb142fede7d3a"], ["login", "amalia.dickens@schusterweissnat.co.uk"], ["password_salt", "XDxv7yoDcfMzoQMiE1CP"], ["updated_at", "2014-11-12 20:03:19.288900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:19.292971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:19.294193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:19.295582"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:19.295582"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R287506723' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R287506723%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R287506723' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'C056CEobHDT0AWS75EXevg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:03:19.301375"], ["currency", "USD"], ["email", "amalia.dickens@schusterweissnat.co.uk"], ["guest_token", "C056CEobHDT0AWS75EXevg"], ["number", "R287506723"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:19.301375"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:03:19.308412"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:03:19.308412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 401292' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.311040"], ["description", "Vel qui numquam omnis necessitatibus non."], ["name", "TaxCategory - 401292"], ["updated_at", "2014-11-12 20:03:19.311040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:03:19.314376"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:19.314376"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-2683' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-2683' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:19.307309"], ["created_at", "2014-11-12 20:03:19.318057"], ["description", "Odit harum a voluptatibus nostrum et. A et illum voluptates consequatur perferendis. Blanditiis et fugiat porro at optio magnam quaerat. Rerum laudantium qui voluptatibus autem doloribus dolores."], ["name", "Product #7 - 2683"], ["shipping_category_id", 1], ["slug", "product-7-2683"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.318057"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:03:19.320537"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.322661' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.324066' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.325402' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.325976' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:19.329427"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:19.329427"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.330428' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.330969' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.332152' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.332700' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.337190' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.338790' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.339980' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.343189"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.344279' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.345193' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.345975' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.346886' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.347630' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:19.353981"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.353981"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-2683' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.358681' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:19.363526' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-6934' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-6934' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:19.371964"], ["created_at", "2014-11-12 20:03:19.376557"], ["description", "Atque praesentium reiciendis fuga earum officiis voluptatem harum et. Cum blanditiis optio qui provident ut voluptates. Aspernatur odio eligendi sit voluptatibus.\nEt cum sit maiores voluptate voluptatem voluptates eaque magni. Velit aperiam voluptates inventore quos veritatis commodi. Et aut qui sint quia a eos est nostrum. Ipsam esse sit illum ea repellat minus.\nBlanditiis et in ut omnis nobis suscipit consequatur. Rerum excepturi voluptatem et enim non nobis. Itaque similique nisi illo ea a quis dolore. Necessitatibus quibusdam eius ut tempora veritatis quia voluptatem officia.\nVoluptatem unde dolorum officiis eos consectetur modi aut. Totam magnam sit hic corporis sed id tempora. Ea quis ullam eos qui optio. Ut officia labore pariatur alias quis debitis dolores.\nEst commodi harum nihil quo et sunt. Sed et ut autem ullam ut nihil iusto. Consequuntur repellendus sed rerum quam rerum. Rerum fugit quia voluptatum aperiam quia suscipit id. Porro autem dicta aperiam repudiandae non dolorem."], ["name", "Product #8 - 6934"], ["shipping_category_id", 1], ["slug", "product-8-6934"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.376557"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:03:19.378990"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.381057' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.382211' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.383606' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.384202' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:19.389795"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:19.389795"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.390858' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.391460' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.392874' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.393506' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.398273' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.399001' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.399630' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.401505"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.402284' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.402867' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.403390' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.403962' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.404429' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:19.410948"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.410948"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-6934' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.418721' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:19.425345' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.3ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:03:19.434454' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.442140"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:03:19.442140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.445309"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:03:19.445309"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'samara_altenwerth@dietrichziemann.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225991448xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:19.449032"], ["email", "samara_altenwerth@dietrichziemann.co.uk"], ["encrypted_password", "cb115d937d766a436b76cafb0b79ff28c4b507d47036fcc696bc020b5e93d350b93377189d31067f060583b8b044e1a00160bb4c2af2b50543454db2eb92d2b9"], ["login", "samara_altenwerth@dietrichziemann.co.uk"], ["password_salt", "5PLacNG5ZhghNib4nTMn"], ["updated_at", "2014-11-12 20:03:19.449032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:19.451723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:19.453225"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:03:19.453225"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R621438182' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R621438182%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R621438182' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-oLy1SrIg_uS15OPmyVQqA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:03:19.458774"], ["currency", "USD"], ["email", "samara_altenwerth@dietrichziemann.co.uk"], ["guest_token", "-oLy1SrIg_uS15OPmyVQqA"], ["number", "R621438182"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:19.458774"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'LEHV7AWX' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:03:19.461253"], ["identifier", "LEHV7AWX"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:03:19.461253"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.463643' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-355450' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-355450"], ["updated_at", "2014-11-12 20:03:19.464965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'reinhold@bauch.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158225999409xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:19.482201"], ["email", "reinhold@bauch.ca"], ["encrypted_password", "8dde20f59ab346a7e7a03555dc87aad7bbd0b3f3fdf5d58aa8ed90cacb50feb3bf9f8e533c7de5172e2ffc117e727b12597e75df0dd1e3f5ae412b4f7ee2f6bc"], ["login", "reinhold@bauch.ca"], ["password_salt", "w2mJyv7dkC5GRJQCZE9g"], ["updated_at", "2014-11-12 20:03:19.482201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:19.486482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:19.487751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:19.489227"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:19.489227"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R140815238' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R140815238%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R140815238' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'gJu-T2UzbHhsJlMxePFxeQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:03:19.494936"], ["currency", "USD"], ["email", "reinhold@bauch.ca"], ["guest_token", "gJu-T2UzbHhsJlMxePFxeQ"], ["number", "R140815238"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:19.494936"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:03:19.503062"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:03:19.503062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 945921' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.505713"], ["description", "Quos autem doloremque laudantium in vel accusantium mollitia eum."], ["name", "TaxCategory - 945921"], ["updated_at", "2014-11-12 20:03:19.505713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:03:19.509050"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:19.509050"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-2430' LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-2430' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:19.502009"], ["created_at", "2014-11-12 20:03:19.513582"], ["description", "Quasi et qui voluptatem velit. Deserunt minus omnis repellat quam. Quia animi aut non cum.\nSaepe corporis eius vitae rem. Autem nemo perferendis autem et dolores. Laborum aut culpa neque deserunt sint.\nNihil dicta quaerat modi eos autem ratione possimus iure. Dignissimos voluptates tempora accusantium praesentium. Facere ipsam incidunt libero eligendi laborum consectetur beatae.\nDignissimos omnis modi hic labore suscipit aut. Accusamus provident id quos nobis ipsum voluptatem. Eaque ut quia ut architecto. Minus assumenda minima blanditiis adipisci."], ["name", "Product #9 - 2430"], ["shipping_category_id", 1], ["slug", "product-9-2430"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.513582"]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:03:19.518636"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.521945' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.523664' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.525471' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.526103' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:19.529864"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:19.529864"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.530830' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.531397' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.532589' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.533142' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.537249' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.537930' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.538561' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.540348"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.541102' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.541628' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.542129' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.542675' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.543152' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:19.552039"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.552039"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-2430' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.558080' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:19.562706' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-6108' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-6108' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:19.569494"], ["created_at", "2014-11-12 20:03:19.573308"], ["description", "Quidem et illum harum dignissimos explicabo quod quasi. In recusandae vel velit officiis qui maxime. Nesciunt est cumque illum voluptatibus iusto cupiditate culpa libero. Est quod voluptatem suscipit mollitia tempore excepturi. Molestiae ea itaque corporis aperiam sunt non.\nIpsam in blanditiis itaque adipisci quae soluta eos. Voluptatum repellendus ipsam sunt omnis eligendi ut. Qui saepe doloribus voluptatibus ut. Id alias accusamus voluptatem ratione omnis eum. Cum aperiam dolor eligendi perspiciatis voluptatibus sed.\nDeleniti accusamus dicta eos natus blanditiis. Exercitationem numquam suscipit atque quas deleniti aut ut molestias. Ipsum et excepturi occaecati esse quos id ipsa. Laudantium non consequatur ut non aut similique hic.\nRepellendus commodi quia sit dicta et. Asperiores magni eveniet architecto distinctio placeat iusto. Minima earum officia adipisci voluptate qui dolorem. Mollitia neque quisquam iste nostrum nulla eius beatae et. Voluptatem dolor harum ratione voluptates et voluptate delectus."], ["name", "Product #10 - 6108"], ["shipping_category_id", 1], ["slug", "product-10-6108"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.573308"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:03:19.575407"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.577369' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.578461' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.579748' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.580307' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:19.583646"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:19.583646"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.584631' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.585167' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.586310' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.586808' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.590734' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.591249' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.591764' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.593529"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.594209' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.594748' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.595301' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.595949' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.596456' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:19.601463"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.601463"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-6108' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.605679' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:19.610360' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:03:19.619167' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.622808"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:03:19.622808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.624847"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:03:19.624847"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'genesis@ankundingreinger.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582259993810xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:19.627814"], ["email", "genesis@ankundingreinger.info"], ["encrypted_password", "4b7ad822639e1794e0cf3bb4d06666d027c6ba09e51f55211cfd4e527910d6c9b3db918e421e063dbc730562808dd23ccec6904ea296b5d1e8841d9257c6cae6"], ["login", "genesis@ankundingreinger.info"], ["password_salt", "-wCBPJFVA4UNAeyJ7xaJ"], ["updated_at", "2014-11-12 20:03:19.627814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:19.630747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:19.632295"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:03:19.632295"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R946797103' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R946797103%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R946797103' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xA4XtsBDT-iup9UlMB5whA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:03:19.637974"], ["currency", "USD"], ["email", "genesis@ankundingreinger.info"], ["guest_token", "xA4XtsBDT-iup9UlMB5whA"], ["number", "R946797103"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:19.637974"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'CQDV5J5N' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:03:19.640399"], ["identifier", "CQDV5J5N"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:03:19.640399"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.642638' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-310214' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-310214"], ["updated_at", "2014-11-12 20:03:19.643784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nicolas@heaney.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582259955011xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:19.674462"], ["email", "nicolas@heaney.biz"], ["encrypted_password", "ab676e6fbc20679c2c657dde9dc5d4464f6d8d2ac258fda0332561301a11473e7e8076fcc49c833ea379b5ff524984b4c32792e57a6600aa2e63ef34a00a6238"], ["login", "nicolas@heaney.biz"], ["password_salt", "sLs7H1LxHmh7yPWFoBuz"], ["updated_at", "2014-11-12 20:03:19.674462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:19.678685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:19.679911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:19.681365"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:19.681365"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R625336073' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R625336073%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R625336073' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'r0M0zEknSRKh1kWxyUFQHg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:03:19.686924"], ["currency", "USD"], ["email", "nicolas@heaney.biz"], ["guest_token", "r0M0zEknSRKh1kWxyUFQHg"], ["number", "R625336073"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:19.686924"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:03:19.694840"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:03:19.694840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 334229' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.697518"], ["description", "Minus ut doloribus ut molestias."], ["name", "TaxCategory - 334229"], ["updated_at", "2014-11-12 20:03:19.697518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:03:19.700850"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:19.700850"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-6608' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-6608' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:19.693759"], ["created_at", "2014-11-12 20:03:19.704865"], ["description", "Voluptatem at sit id omnis incidunt quam unde. Et atque libero explicabo alias necessitatibus. Autem ab et at nesciunt. Ut consectetur fugit id ut qui. Omnis dolorem enim itaque tempore adipisci.\nEst illo consequuntur et qui voluptatem. Magnam qui error ut atque. Eaque cumque et distinctio eos et tenetur. Corporis facilis fuga et aut. Maiores consequatur iste praesentium ut tempora."], ["name", "Product #11 - 6608"], ["shipping_category_id", 1], ["slug", "product-11-6608"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.704865"]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:03:19.710226"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.713700' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.715530' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.717359' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.718094' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:19.721932"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:19.721932"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.722979' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.723576' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.724772' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.725295' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.729421' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.730050' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.730680' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.732510"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.733271' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.733811' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.734339' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.734929' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.735433' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:19.740389"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.740389"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-6608' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.744703' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:19.749384' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-6020' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-6020' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:19.755019"], ["created_at", "2014-11-12 20:03:19.758799"], ["description", "Cupiditate repudiandae dolores vel aut cum harum. Dolorum autem impedit incidunt labore id aut magni voluptas. Et sint delectus consectetur quos dolorem.\nVoluptatem nostrum soluta ad unde est. Vitae omnis quisquam eligendi a est quae delectus. Quaerat enim quasi aperiam eum. Sequi vitae pariatur quis maxime est accusantium quaerat.\nSuscipit voluptas vel assumenda libero excepturi. Maiores dolor totam corporis et nesciunt. Illum aut placeat voluptas quo ipsum. Voluptas tempora minus quo magni enim non. Ut dolor voluptatem quia et est mollitia quisquam."], ["name", "Product #12 - 6020"], ["shipping_category_id", 1], ["slug", "product-12-6020"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.758799"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:03:19.761000"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.763014' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.764169' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.765480' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.766072' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:19.769524"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:19.769524"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.770482' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.771049' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.772258' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.772787' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.776829' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.777380' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.778020' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.779826"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.780582' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.781134' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.781680' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.782276' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:19.782738' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:19.787712"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:19.787712"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-6020' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.806128' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:19.810713' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:03:19.819536' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.823191"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:03:19.823191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:19.825270"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:03:19.825270"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'janiya@becker.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582259962812xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:19.828233"], ["email", "janiya@becker.ca"], ["encrypted_password", "6baa63f8ea499b5ca0dd02e60804320b2eac41b3c16c902af2e8688149765a068e82ba5a9a3e77c75ec04279da2f1ef031c8833f78a42064083d094a63979c1e"], ["login", "janiya@becker.ca"], ["password_salt", "oap7izjEzQ_8y1q_Josx"], ["updated_at", "2014-11-12 20:03:19.828233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:19.830788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:19.832131"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:03:19.832131"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R338459268' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R338459268%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R338459268' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '2CeUKSpdxtzTNuh9DvLnkA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:03:19.837817"], ["currency", "USD"], ["email", "janiya@becker.ca"], ["guest_token", "2CeUKSpdxtzTNuh9DvLnkA"], ["number", "R338459268"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:19.837817"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'H6MXPQDD' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:03:19.840227"], ["identifier", "H6MXPQDD"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:03:19.840227"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.842459' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-040424' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-040424"], ["updated_at", "2014-11-12 20:03:19.843671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jeramie.hudson@lakin.co.uk' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226065621xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:26.225976"], ["email", "jeramie.hudson@lakin.co.uk"], ["encrypted_password", "d1246f789621dc24274b5fe347848351d907c5217896c15f53f34e0e77d66128a903f49de52370219118a328ac22dbb9aa4c2ecd524dd266c3938fa180c93d33"], ["login", "jeramie.hudson@lakin.co.uk"], ["password_salt", "YRgy1mTUMrYm2xWUApch"], ["updated_at", "2014-11-12 20:03:26.225976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:26.265872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:26.272337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:26.280980"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:26.280980"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R996490968' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R996490968%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R996490968' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'BbI_fkJfyVmQux8Z6MMkow' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:03:26.322084"], ["currency", "USD"], ["email", "jeramie.hudson@lakin.co.uk"], ["guest_token", "BbI_fkJfyVmQux8Z6MMkow"], ["number", "R996490968"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:26.322084"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:03:26.372656"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:03:26.372656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 919852' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:03:26.382773"], ["description", "Quo sit iusto omnis labore ipsa iure."], ["name", "TaxCategory - 919852"], ["updated_at", "2014-11-12 20:03:26.382773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:03:26.406509"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:26.406509"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-4920' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-4920' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:26.368463"], ["created_at", "2014-11-12 20:03:26.411588"], ["description", "Ratione et mollitia eius sed dolor perspiciatis sed. Laborum odio possimus architecto exercitationem modi consequatur natus. Aperiam quia reiciendis magni quo beatae nesciunt dolor. Libero animi quia iusto aliquam ipsa delectus."], ["name", "Product #1 - 4920"], ["shipping_category_id", 1], ["slug", "product-1-4920"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:26.411588"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:03:26.414376"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.421894' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.423232' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.437343' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.438606' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:26.466305"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:26.466305"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.467582' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.468238' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.469491' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.470014' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.480309' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.480953' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.481635' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:26.483355"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.484684' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.485204' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.485677' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.486260' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.486696' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:26.508436"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:26.508436"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-4920' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:26.516784' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:26.525100' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-7303' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-7303' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:26.530917"], ["created_at", "2014-11-12 20:03:26.534670"], ["description", "Enim ducimus nemo sunt ut est. Temporibus a et aut quia enim. Odio ipsa praesentium error quod modi nostrum nulla. Nemo in corporis quis dolore eius qui. Nemo ratione in ullam optio.\nFugiat sint voluptas soluta sequi exercitationem ea qui. Eaque soluta id nulla ducimus fuga vel. Vel maxime neque adipisci amet reiciendis temporibus vero laborum.\nDoloremque ea molestiae optio recusandae distinctio. Quia et quod doloribus a atque aut doloremque. Sit et expedita harum dignissimos. Quia ex ea qui distinctio ullam."], ["name", "Product #2 - 7303"], ["shipping_category_id", 1], ["slug", "product-2-7303"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:26.534670"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:03:26.590390"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.592603' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.593730' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.595070' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.595619' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:26.602775"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:26.602775"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.604323' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.605191' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.607004' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.607851' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.612410' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.613042' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.613638' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:26.615476"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.616210' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.616658' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.617125' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.617686' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.618139' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:26.624281"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:26.624281"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-7303' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:26.632970' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:26.639317' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.4ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:03:26.661290' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:26.686193"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:03:26.686193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:26.699806"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:03:26.699806"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cynthia.bauch@herzogschinner.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226067992xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:26.704570"], ["email", "cynthia.bauch@herzogschinner.name"], ["encrypted_password", "874f35c7fcb57149b4954150bae8489d0c136b1c7ad99446786cfebf18014c61a492cb4aad8da1d0c72d742254a73c682f443726615b8a72ec8b1e8e56691c93"], ["login", "cynthia.bauch@herzogschinner.name"], ["password_salt", "fjiz8TKbHw7zEzGmKrkm"], ["updated_at", "2014-11-12 20:03:26.704570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:26.707392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:26.710195"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:03:26.710195"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R000376138' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R000376138%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R000376138' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QDTAsfuDp-vmUYW_oZ1zzQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:03:26.719668"], ["currency", "USD"], ["email", "cynthia.bauch@herzogschinner.name"], ["guest_token", "QDTAsfuDp-vmUYW_oZ1zzQ"], ["number", "R000376138"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:26.719668"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WCE2EREB' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:03:26.732259"], ["identifier", "WCE2EREB"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:03:26.732259"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:26.735310' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-330111' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-330111"], ["updated_at", "2014-11-12 20:03:26.736703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'austen@schuppewolff.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226062673xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:26.758534"], ["email", "austen@schuppewolff.com"], ["encrypted_password", "d1e9b5d62705f937acba95368b9a17fa46a9546165b8fc8c24812f3f7bb4d7a7c54f580228325c2d09bd65fac99734b1e63409bddd5a8d52c01255a88f8e98d9"], ["login", "austen@schuppewolff.com"], ["password_salt", "M5HQrHDWvb6GZ2FJeB4-"], ["updated_at", "2014-11-12 20:03:26.758534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:26.762209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:26.763769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:26.765414"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:26.765414"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R877388282' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R877388282%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R877388282' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '80gT6fdRgou29FP7yib0zw' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:03:26.772983"], ["currency", "USD"], ["email", "austen@schuppewolff.com"], ["guest_token", "80gT6fdRgou29FP7yib0zw"], ["number", "R877388282"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:26.772983"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:03:26.788647"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:03:26.788647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 829014' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:03:26.791629"], ["description", "Libero tempora quod velit unde officiis sed."], ["name", "TaxCategory - 829014"], ["updated_at", "2014-11-12 20:03:26.791629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:03:26.795523"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:26.795523"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-1941' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-1941' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:26.787306"], ["created_at", "2014-11-12 20:03:26.800032"], ["description", "Repellat animi omnis id alias autem molestiae. Sint sapiente et molestiae a necessitatibus. Eveniet a et quo quia consequuntur nesciunt. Et soluta perferendis est distinctio. Voluptas amet quia et nihil.\nEt sed fuga dolorem dolore rem ipsa numquam. Quis sed ut aut qui. Doloremque magni illum reiciendis non. Omnis dolor sapiente nemo quod cum ut repellat ut.\nDucimus sit dolorem velit quis facilis. Ipsa beatae adipisci a quisquam officiis. Corporis animi voluptatem voluptas esse veniam et.\nNon ipsa ex ut est voluptas natus veritatis minus. Eos odit tempora dicta veritatis similique. Eligendi nobis quos ut ullam. Itaque omnis quaerat dolorum inventore molestiae excepturi repudiandae tempore. Et id natus sunt ea temporibus consectetur.\nOfficia neque nisi et velit. Temporibus accusamus recusandae modi rem aut et. Iste quae inventore perspiciatis qui dolorum qui. Quas porro perspiciatis qui ex corporis."], ["name", "Product #3 - 1941"], ["shipping_category_id", 1], ["slug", "product-3-1941"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:26.800032"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:03:26.802453"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.804651' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.805782' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.807247' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.807843' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:26.811253"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:26.811253"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.812243' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.812808' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.813943' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.814504' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.819008' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.819833' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.820458' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:26.822302"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.823059' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.823654' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.824148' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.824762' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.825224' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:26.830330"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:26.830330"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-1941' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:26.834956' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:26.839968' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2138' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2138' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:26.847009"], ["created_at", "2014-11-12 20:03:26.850984"], ["description", "Laboriosam reiciendis culpa perferendis eum. Reprehenderit tenetur repellendus eum reiciendis deleniti et sed vitae. Qui enim dolores doloremque quo et similique.\nHic in illo qui assumenda. Fugit porro quod voluptatibus enim omnis dolores. Unde illum impedit adipisci a maiores eum dolorem.\nOdit sint et vitae quas voluptatem ut quasi reiciendis. Quis numquam natus ut ut. Delectus dignissimos dolores voluptatem qui.\nOdio et omnis velit mollitia. Officiis molestias odio neque temporibus voluptatem. Est eum sed est autem est qui maiores. Vel et est ducimus fugit quo voluptas nemo nulla. Commodi asperiores nobis amet eum ut rerum et.\nEaque deserunt ratione officia iure dicta. Autem fuga occaecati quam dolor quisquam facilis voluptatem sed. Aliquid qui provident et ullam explicabo labore unde. Nihil adipisci molestiae recusandae minus saepe."], ["name", "Product #4 - 2138"], ["shipping_category_id", 1], ["slug", "product-4-2138"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:26.850984"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:03:26.853201"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.857206' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.859457' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.861838' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.862793' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:26.867659"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:26.867659"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.868634' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.869196' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.870336' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.870867' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.874897' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.875507' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.876130' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:26.877905"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.878584' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.879084' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.879550' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.880131' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.880584' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:26.885534"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:26.885534"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2138' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:26.890237' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:26.894742' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:03:26.903936' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:26.907635"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:03:26.907635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:26.909668"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:03:26.909668"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'bennie_connelly@runte.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226068894xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:26.912599"], ["email", "bennie_connelly@runte.us"], ["encrypted_password", "d6360aad7e08dd4f1c56b60a2f130c07083cdf8e60db8dc2ef352f461e8a0f3ca197239d548e1d3c6f2e0310baa2a7d305ba84f3ce3b578e69289f9b9b03ae60"], ["login", "bennie_connelly@runte.us"], ["password_salt", "qdCH8yzsCJkx8MaRvRyz"], ["updated_at", "2014-11-12 20:03:26.912599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:26.915120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:26.916490"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:03:26.916490"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R211122737' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R211122737%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R211122737' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '51iTNnEsDgI5GixDh6GGCA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:03:26.921957"], ["currency", "USD"], ["email", "bennie_connelly@runte.us"], ["guest_token", "51iTNnEsDgI5GixDh6GGCA"], ["number", "R211122737"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:26.921957"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XAVKQH4F' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:03:26.924337"], ["identifier", "XAVKQH4F"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:03:26.924337"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:26.926586' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-400113' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-400113"], ["updated_at", "2014-11-12 20:03:26.927818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dayna@harvey.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226066865xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:26.945192"], ["email", "dayna@harvey.biz"], ["encrypted_password", "e2ad09dc90cfe0c843525fdcb4e10700c9fdd58d8ca79e0f05d01f78a5e3861338ea4db1f8361acf444a22dd07aba3f74298bdf3f106904dcefae4d59674f8bb"], ["login", "dayna@harvey.biz"], ["password_salt", "HydsWEx9c4N5ihd9uDTK"], ["updated_at", "2014-11-12 20:03:26.945192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:26.949232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:26.950443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:26.951851"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:26.951851"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R586554518' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R586554518%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R586554518' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'MLzuZ20iO4euakvsByY0Qw' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:03:26.957242"], ["currency", "USD"], ["email", "dayna@harvey.biz"], ["guest_token", "MLzuZ20iO4euakvsByY0Qw"], ["number", "R586554518"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:26.957242"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:03:26.966808"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:03:26.966808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 813489' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:03:26.969460"], ["description", "Aperiam vitae veritatis cum ea est velit."], ["name", "TaxCategory - 813489"], ["updated_at", "2014-11-12 20:03:26.969460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:03:26.972773"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:26.972773"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-7338' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-7338' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:26.965706"], ["created_at", "2014-11-12 20:03:26.976761"], ["description", "Eveniet reprehenderit autem quis quaerat in velit accusamus officia. Sunt ut corrupti suscipit alias facilis. Labore sed quod cumque omnis laudantium ut voluptates.\nEum et labore officiis est. Blanditiis eos dolorem quod pariatur. Aut similique quia provident quia vitae molestiae. Alias voluptas esse mollitia similique. Adipisci accusamus dolor molestias impedit molestiae vero consequatur.\nItaque iusto est repudiandae aut est nobis. Consectetur a qui at aut. Architecto enim reiciendis labore atque sint dolores unde. Optio est doloribus et aperiam eaque in quo incidunt. Consequuntur consequatur dolor et ipsam et reprehenderit.\nFacilis autem expedita vero odit voluptatem. Harum veniam exercitationem nihil quia itaque. Facilis consequatur possimus quae pariatur. Commodi quis eius sit saepe dolores a aspernatur. Illum harum asperiores perspiciatis a.\nBlanditiis saepe veritatis hic ad culpa nemo nam. Quia assumenda recusandae voluptatum natus omnis aliquam numquam consequuntur. Non labore et fugiat qui officiis culpa exercitationem."], ["name", "Product #5 - 7338"], ["shipping_category_id", 1], ["slug", "product-5-7338"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:26.976761"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:03:26.979206"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.981677' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.982954' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.984377' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.984945' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:26.988406"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:26.988406"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.989355' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.989885' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.990983' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.991480' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.995491' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.996056' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:26.996654' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:26.998403"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.999185' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.999695' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.000194' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.000782' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.001237' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:27.006130"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.006130"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-7338' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.010298' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:27.014909' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9530' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9530' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:27.021800"], ["created_at", "2014-11-12 20:03:27.025461"], ["description", "Quia earum a expedita aut soluta modi aut. Quia tempora maiores quaerat rerum. Ea labore ullam id quo et alias. Et iste maiores asperiores atque provident repellendus.\nOdio recusandae est fugit voluptas. Odit minus sunt ut magnam odio non veritatis soluta. Et molestiae consectetur accusamus nesciunt sint modi. Distinctio ullam veniam qui sint sunt omnis laboriosam.\nArchitecto ipsum eum alias sed minus eveniet. Iste suscipit voluptates exercitationem rem eum et culpa et. Nisi sunt assumenda sapiente non error. Eligendi ducimus reiciendis quam nisi.\nIllo natus vero vel nihil quas fuga deleniti laborum. Aliquid minima a beatae modi qui doloribus. Dolor corrupti sed neque nihil veniam. Eos voluptatem aut est sunt voluptate rem.\nCupiditate numquam voluptatem atque explicabo sequi in. Quis quae suscipit ipsa itaque sit ut saepe nulla. Nostrum placeat voluptatem quisquam est cumque amet sunt nulla. Libero quos excepturi quod quae dolor. Dolorum aut in explicabo dolorem sunt distinctio ut."], ["name", "Product #6 - 9530"], ["shipping_category_id", 1], ["slug", "product-6-9530"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.025461"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:03:27.027580"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.029629' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.030751' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.032029' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.032616' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:27.035951"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:27.035951"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.036896' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.037440' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.038625' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.039142' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.043034' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.043562' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.044130' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:27.045958"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.046728' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.047272' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.047830' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.048438' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.048912' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:27.053672"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.053672"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9530' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.057762' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:27.062445' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:03:27.071253' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:27.075162"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:03:27.075162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:27.077284"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:03:27.077284"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'camren.harris@ryan.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226075946xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:27.080342"], ["email", "camren.harris@ryan.info"], ["encrypted_password", "dc14462fb9faf95d25c9524822cbcaa0606a0e3be353af51e34691ab82af5164700b1c2b62aaee1fd0e5b563a2eff70f81a0ba81b45ed8dfdcc55618fafa7e41"], ["login", "camren.harris@ryan.info"], ["password_salt", "-x7FcAYyyvrSPE8bXwRe"], ["updated_at", "2014-11-12 20:03:27.080342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:27.082956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:27.084403"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:03:27.084403"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R656823586' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R656823586%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R656823586' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'YPIvtm9j7YboaUDDemgEzA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:03:27.089972"], ["currency", "USD"], ["email", "camren.harris@ryan.info"], ["guest_token", "YPIvtm9j7YboaUDDemgEzA"], ["number", "R656823586"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:27.089972"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7JS9BJZH' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:03:27.092361"], ["identifier", "7JS9BJZH"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:03:27.092361"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.109528' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-234322' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-234322"], ["updated_at", "2014-11-12 20:03:27.110790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dejon_kutch@hammeskilback.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226075857xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:27.127819"], ["email", "dejon_kutch@hammeskilback.us"], ["encrypted_password", "678f3f3c34c7a4f20c00f5ef7a95119aa83b347cc2c8e5eaea01d67c9f51d0618e98d65f871fca909dc14478b5c8973f6c935b036e565a554d44032cbb0661e1"], ["login", "dejon_kutch@hammeskilback.us"], ["password_salt", "_hXzoSAuQxrhyDFXuABQ"], ["updated_at", "2014-11-12 20:03:27.127819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:27.132289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:27.133539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:27.134971"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:27.134971"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R346139192' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R346139192%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R346139192' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'E7t8MRBH_S90fOHw_JYY0w' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:03:27.140509"], ["currency", "USD"], ["email", "dejon_kutch@hammeskilback.us"], ["guest_token", "E7t8MRBH_S90fOHw_JYY0w"], ["number", "R346139192"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:27.140509"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:03:27.148929"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:03:27.148929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 94209' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:03:27.151566"], ["description", "Quis sequi est cumque et."], ["name", "TaxCategory - 94209"], ["updated_at", "2014-11-12 20:03:27.151566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:03:27.154869"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:27.154869"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-2167' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-2167' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:27.147571"], ["created_at", "2014-11-12 20:03:27.158639"], ["description", "Atque quia nemo soluta ipsam nisi quo velit. Minus dolorem sint distinctio reiciendis et in. Necessitatibus voluptatum perferendis et ipsa.\nOmnis non hic autem accusamus quibusdam quae explicabo. Sit et nulla dolor consequuntur doloremque qui earum. Nostrum pariatur enim vel reiciendis ad laboriosam. Minus voluptates et et doloremque est consequatur culpa facere.\nSit distinctio asperiores eum et. Voluptatum esse sint deleniti ipsa saepe unde corporis. Ipsam est assumenda et at ullam ut doloremque rerum. Ab optio velit repellat et reiciendis quis. Ducimus quis rerum consequuntur dolorem."], ["name", "Product #7 - 2167"], ["shipping_category_id", 1], ["slug", "product-7-2167"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.158639"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:03:27.161029"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.163345' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.164653' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.165979' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.166581' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:27.170002"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:27.170002"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.170968' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.171542' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.172651' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.173143' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.177110' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.177662' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.178225' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:27.179994"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.180753' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.181297' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.181804' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.182459' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.182918' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:27.187693"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.187693"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-2167' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.191877' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:27.196446' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3877' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3877' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:27.201726"], ["created_at", "2014-11-12 20:03:27.205407"], ["description", "Et sed ut expedita qui vitae vero quam eum. Ut dolorem debitis quam sed. Ducimus delectus tempore aut nobis quia. Debitis reprehenderit omnis et dolores. Ullam at impedit laborum quibusdam quam omnis quis.\nSint quasi sequi dignissimos blanditiis sed molestias nisi. Laudantium et in porro et minus quam est accusamus. Blanditiis distinctio eos architecto expedita nobis laborum et. Laborum soluta amet suscipit recusandae perferendis perspiciatis dicta dolorum. Sit quam molestiae atque asperiores a corrupti."], ["name", "Product #8 - 3877"], ["shipping_category_id", 1], ["slug", "product-8-3877"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.205407"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:03:27.207581"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.209640' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.210788' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.212100' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.212654' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:27.215944"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:27.215944"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.216864' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.217407' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.218534' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.219027' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.223003' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.223536' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.224066' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:27.225857"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.226608' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.227139' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.227687' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.228288' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.228777' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:27.233379"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.233379"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3877' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.237456' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:27.241910' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:03:27.250471' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:27.254056"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:03:27.254056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:27.255996"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:03:27.255996"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kelly@tremblay.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226073658xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:27.258929"], ["email", "kelly@tremblay.biz"], ["encrypted_password", "4a721bd1bc5aa08f7fd3643da9346d59a327509f0f366a80a45121e4be9e4b40a6df10b306d6d8f425691a8f19c64988c37580445ddfb30b254e1809040aad7e"], ["login", "kelly@tremblay.biz"], ["password_salt", "JVsWnxT2EMmZW8JUwKxX"], ["updated_at", "2014-11-12 20:03:27.258929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:27.261550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:27.262937"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:03:27.262937"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R385674094' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R385674094%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R385674094' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'uT5FIwz3q0IxvO1FIPEhAA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:03:27.268172"], ["currency", "USD"], ["email", "kelly@tremblay.biz"], ["guest_token", "uT5FIwz3q0IxvO1FIPEhAA"], ["number", "R385674094"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:27.268172"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'QTWH6T8F' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:03:27.270570"], ["identifier", "QTWH6T8F"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:03:27.270570"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.272759' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-532414' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-532414"], ["updated_at", "2014-11-12 20:03:27.273964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'amalia@hanenitzsche.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226077149xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:27.287704"], ["email", "amalia@hanenitzsche.biz"], ["encrypted_password", "0339df50e5ff58ae78140985516c4b596b6cc1676fcb516be70fcb39951d43bd55075ed6b66f1f037b1b08650fb573af1a66240b09e15c943830728645b084c7"], ["login", "amalia@hanenitzsche.biz"], ["password_salt", "ybL_wuKDUbenKGkPifjp"], ["updated_at", "2014-11-12 20:03:27.287704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:27.290770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:27.292008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:27.293396"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:27.293396"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R362580709' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R362580709%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R362580709' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hbf2v49fuIge54UpyhTlJg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:03:27.298864"], ["currency", "USD"], ["email", "amalia@hanenitzsche.biz"], ["guest_token", "hbf2v49fuIge54UpyhTlJg"], ["number", "R362580709"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:27.298864"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:03:27.309572"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:03:27.309572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 168219' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:03:27.312706"], ["description", "Perspiciatis sint doloribus optio cumque nihil."], ["name", "TaxCategory - 168219"], ["updated_at", "2014-11-12 20:03:27.312706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:03:27.316499"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:27.316499"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-9527' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-9527' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:27.308088"], ["created_at", "2014-11-12 20:03:27.321016"], ["description", "Esse eaque expedita reiciendis et. Iusto provident exercitationem quis nostrum vero natus recusandae. Praesentium et enim fugit aut magnam magni maiores. Accusamus natus perspiciatis esse aut rem.\nDucimus nesciunt deserunt quae voluptatem. Delectus dicta aliquam aut ullam aut autem accusantium. Et voluptates cupiditate sed vel corrupti. Doloremque illum a dicta commodi.\nSed est possimus alias commodi dolores. Reprehenderit ea asperiores ut excepturi beatae illo similique. Et accusantium sit animi ullam quidem consequatur ut.\nId expedita non ex facilis nostrum eligendi sunt. Sit omnis soluta cupiditate quia hic. Id et harum delectus aliquid."], ["name", "Product #9 - 9527"], ["shipping_category_id", 1], ["slug", "product-9-9527"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.321016"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:03:27.323857"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.326479' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.328067' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.329720' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.330400' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:27.334739"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:27.334739"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.335929' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.336634' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.337988' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.338565' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.343403' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.344125' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.344803' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:27.346718"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.347593' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.348143' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.348723' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.349401' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.349904' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:27.355080"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.355080"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-9527' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.359781' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:27.364271' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-5888' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-5888' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:27.370973"], ["created_at", "2014-11-12 20:03:27.374666"], ["description", "Aut saepe consequuntur quis quisquam nulla blanditiis. Asperiores atque officia amet aut dolor. Porro distinctio accusantium facere provident rem tempora. Dignissimos id aperiam nihil dolores explicabo voluptate alias. Et quod voluptatem totam libero.\nSequi cum sed at suscipit non nostrum quibusdam qui. Optio esse maiores velit odit culpa qui eveniet. Illum ratione culpa tempore perferendis qui et quia. Aut iure id totam debitis expedita rerum qui qui.\nEt est qui eum ad non animi. Quam quidem minima quo dolorem explicabo ut dolor. Autem culpa voluptatibus repellendus cumque nesciunt quisquam. Voluptatem quasi quia maiores eos ut similique.\nConsequatur fugiat quibusdam sed dolorem itaque voluptatem quia. Voluptatem temporibus neque voluptatem quam quia. Quo ipsam dolores perferendis ut.\nHarum eveniet officia aut nemo officiis voluptas impedit doloribus. Quisquam eos ipsum tempore iste. Dicta fugit ut aut hic. Et qui delectus id voluptatibus."], ["name", "Product #10 - 5888"], ["shipping_category_id", 1], ["slug", "product-10-5888"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.374666"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:03:27.376737"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.378703' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.379745' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.380960' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.381501' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:27.384779"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:27.384779"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.385716' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.386253' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.387356' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.387836' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.391649' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.392198' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.392808' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:27.394525"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.395242' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.395763' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.396278' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.396880' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.397337' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:27.402017"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.402017"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-5888' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.406049' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:27.410536' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:03:27.419250' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:27.422879"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:03:27.422879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:27.424875"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:03:27.424875"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brett_gislason@abernathy.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226074910xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:27.427788"], ["email", "brett_gislason@abernathy.co.uk"], ["encrypted_password", "047e0ea47318ad253848c8ff322d8527e3b53df7af3c77ecd27e442ef327194c5bede108c55ebf61e0181b4be9370567a8393a741ed4cc449107a5ba3a55ea85"], ["login", "brett_gislason@abernathy.co.uk"], ["password_salt", "TgG1DsULMiBxKWuofkYi"], ["updated_at", "2014-11-12 20:03:27.427788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:27.430319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:27.431679"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:03:27.431679"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R489160696' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R489160696%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R489160696' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'gWgGfKe89tfQaHAqI1LRJQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:03:27.436930"], ["currency", "USD"], ["email", "brett_gislason@abernathy.co.uk"], ["guest_token", "gWgGfKe89tfQaHAqI1LRJQ"], ["number", "R489160696"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:27.436930"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7KRDAU77' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:03:27.439332"], ["identifier", "7KRDAU77"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:03:27.439332"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.441497' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-523410' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-523410"], ["updated_at", "2014-11-12 20:03:27.442644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'colten@damore.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582260786111xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:27.473978"], ["email", "colten@damore.us"], ["encrypted_password", "ce3ebf852303cfe4fae988c4695214f7f305c0b66aa1e5d1e762cf6b02f2a57c0a4ef41d5a44f504bfb43f9bf7b057ceb4f333bbac4c7e1ffb3716a45af89ec5"], ["login", "colten@damore.us"], ["password_salt", "SLUM_zdzKwnfTFysU-vy"], ["updated_at", "2014-11-12 20:03:27.473978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:27.478295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:27.479543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:27.480930"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:27.480930"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R163668443' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R163668443%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R163668443' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'H3piM5JIfUFKWM4yNFNMkg' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:03:27.486512"], ["currency", "USD"], ["email", "colten@damore.us"], ["guest_token", "H3piM5JIfUFKWM4yNFNMkg"], ["number", "R163668443"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:27.486512"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:03:27.494510"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:03:27.494510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 81997' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:03:27.497180"], ["description", "Autem asperiores cumque nam ea eligendi quaerat ea."], ["name", "TaxCategory - 81997"], ["updated_at", "2014-11-12 20:03:27.497180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:03:27.500500"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:03:27.500500"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-9941' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-9941' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:27.493424"], ["created_at", "2014-11-12 20:03:27.504244"], ["description", "Unde sunt voluptate quo quo aut reprehenderit voluptatibus quis. Dolorem non est consequatur totam ipsum dolores. Et omnis amet dolorum exercitationem. Voluptates aut rerum et corporis deleniti voluptas. Inventore quidem vel officia occaecati culpa et nesciunt.\nAut molestias est odio voluptatem. Reiciendis quidem nobis illo omnis architecto. Et commodi quisquam ad minima sed voluptatem omnis. Dicta vel numquam ducimus a aut delectus rem. Voluptas laboriosam sint ad impedit nemo sint."], ["name", "Product #11 - 9941"], ["shipping_category_id", 1], ["slug", "product-11-9941"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.504244"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:03:27.506855"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.509019' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.510253' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.511630' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.512199' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:27.516154"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:27.516154"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.518780' WHERE "spree_variants"."id" = 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.519969' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.522355' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.523182' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.527986' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.528578' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.529176' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:27.530858"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.531576' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.532059' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.532549' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.533126' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.533592' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:27.538510"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.538510"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-9941' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.543303' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:27.547984' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1862' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1862' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:03:27.554863"], ["created_at", "2014-11-12 20:03:27.558593"], ["description", "Odio ipsa eveniet et placeat illo. Accusantium veniam ab consequuntur omnis voluptatem ipsum doloribus et. Et rem beatae veniam quae qui ut. Dicta veniam a ullam quas.\nAssumenda tenetur illo nihil asperiores. Asperiores autem sit et blanditiis aut. Ratione sit soluta dolorem ut. Quis veniam iure est pariatur natus.\nVoluptatem tempore exercitationem quam eum perspiciatis ex culpa. Nulla distinctio sit dolore ut enim sed nobis. Nisi saepe aliquid sed et quae id quo est. Asperiores deleniti nulla nihil est earum repellat accusantium repellendus.\nVoluptatem laudantium magni dignissimos aut illum voluptatum dolorem. Eum fuga nihil autem praesentium doloribus amet unde. Dolor quia commodi sint quis et fuga.\nVoluptas saepe dolores eveniet sed. Fuga non et aut veniam odit. Et incidunt inventore ad aliquid eos. Maiores consequatur temporibus vel quo nesciunt optio nisi ullam. Est eius quisquam et vitae sunt."], ["name", "Product #12 - 1862"], ["shipping_category_id", 1], ["slug", "product-12-1862"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.558593"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:03:27.560800"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.562799' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.563861' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.565134' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.565685' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:03:27.569053"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:03:27.569053"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.570021' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.570560' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.571693' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.572237' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.576191' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.576809' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.577455' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:03:27.579254"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.580003' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.580536' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.581061' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.581676' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:03:27.582137' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:03:27.587035"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:03:27.587035"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1862' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.605939' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:03:27.610884' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:03:27.620265' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:27.624034"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:03:27.624034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:03:27.626053"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:03:27.626053"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hipolito@dicki.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582260769312xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:03:27.628975"], ["email", "hipolito@dicki.us"], ["encrypted_password", "312c530f39424ed0e50bd855301ddf8bbc7713cbb04c27457298a86b440ba1725728bec768391a0f87989279a9c934472cfe2e24e6fd9b5c339805366fbe2354"], ["login", "hipolito@dicki.us"], ["password_salt", "si7iUnJcopqQp3L882ab"], ["updated_at", "2014-11-12 20:03:27.628975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:27.631506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:03:27.632871"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:03:27.632871"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R281133069' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R281133069%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R281133069' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ShDb9K8yMHAFUkkLNjWnqg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:03:27.638112"], ["currency", "USD"], ["email", "hipolito@dicki.us"], ["guest_token", "ShDb9K8yMHAFUkkLNjWnqg"], ["number", "R281133069"], ["state", "cart"], ["updated_at", "2014-11-12 20:03:27.638112"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'J9FEMWZY' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:03:27.640415"], ["identifier", "J9FEMWZY"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:03:27.640415"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.642576' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-115345' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-115345"], ["updated_at", "2014-11-12 20:03:27.643739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carole_medhurst@kub.com' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226467221xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:04:06.633544"], ["email", "carole_medhurst@kub.com"], ["encrypted_password", "6af9c1228ebdaf9b15d9cf95b44edac32e8678994c13cdae64b3be76b34ce31766685682e4d5c25c8601d57a7e09c833a08d075dc8b4c13d0e1eeec87d3ffc76"], ["login", "carole_medhurst@kub.com"], ["password_salt", "Gz3MrCMBZL2sCzKyCsRC"], ["updated_at", "2014-11-12 20:04:06.633544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:04:06.670422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:06.678195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:04:06.686453"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:04:06.686453"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R716967681' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R716967681%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R716967681' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'EsEdJpRLCw94OXgpmkqpkA' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:04:06.726130"], ["currency", "USD"], ["email", "carole_medhurst@kub.com"], ["guest_token", "EsEdJpRLCw94OXgpmkqpkA"], ["number", "R716967681"], ["state", "cart"], ["updated_at", "2014-11-12 20:04:06.726130"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:04:06.784860"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:04:06.784860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 440499' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:04:06.795188"], ["description", "Eius assumenda quod aut error quia distinctio omnis non."], ["name", "TaxCategory - 440499"], ["updated_at", "2014-11-12 20:04:06.795188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:04:06.824068"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:04:06.824068"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-6744' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-6744' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:04:06.778974"], ["created_at", "2014-11-12 20:04:06.831559"], ["description", "Voluptatem et officia optio rerum ex aut enim sunt. Omnis totam saepe nulla dicta architecto molestiae. Sapiente reprehenderit et nemo laudantium. Voluptatem rem rerum illum quisquam necessitatibus quo laborum non. Animi et aspernatur vero architecto reiciendis recusandae quos."], ["name", "Product #1 - 6744"], ["shipping_category_id", 1], ["slug", "product-1-6744"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:06.831559"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:04:06.836371"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:06.845396' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:06.846843' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:06.867278' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:06.869101' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:04:06.892320"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:04:06.892320"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:06.893639' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:06.894295' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:06.895591' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:06.896107' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.2ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:06.911400' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:06.912202' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:06.912913' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:04:06.914563"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:06.915981' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:06.916621' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:06.917147' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:06.917831' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:06.918307' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:04:06.939801"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:06.939801"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-6744' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:06.950434' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:04:06.965651' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-6786' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-6786' LIMIT 1 SQL (58.9ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:04:06.972170"], ["created_at", "2014-11-12 20:04:06.979778"], ["description", "Molestias eius quod temporibus qui officia dolorem consequatur. Et ad esse nesciunt beatae ut sequi saepe. Voluptatem totam quibusdam sed ut eius fuga. Rem vel dolor officia repellat eum sint. Sint beatae eos voluptatem maiores laboriosam soluta.\nVelit numquam esse nulla ratione sunt quia incidunt. Doloremque quam dolor voluptatem est quo sit deleniti harum. Fuga aut vel quo qui eos et cumque. Corrupti eveniet dolor et tenetur blanditiis cupiditate error."], ["name", "Product #2 - 6786"], ["shipping_category_id", 1], ["slug", "product-2-6786"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:06.979778"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:04:07.041779"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.044309' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.045804' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.047673' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.048413' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:04:07.052701"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:04:07.052701"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.054099' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.054913' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.056278' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.056908' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.061263' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.061881' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.062452' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.064300"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.065037' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.065470' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.065936' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.066539' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.066977' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:04:07.076117"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.076117"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-6786' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.080760' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:04:07.085277' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:04:07.102246' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:04:07.123833"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:04:07.123833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:04:07.136730"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:04:07.136730"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'merlin@kuphal.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226474852xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:04:07.141301"], ["email", "merlin@kuphal.ca"], ["encrypted_password", "7f6228d6659357eb4fe9d7ed5730e3835d5520a9f6adfb9cf6a3cc861973eed035036ae3e5414b6a3c58e385d0b681ab548d340dfda7860390fa09fb3ecac07d"], ["login", "merlin@kuphal.ca"], ["password_salt", "urq6zrGjYt2xjD65PZ1K"], ["updated_at", "2014-11-12 20:04:07.141301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:07.144038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.145458"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:04:07.145458"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R592655208' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R592655208%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R592655208' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NZaGxQEnaSNfihgKbAb_Aw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:04:07.151186"], ["currency", "USD"], ["email", "merlin@kuphal.ca"], ["guest_token", "NZaGxQEnaSNfihgKbAb_Aw"], ["number", "R592655208"], ["state", "cart"], ["updated_at", "2014-11-12 20:04:07.151186"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'CTN3JDX4' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:04:07.163041"], ["identifier", "CTN3JDX4"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:04:07.163041"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.166168' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-343044' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-343044"], ["updated_at", "2014-11-12 20:04:07.167556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rozella_okon@eichmanngusikowski.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226473263xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:04:07.189992"], ["email", "rozella_okon@eichmanngusikowski.ca"], ["encrypted_password", "0ffd3ba2454d00b21c05d11943f3f98a47cd301b1fdfe0ddf1137e4a15099f6a0dbca7e4152b4257dab69f933eb5d909e06e3cc15163963db172bcb43e4578cb"], ["login", "rozella_okon@eichmanngusikowski.ca"], ["password_salt", "Ggxxt5rN54V1isfAzwuz"], ["updated_at", "2014-11-12 20:04:07.189992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:04:07.193271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:07.194585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.195972"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:04:07.195972"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R236338372' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R236338372%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R236338372' LIMIT 1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9Z2iNHOPN-za3n_k8lfqvg' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:04:07.202326"], ["currency", "USD"], ["email", "rozella_okon@eichmanngusikowski.ca"], ["guest_token", "9Z2iNHOPN-za3n_k8lfqvg"], ["number", "R236338372"], ["state", "cart"], ["updated_at", "2014-11-12 20:04:07.202326"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:04:07.214012"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:04:07.214012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 742036' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:04:07.217049"], ["description", "Delectus dolor voluptatem culpa consequuntur eum."], ["name", "TaxCategory - 742036"], ["updated_at", "2014-11-12 20:04:07.217049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.220668"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:04:07.220668"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-9472' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-9472' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:04:07.212556"], ["created_at", "2014-11-12 20:04:07.225061"], ["description", "Odit ratione nisi est quo consequatur et illo dolores. Iure distinctio sequi aut minima architecto aut. Voluptas neque ut deleniti aliquid molestiae eaque provident minus. Blanditiis quae quo suscipit magni sit hic impedit magnam."], ["name", "Product #3 - 9472"], ["shipping_category_id", 1], ["slug", "product-3-9472"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.225061"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:04:07.227405"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.229468' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.230625' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.232223' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.232789' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:04:07.236324"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:04:07.236324"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.237315' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.237926' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.239113' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.239661' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.243640' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.244190' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.244767' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.247949"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.250256' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.251253' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.252317' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.253262' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.254038' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:04:07.260434"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.260434"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-9472' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.265303' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:04:07.269985' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-3218' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-3218' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:04:07.276107"], ["created_at", "2014-11-12 20:04:07.279896"], ["description", "Aut fugiat praesentium dignissimos et quo at ex sequi. Nemo cumque blanditiis error et. Velit eligendi non aspernatur et architecto id. Magni animi aut nisi qui inventore.\nQuidem cumque enim tempore possimus quod. Eum beatae eius quia voluptas provident. Aliquam odit aut eos id accusamus illum hic. Modi autem autem porro consequatur qui cum natus. Voluptatem iure sint nesciunt quos quas voluptas.\nUt provident dolorum quis magnam architecto saepe repellat. Eaque voluptas consequatur qui quibusdam quasi enim. Eveniet voluptatem nemo placeat sint et necessitatibus ad. Laborum totam minima sed ut. Qui ratione aut quasi labore saepe."], ["name", "Product #4 - 3218"], ["shipping_category_id", 1], ["slug", "product-4-3218"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.279896"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:04:07.282045"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.283997' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.285056' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.286387' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.286983' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:04:07.290696"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:04:07.290696"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.291623' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.292173' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.293326' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.293921' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.298004' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.298551' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.299124' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.300916"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.301679' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.302216' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.302760' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.303324' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.303815' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:04:07.308575"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.308575"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-3218' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.312866' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:04:07.317403' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:04:07.326298' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:04:07.330122"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:04:07.330122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:04:07.332212"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:04:07.332212"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'magdalen.bradtke@turcotte.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226474064xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:04:07.335212"], ["email", "magdalen.bradtke@turcotte.info"], ["encrypted_password", "a65ff0cb8b0b324646aa1f07f138d263c635171b8ab7078af7cea3a073160e672042cd651258fd5c2f12e81857942edb54d9d2f07b392a909646496b31cf7cc7"], ["login", "magdalen.bradtke@turcotte.info"], ["password_salt", "ceATsZq7rqhEEnFR6C7e"], ["updated_at", "2014-11-12 20:04:07.335212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:07.337837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.339210"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:04:07.339210"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R891650360' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R891650360%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R891650360' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ZCItr-FQ05I53KJmv5EGFQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:04:07.348400"], ["currency", "USD"], ["email", "magdalen.bradtke@turcotte.info"], ["guest_token", "ZCItr-FQ05I53KJmv5EGFQ"], ["number", "R891650360"], ["state", "cart"], ["updated_at", "2014-11-12 20:04:07.348400"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'DF2DGLEE' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:04:07.352294"], ["identifier", "DF2DGLEE"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:04:07.352294"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.355254' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-151315' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-151315"], ["updated_at", "2014-11-12 20:04:07.356457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'camren_hamill@champlinshanahan.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415822647405xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:04:07.369458"], ["email", "camren_hamill@champlinshanahan.biz"], ["encrypted_password", "32188201f730ebe6b4b726408bf893e966461dceac9e8bf2e59e86099b28dfc0d12987ee4168945810a661aae794bac1e6d86b2c30142ecdd4e714118a8d9033"], ["login", "camren_hamill@champlinshanahan.biz"], ["password_salt", "SZMdSMCkzZAyJUbyfboA"], ["updated_at", "2014-11-12 20:04:07.369458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:04:07.372525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:07.373878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.375383"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:04:07.375383"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417545621' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R417545621%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417545621' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hr0VudjqWEPTF02RdgHfKg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:04:07.380859"], ["currency", "USD"], ["email", "camren_hamill@champlinshanahan.biz"], ["guest_token", "hr0VudjqWEPTF02RdgHfKg"], ["number", "R417545621"], ["state", "cart"], ["updated_at", "2014-11-12 20:04:07.380859"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:04:07.390510"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:04:07.390510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 273970' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:04:07.393312"], ["description", "Natus eveniet deserunt quae est vel."], ["name", "TaxCategory - 273970"], ["updated_at", "2014-11-12 20:04:07.393312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.396647"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:04:07.396647"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-6316' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-6316' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:04:07.389353"], ["created_at", "2014-11-12 20:04:07.400510"], ["description", "Reiciendis aliquid iure suscipit possimus cupiditate aspernatur dolor. Commodi perferendis odio assumenda in officiis ea numquam rerum. Quo quia est in officia optio.\nCommodi qui soluta voluptatem sunt quia. Voluptas et dolorem quia et aut aut ipsam enim. Est sit odit ipsum maxime occaecati neque voluptatibus a. Reiciendis ratione distinctio odio labore.\nOfficia omnis voluptas ex corrupti. Reprehenderit dolores provident sequi quasi harum quis quia vero. Quam et omnis dolore et ratione iste. Animi labore commodi autem assumenda. Sed ipsum et qui ullam consequatur incidunt tempora.\nEt vel iusto et quia dolorem architecto. Nesciunt consequuntur aut ut velit qui illo. Consequatur molestiae velit officia dolor perspiciatis dolore recusandae. Dolorem nostrum rerum error reprehenderit.\nModi eos totam autem alias enim. Consequatur quibusdam ad qui voluptas quo. Veritatis dolor fugit natus sint ut earum. Necessitatibus et atque illum omnis tenetur. Est dolorem modi illum qui et est sunt."], ["name", "Product #5 - 6316"], ["shipping_category_id", 1], ["slug", "product-5-6316"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.400510"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:04:07.403065"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.405163' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.406361' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.407670' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.408250' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:04:07.411614"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:04:07.411614"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.412543' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.413072' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.414233' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.414734' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.418693' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.420207' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.421608' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.424841"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.426039' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.426811' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.427577' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.428472' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.429189' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:04:07.434693"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.434693"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-6316' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.438897' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:04:07.443596' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-6648' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-6648' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:04:07.450035"], ["created_at", "2014-11-12 20:04:07.453828"], ["description", "Officiis voluptate natus accusamus praesentium enim expedita. Sint ut aperiam corporis nihil nam. Magni dolore numquam dolores alias deserunt sint.\nImpedit minus dolores corporis qui possimus. Voluptas aut vel voluptatum sunt. Sit quam quo voluptas accusamus nihil repellendus earum. Odio corporis laboriosam nobis libero.\nQui facere aut voluptatem illo. Vero quibusdam odit eos occaecati atque. Omnis recusandae temporibus repudiandae est. Dolor quis consequatur saepe optio tempora. Id voluptatibus quia natus voluptatem perspiciatis.\nCorporis quo consequatur nostrum qui quod. Incidunt consequuntur inventore est maxime aut vel. Quo dolor reiciendis nihil voluptas facilis est ad. Adipisci rem sequi impedit dolorem alias. Nam ipsum quisquam molestiae accusamus qui."], ["name", "Product #6 - 6648"], ["shipping_category_id", 1], ["slug", "product-6-6648"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.453828"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:04:07.456053"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.458006' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.459138' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.460435' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.460986' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:04:07.464357"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:04:07.464357"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.465307' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.465872' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.467015' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.467556' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.471840' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.473375' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.474692' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.477913"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.479059' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.479849' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.480616' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.481558' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.482312' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:04:07.487851"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.487851"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-6648' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.491946' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:04:07.496527' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:04:07.505274' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:04:07.509005"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:04:07.509005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:04:07.511099"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:04:07.511099"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shyanne@block.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226473236xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:04:07.514183"], ["email", "shyanne@block.co.uk"], ["encrypted_password", "21a6e1e5d1b6c6f749d91da0b13646ab32c80eb592c6a63ecc1eeec0e43b6b06e3de2b1fdffbfdeedc36b027921b12140c128146ce1129d640a200451d739388"], ["login", "shyanne@block.co.uk"], ["password_salt", "F7XnuB-8YazZmDznMjce"], ["updated_at", "2014-11-12 20:04:07.514183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:07.516887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.518273"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:04:07.518273"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R659779568' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R659779568%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R659779568' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'AMNipPcRuwovqeH9IGsKAA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:04:07.523791"], ["currency", "USD"], ["email", "shyanne@block.co.uk"], ["guest_token", "AMNipPcRuwovqeH9IGsKAA"], ["number", "R659779568"], ["state", "cart"], ["updated_at", "2014-11-12 20:04:07.523791"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'PGXFN2ZG' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:04:07.526311"], ["identifier", "PGXFN2ZG"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:04:07.526311"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.543029' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-424145' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-424145"], ["updated_at", "2014-11-12 20:04:07.544466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'quinten_quigley@langstracke.info' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226472997xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:04:07.561000"], ["email", "quinten_quigley@langstracke.info"], ["encrypted_password", "3813db08f526fe2fbb35b5634389f9b1227cb8d9aaf9431824d7355f5501cbe43cfdee65c5e4b72608a671183291cacae6fcd8923905a8a4536d7cb287a1b221"], ["login", "quinten_quigley@langstracke.info"], ["password_salt", "svjXTizLvGoQ44RMZySL"], ["updated_at", "2014-11-12 20:04:07.561000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:04:07.564036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:07.565265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.566641"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:04:07.566641"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R727766159' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R727766159%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R727766159' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LhOCqBwMC_kh1viA-98AaA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:04:07.572114"], ["currency", "USD"], ["email", "quinten_quigley@langstracke.info"], ["guest_token", "LhOCqBwMC_kh1viA-98AaA"], ["number", "R727766159"], ["state", "cart"], ["updated_at", "2014-11-12 20:04:07.572114"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:04:07.579808"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:04:07.579808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 608199' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:04:07.582484"], ["description", "Sunt odit ut quia fuga tempore."], ["name", "TaxCategory - 608199"], ["updated_at", "2014-11-12 20:04:07.582484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.588927"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:04:07.588927"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-6278' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-6278' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:04:07.578754"], ["created_at", "2014-11-12 20:04:07.595325"], ["description", "Qui praesentium dolores ut dolor asperiores. Maxime voluptatem magnam qui asperiores sed voluptatem ducimus. Optio dolores enim sed distinctio. Unde magnam excepturi eos vel.\nPerspiciatis nostrum dolores aliquid cupiditate commodi voluptas nam. Quo expedita debitis eaque est. Harum dolorem beatae est ullam distinctio velit iste facere. Dolores numquam quam aut incidunt vitae."], ["name", "Product #7 - 6278"], ["shipping_category_id", 1], ["slug", "product-7-6278"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.595325"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:04:07.598260"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.600320' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.601572' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.602839' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.603398' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:04:07.607137"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:04:07.607137"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.609266' WHERE "spree_variants"."id" = 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.610576' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.612866' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.613959' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.621398' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.622198' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.623010' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.625218"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.625933' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.626404' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.626871' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.627429' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.627867' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:04:07.632979"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.632979"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-6278' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.637596' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:04:07.642362' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-823' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-823' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:04:07.648756"], ["created_at", "2014-11-12 20:04:07.652628"], ["description", "Rem vero sit rerum impedit repellat. Et et omnis ducimus nesciunt enim quasi quaerat. Cupiditate voluptate rerum vero officia quasi et ut recusandae. Aut quia corrupti accusantium a nihil non fugiat.\nReiciendis voluptatem odio pariatur illo iste. Voluptas et eos necessitatibus eum quis saepe alias laborum. Aperiam error debitis blanditiis qui. Enim deleniti quis voluptate minima tempora enim aut est. Labore corporis similique quis non quis.\nAut voluptatibus veniam nisi voluptatem ea. Molestiae exercitationem numquam voluptas aliquam. Ratione vitae et reprehenderit praesentium et dignissimos doloribus nihil. Quia et quibusdam in distinctio.\nDucimus sed sed incidunt sunt et sit. Repellendus aut asperiores maiores quia rerum voluptatibus. Ullam ut officiis quos alias voluptatibus odit deserunt."], ["name", "Product #8 - 823"], ["shipping_category_id", 1], ["slug", "product-8-823"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.652628"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:04:07.655152"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.657292' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.658414' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.659702' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.660241' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:04:07.663815"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:04:07.663815"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.664800' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.665367' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.666547' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.667100' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.671236' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.672215' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.672812' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.674670"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.675456' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.675934' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.676405' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.676960' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.677436' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:04:07.682289"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.682289"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-823' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.686470' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:04:07.691072' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:04:07.699848' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:04:07.703453"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:04:07.703453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:04:07.705528"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:04:07.705528"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'elyssa@goyetteparker.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158226477388xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:04:07.708501"], ["email", "elyssa@goyetteparker.ca"], ["encrypted_password", "05e31bda1385af1ed1dc2e3ebd03684359ab50b641425e9135e95db3f624495f26379ecf9c714dc5a60cfc0bf659081a7e1c84fa2d32500def02164cb5295b88"], ["login", "elyssa@goyetteparker.ca"], ["password_salt", "J-UqssqxwusHrjw-2cX3"], ["updated_at", "2014-11-12 20:04:07.708501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:07.711005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.712433"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:04:07.712433"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R523039262' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R523039262%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R523039262' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'TjJhhI3gOJWBigIJAYitmw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:04:07.717870"], ["currency", "USD"], ["email", "elyssa@goyetteparker.ca"], ["guest_token", "TjJhhI3gOJWBigIJAYitmw"], ["number", "R523039262"], ["state", "cart"], ["updated_at", "2014-11-12 20:04:07.717870"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'MTMMKLNF' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:04:07.720284"], ["identifier", "MTMMKLNF"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:04:07.720284"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.722582' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-501221' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-501221"], ["updated_at", "2014-11-12 20:04:07.723837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'christiana.littel@schmitt.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582264709xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:04:07.741186"], ["email", "christiana.littel@schmitt.ca"], ["encrypted_password", "eb37a6d98982b10f80c500b5141e0b958b858a3557e3bb7e140ff42f5df6c9a1d82b0cea093b5f0baf43ae07dc32d4cf8eaab80c956c973253db69c403468ab2"], ["login", "christiana.littel@schmitt.ca"], ["password_salt", "Ns7xB4YHS5ftCsDao3AF"], ["updated_at", "2014-11-12 20:04:07.741186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:04:07.745410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:07.746893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.748485"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:04:07.748485"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R989139961' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R989139961%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R989139961' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Fo88ABdh0S4RbvOrnFNZmA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:04:07.754226"], ["currency", "USD"], ["email", "christiana.littel@schmitt.ca"], ["guest_token", "Fo88ABdh0S4RbvOrnFNZmA"], ["number", "R989139961"], ["state", "cart"], ["updated_at", "2014-11-12 20:04:07.754226"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:04:07.761767"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:04:07.761767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 473468' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:04:07.764491"], ["description", "Eum sit veniam vero et."], ["name", "TaxCategory - 473468"], ["updated_at", "2014-11-12 20:04:07.764491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.767741"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:04:07.767741"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-6335' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-6335' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:04:07.760654"], ["created_at", "2014-11-12 20:04:07.771540"], ["description", "Eos est consequatur soluta necessitatibus voluptas praesentium omnis. Nesciunt esse accusantium voluptates in incidunt cumque assumenda. Dolorem consequatur eligendi non aut consequatur ut ut quia. Quaerat porro quo voluptatem et reiciendis maiores nisi labore."], ["name", "Product #9 - 6335"], ["shipping_category_id", 1], ["slug", "product-9-6335"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.771540"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:04:07.774009"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.776053' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.777179' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.778552' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.779149' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:04:07.782528"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:04:07.782528"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.783463' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.784015' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.785098' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.785632' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.789761' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.790354' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.791388' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.795127"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.796486' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.797422' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.798288' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.799197' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.799919' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:04:07.805921"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.805921"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-6335' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.810250' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:04:07.814989' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-5388' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-5388' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:04:07.821652"], ["created_at", "2014-11-12 20:04:07.825554"], ["description", "Tenetur non explicabo sit magnam sed sit. Nisi cumque veniam nulla nobis reiciendis necessitatibus minus qui. Id similique repudiandae voluptate aut eligendi saepe. Voluptates dignissimos consequuntur cupiditate suscipit et sit maxime reprehenderit. In minima eum aperiam commodi velit.\nFuga perspiciatis corporis quisquam aliquid. Eos atque praesentium quia magni eos numquam aut alias. Est perferendis et sunt magni repudiandae voluptatum et. Eum quos fugit et assumenda. Et nulla laboriosam facilis nostrum.\nDucimus illo quidem ipsam officia. Mollitia soluta necessitatibus saepe hic deleniti aut est ratione. Tempora ut aut sunt minus voluptatem est. Sed voluptatem dolor ut tenetur minima facere est odio. Sit dolorum odit expedita provident et voluptatem odio.\nSit ad rerum qui ut voluptas. Dolores sit blanditiis sed facilis harum quidem aperiam non. Quis eos rerum excepturi doloremque."], ["name", "Product #10 - 5388"], ["shipping_category_id", 1], ["slug", "product-10-5388"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.825554"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:04:07.827763"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.829786' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.830901' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.832158' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.832704' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:04:07.836189"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:04:07.836189"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.837195' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.837783' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.838912' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.839406' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.843510' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.845177' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.846344' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.849428"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.850584' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.851340' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.852086' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.853021' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.853764' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:04:07.859393"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.859393"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-5388' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.863860' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:04:07.868478' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:04:07.877295' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'madison.terry@bergstrom.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582264793110xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:04:07.903828"], ["email", "madison.terry@bergstrom.ca"], ["encrypted_password", "fa5f1734dc2d9574e9c1237559ca2462bda99b9f3021617b48d0098986453b4cb23a0284064d05b1476385b2666b58db0d44b50c803542468063544a5b6d2b24"], ["login", "madison.terry@bergstrom.ca"], ["password_salt", "KQsv9gr6-4rpKGnmjCvp"], ["updated_at", "2014-11-12 20:04:07.903828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:04:07.907196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:07.908501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.909942"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:04:07.909942"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R880222911' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R880222911%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R880222911' LIMIT 1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'KShfiIbZjg82cVQgCXmd6A' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:04:07.915954"], ["currency", "USD"], ["email", "madison.terry@bergstrom.ca"], ["guest_token", "KShfiIbZjg82cVQgCXmd6A"], ["number", "R880222911"], ["state", "cart"], ["updated_at", "2014-11-12 20:04:07.915954"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:04:07.930158"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:04:07.930158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 180529' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:04:07.932847"], ["description", "Laboriosam quae itaque perferendis adipisci at nam enim asperiores."], ["name", "TaxCategory - 180529"], ["updated_at", "2014-11-12 20:04:07.932847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:04:07.936480"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:04:07.936480"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-7823' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-7823' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:04:07.929017"], ["created_at", "2014-11-12 20:04:07.940601"], ["description", "Eius eos ratione distinctio magni qui iusto ad. Unde atque molestias soluta nulla id occaecati nisi et. Delectus est blanditiis ipsam voluptas. Optio atque architecto voluptatem qui voluptatem et odit doloribus.\nEum dolore reiciendis fugiat facilis neque nemo in. Quibusdam ut voluptatem similique eum consequuntur tenetur quia maiores. Sunt illum ea magni numquam quia voluptatem. Corrupti quis rem soluta assumenda molestias eum non laudantium.\nEst deserunt saepe ea consequatur distinctio nostrum. Voluptatem dolores nemo odio quae. Ut optio debitis et illum.\nMaxime reiciendis vero est dolorem blanditiis. Ut et animi ea harum inventore. Eos aut necessitatibus tempore optio error asperiores ut. Quam unde iusto et dolorum ea. Accusamus cupiditate autem ut tempora et dolores."], ["name", "Product #11 - 7823"], ["shipping_category_id", 1], ["slug", "product-11-7823"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.940601"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:04:07.943058"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.945126' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.946323' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.947624' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.948165' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:04:07.951556"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:04:07.951556"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.952482' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.953017' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.954182' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.954686' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.958689' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.959201' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.959728' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.961550"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.962309' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.962805' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.963312' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.963925' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:07.964401' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.4ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:04:07.969176"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.969176"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-7823' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.977936' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:04:07.984164' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-3160' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-3160' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:04:07.991094"], ["created_at", "2014-11-12 20:04:07.994957"], ["description", "Commodi quis qui placeat soluta est nostrum. Quia nobis aut quas voluptas. Eveniet quia et laboriosam omnis sed delectus.\nVeritatis molestiae minima itaque doloribus quaerat doloremque magnam. Eligendi aut necessitatibus minima nemo quo et quis. Laboriosam facere voluptatem magnam aut tenetur distinctio. Est ut est sed in veritatis beatae.\nEum in ut sit vero sit. In adipisci tempore voluptatibus veritatis est quo. Accusantium perferendis incidunt voluptatem harum velit delectus sit est. Quod sed velit molestiae voluptate et voluptas voluptas corrupti. Et vel rerum quia possimus.\nTempore cum aut quis ut. Corrupti aliquam assumenda tenetur nisi maiores. Vel quia fugiat esse est quidem aut. Ex officia pariatur enim sed tenetur ipsum aut alias. Dolorum ut asperiores fuga autem.\nVoluptatibus qui debitis fugiat distinctio autem possimus. Consequatur eius impedit sit quidem. Ad suscipit iure sunt officia sunt iste."], ["name", "Product #12 - 3160"], ["shipping_category_id", 1], ["slug", "product-12-3160"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:07.994957"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:04:07.997164"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.999170' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:08.000265' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:08.001971' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:08.003498' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:04:08.009280"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:04:08.009280"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:08.010849' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:08.011772' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:08.013374' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:08.014095' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:08.018425' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:08.019021' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:08.019627' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:04:08.021294"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:08.021995' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:08.022453' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:08.022928' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:08.023498' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:04:08.023949' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:04:08.028717"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:04:08.028717"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-3160' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:08.033418' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:04:08.038195' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:04:08.047403' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:04:08.051259"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:04:08.051259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:04:08.053895"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:04:08.053895"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'celia@wisozk.biz' LIMIT 1 SQL (17.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582264849911xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:04:08.057003"], ["email", "celia@wisozk.biz"], ["encrypted_password", "fa1124a14d8ace6c9dbf869f0bfffbdd1e59858f6180f00279bff6d6aec6a8f0dbc35e74890d55b1ebef633c5641fe2243f4b0788191a33974ec063923c093d1"], ["login", "celia@wisozk.biz"], ["password_salt", "xnBzFJqkK3VxD5rajSWn"], ["updated_at", "2014-11-12 20:04:08.057003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:08.078560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:04:08.080540"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:04:08.080540"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R368506247' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R368506247%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R368506247' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'kbJPy1cSoqcU9exS9dCW3A' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:04:08.086050"], ["currency", "USD"], ["email", "celia@wisozk.biz"], ["guest_token", "kbJPy1cSoqcU9exS9dCW3A"], ["number", "R368506247"], ["state", "cart"], ["updated_at", "2014-11-12 20:04:08.086050"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'PQ6RY3JM' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:04:08.088623"], ["identifier", "PQ6RY3JM"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:04:08.088623"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:08.090838' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-503124' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-503124"], ["updated_at", "2014-11-12 20:04:08.092064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'euna@trantow.us' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227414531xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:05:41.197912"], ["email", "euna@trantow.us"], ["encrypted_password", "2f89b8568022be1578cab1297dba5b5c80bb1d93faef88d65e301d9ee6c97b6355e7f4937577524be96770bd88e0ffa0b029857447f0edb0bde21b1b6aadf718"], ["login", "euna@trantow.us"], ["password_salt", "S1PmYpDwDqzYo492sfXU"], ["updated_at", "2014-11-12 20:05:41.197912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:05:41.231551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:41.237719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:05:41.246542"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:05:41.246542"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R897961412' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R897961412%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R897961412' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QqR3vA4-EKWCsaDuK1-NzA' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:05:41.281333"], ["currency", "USD"], ["email", "euna@trantow.us"], ["guest_token", "QqR3vA4-EKWCsaDuK1-NzA"], ["number", "R897961412"], ["state", "cart"], ["updated_at", "2014-11-12 20:05:41.281333"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:05:41.335355"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:05:41.335355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 771239' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:05:41.345141"], ["description", "Quibusdam incidunt laborum minus recusandae consequatur."], ["name", "TaxCategory - 771239"], ["updated_at", "2014-11-12 20:05:41.345141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:05:41.368623"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:05:41.368623"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-5218' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-5218' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:05:41.331106"], ["created_at", "2014-11-12 20:05:41.373789"], ["description", "Non eius magni ab dolorum rerum fugit animi. Quam sit sunt accusamus nihil blanditiis laboriosam similique hic. Ut repellat non magni omnis occaecati vel. Architecto ut autem provident qui corrupti nobis.\nArchitecto velit aspernatur ipsum voluptas. Enim voluptatibus non odit sit. Quae eius et voluptatem laudantium. Et voluptatem nam est ipsam autem.\nMaiores ullam sed molestias perferendis rerum et doloribus. Voluptas quas quam molestias inventore ad. Quia recusandae est perspiciatis sunt ad. Suscipit molestiae ea ex quae non soluta consectetur. Expedita dolor dignissimos maiores facere aspernatur sed tempora.\nRepellendus officia veniam neque saepe itaque ut nihil. Ut vitae quo similique quas. Magnam rerum placeat et eos corporis unde reprehenderit. Laborum velit corrupti fugiat ratione officia eos.\nCupiditate iste nemo error quam pariatur sed. Sapiente cupiditate eius odio veritatis architecto in ad. Necessitatibus eveniet tempore voluptas perspiciatis voluptatum sint."], ["name", "Product #1 - 5218"], ["shipping_category_id", 1], ["slug", "product-1-5218"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:41.373789"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:05:41.376573"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.383794' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.385121' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.399002' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.400237' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:05:41.422122"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:05:41.422122"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.423388' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.423978' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.425148' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.425656' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.435928' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.436527' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.437061' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:05:41.438793"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.440045' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.440547' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.441034' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.441584' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.442006' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:05:41.463604"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:41.463604"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-5218' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.471890' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:05:41.480115' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-4628' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-4628' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:05:41.485769"], ["created_at", "2014-11-12 20:05:41.543307"], ["description", "Nostrum a dolores porro quibusdam eligendi modi. Magnam consectetur qui odit dolor deserunt saepe culpa. Et illum eos voluptas ut alias beatae expedita. Nihil ut qui doloremque et suscipit ipsam minima.\nIn eos quidem officia tenetur. Et modi alias maiores velit inventore recusandae. Minima nulla incidunt et sed odio magnam illum.\nAut illum molestiae placeat error incidunt dolor amet magni. Quas rem quis praesentium occaecati laborum similique omnis voluptatem. Ducimus minus necessitatibus illum corporis nesciunt. Officiis sed praesentium possimus id rerum et aut."], ["name", "Product #2 - 4628"], ["shipping_category_id", 1], ["slug", "product-2-4628"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:41.543307"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:05:41.545839"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.547849' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.548936' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.550173' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.550723' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:05:41.557825"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:05:41.557825"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.559448' WHERE "spree_variants"."id" = 2 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.560352' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.562181' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.563116' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.569120' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.569717' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.570229' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:05:41.571863"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.572558' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.573051' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.573519' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.574085' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.574524' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:05:41.579326"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:41.579326"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-4628' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.583928' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:05:41.588514' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:05:41.605294' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:05:41.626298"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:05:41.626298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:05:41.638782"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:05:41.638782"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ali.torphy@jast.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415822741432xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:05:41.643534"], ["email", "ali.torphy@jast.info"], ["encrypted_password", "50dcf0f18bad778d1051ab6355f3aa783cb711f664d6330a76335420b9a2624731111b7ba4395b0cb421ae55152340513a88e7eaf3495c8ec9f1b497655fe076"], ["login", "ali.torphy@jast.info"], ["password_salt", "Eu-7ojw9Xyps-uN9y_R6"], ["updated_at", "2014-11-12 20:05:41.643534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:41.646200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:05:41.647678"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:05:41.647678"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R923121814' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R923121814%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R923121814' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'SImauUigJLZNRkVPxP6GNA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:05:41.653115"], ["currency", "USD"], ["email", "ali.torphy@jast.info"], ["guest_token", "SImauUigJLZNRkVPxP6GNA"], ["number", "R923121814"], ["state", "cart"], ["updated_at", "2014-11-12 20:05:41.653115"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'PWCE5JRY' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:05:41.665762"], ["identifier", "PWCE5JRY"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:05:41.665762"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.668969' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-254345' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-254345"], ["updated_at", "2014-11-12 20:05:41.670434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'wilber@johnstonharber.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415822741293xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:05:41.692249"], ["email", "wilber@johnstonharber.ca"], ["encrypted_password", "40a6b11fc88423c01f672390354298dd3cb01f89a364d2bc943ad563b7cbaa6e8773f234000b5149ae7734c53783c9624f5e8d10cccfa5c3a47c1cf9227e6c5b"], ["login", "wilber@johnstonharber.ca"], ["password_salt", "4gAKmnhwDpxy5yfZX6eF"], ["updated_at", "2014-11-12 20:05:41.692249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:05:41.696057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:41.697392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:05:41.698834"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:05:41.698834"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R535644313' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R535644313%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R535644313' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'v8iAom6RW9ZMqvYZ5Xz36g' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:05:41.704379"], ["currency", "USD"], ["email", "wilber@johnstonharber.ca"], ["guest_token", "v8iAom6RW9ZMqvYZ5Xz36g"], ["number", "R535644313"], ["state", "cart"], ["updated_at", "2014-11-12 20:05:41.704379"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:05:41.714079"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:05:41.714079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 294677' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:05:41.716722"], ["description", "Nam rerum fuga sed dolorum labore nihil doloremque."], ["name", "TaxCategory - 294677"], ["updated_at", "2014-11-12 20:05:41.716722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:05:41.720112"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:05:41.720112"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-4102' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-4102' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:05:41.712971"], ["created_at", "2014-11-12 20:05:41.724192"], ["description", "Veritatis illo perspiciatis libero atque. Omnis illo error nesciunt inventore. Explicabo omnis debitis fuga veniam voluptate ab velit. Non dolorem repellat iure accusamus accusantium qui.\nLaudantium aut eos et praesentium sint rerum qui. Ducimus cumque voluptas omnis incidunt accusantium unde molestias quasi. Nisi commodi delectus quis iusto voluptatum itaque enim dolorem.\nDicta quaerat perferendis et non saepe reiciendis qui quae. Temporibus eius doloremque ut totam voluptas repellat in architecto. Et sed et harum tempora. Qui itaque porro nemo eaque ut. Quam dolorum quis amet magnam.\nRerum est quos reiciendis explicabo ut perferendis. Facilis incidunt fugit maxime ut aut aut velit inventore. Recusandae necessitatibus nam quo quod iusto est quos laborum. Est provident vitae qui culpa corrupti nisi atque. Quis perferendis culpa fugit distinctio aliquam possimus sequi labore.\nVoluptate nobis quisquam aliquid ut eaque animi eligendi eius. Impedit a maxime fuga ullam. Necessitatibus totam ut laudantium sunt nemo."], ["name", "Product #3 - 4102"], ["shipping_category_id", 1], ["slug", "product-3-4102"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:41.724192"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:05:41.726627"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.728673' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.729829' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.731364' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.732113' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:05:41.735784"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:05:41.735784"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.736801' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.737431' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.738557' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.739082' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.743344' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.745021' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.746357' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:05:41.749693"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.750880' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.751652' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.752431' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.753353' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.754096' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:05:41.759743"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:41.759743"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-4102' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.764321' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:05:41.768965' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-8210' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-8210' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:05:41.773610"], ["created_at", "2014-11-12 20:05:41.777287"], ["description", "Aspernatur ducimus et in est ea dolor. Pariatur voluptatem optio ab earum id sint quia. Culpa rerum voluptatem et et. Quisquam illum sint animi voluptatem. Molestiae praesentium consequuntur doloribus quis a dolor rerum."], ["name", "Product #4 - 8210"], ["shipping_category_id", 1], ["slug", "product-4-8210"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:41.777287"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:05:41.779448"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.781446' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.782540' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.783753' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.784331' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:05:41.787714"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:05:41.787714"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.788758' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.789322' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.790503' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.791007' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.795126' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.796758' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.798043' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:05:41.801195"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.802374' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.803129' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.803928' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.804820' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.805558' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:05:41.811122"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:41.811122"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-8210' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.815278' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:05:41.819769' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:05:41.828484' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:05:41.832133"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:05:41.832133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:05:41.834221"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:05:41.834221"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nicola.heathcote@yost.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227417474xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:05:41.837189"], ["email", "nicola.heathcote@yost.co.uk"], ["encrypted_password", "45a6b529f50faa5a9d8ae24d1b50001c24b7e2f7272726b7dd0102ace9fe983417222dcc699139e72cfa32a9ae796509b73acefc8d745551c236a1c2b1599688"], ["login", "nicola.heathcote@yost.co.uk"], ["password_salt", "wP82R4bedQpA8VsHxokz"], ["updated_at", "2014-11-12 20:05:41.837189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:41.839716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:05:41.841135"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:05:41.841135"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R677453009' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R677453009%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R677453009' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'cmMgdgcwG38qsUSpWJCEaA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:05:41.846459"], ["currency", "USD"], ["email", "nicola.heathcote@yost.co.uk"], ["guest_token", "cmMgdgcwG38qsUSpWJCEaA"], ["number", "R677453009"], ["state", "cart"], ["updated_at", "2014-11-12 20:05:41.846459"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'ZFE88YR3' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:05:41.848824"], ["identifier", "ZFE88YR3"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:05:41.848824"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.851165' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-303450' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-303450"], ["updated_at", "2014-11-12 20:05:41.852406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'chelsie@gottlieb.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227413695xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:05:41.870338"], ["email", "chelsie@gottlieb.us"], ["encrypted_password", "feb09771eefd59f69fa74faa0919ec510cf0c621bffb4d13ca9cc43160c1c84411cf88b397bd6b3540927238c9431dbc674226f462ddefe4878ff03a305ca89c"], ["login", "chelsie@gottlieb.us"], ["password_salt", "UbdHTqnExzswTTG2FmUg"], ["updated_at", "2014-11-12 20:05:41.870338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:05:41.874746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:41.876267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:05:41.877726"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:05:41.877726"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R411446292' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R411446292%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R411446292' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bef6ZOnmHkZmrqliZy-59A' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:05:41.883362"], ["currency", "USD"], ["email", "chelsie@gottlieb.us"], ["guest_token", "bef6ZOnmHkZmrqliZy-59A"], ["number", "R411446292"], ["state", "cart"], ["updated_at", "2014-11-12 20:05:41.883362"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:05:41.891972"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:05:41.891972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 960509' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:05:41.894702"], ["description", "Quae totam illo magnam quibusdam quo tenetur id."], ["name", "TaxCategory - 960509"], ["updated_at", "2014-11-12 20:05:41.894702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:05:41.898084"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:05:41.898084"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8245' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8245' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:05:41.890840"], ["created_at", "2014-11-12 20:05:41.902257"], ["description", "Et qui dolor repudiandae quas accusantium. Nostrum enim sit adipisci dolorem ipsa. Recusandae rerum labore tenetur eveniet dolorem eum ipsa vel.\nNatus et ullam autem qui molestiae quibusdam nihil. Omnis cupiditate sit dolorem eaque voluptatem ut quia explicabo. Iusto nihil quo qui exercitationem recusandae rem ut. Quis blanditiis reprehenderit autem a maxime. Placeat eaque rerum consequatur nesciunt ducimus aut veniam.\nPlaceat et minima et impedit voluptatem doloribus tempore. Consequatur eum quia eligendi numquam voluptas illo quaerat labore. Earum dignissimos ipsam vero qui dolores voluptatem. Eveniet et nobis ipsam ex fugit veritatis reiciendis at. Repellendus voluptatem doloribus qui vitae eos et."], ["name", "Product #5 - 8245"], ["shipping_category_id", 1], ["slug", "product-5-8245"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:41.902257"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:05:41.904573"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.906751' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.907902' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.909207' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.909815' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:05:41.913247"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:05:41.913247"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.914257' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.914845' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.916230' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.916806' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.921212' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.921870' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.922439' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:05:41.924224"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.924969' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.925449' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.925914' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.926491' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.926932' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:05:41.931864"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:41.931864"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8245' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.936227' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:05:41.941034' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-8342' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-8342' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:05:41.946081"], ["created_at", "2014-11-12 20:05:41.949884"], ["description", "Rem recusandae et distinctio architecto deleniti. Atque reprehenderit excepturi eum temporibus nemo maiores dolores. Atque sit et et harum eligendi libero voluptas.\nUt aut error sed dolor adipisci consequatur nemo rem. Excepturi voluptatem sit labore consequatur suscipit. Perspiciatis voluptatibus modi cumque dolores dolorem natus sit. Velit dolorem voluptas suscipit odit. Omnis ullam consequatur similique voluptas quae eum voluptate quis."], ["name", "Product #6 - 8342"], ["shipping_category_id", 1], ["slug", "product-6-8342"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:41.949884"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:05:41.952043"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.954086' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.955184' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.956462' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.957031' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:05:41.960375"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:05:41.960375"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.961460' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.962011' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.963172' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.963721' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.968042' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.968789' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.970494' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:05:41.973960"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.975342' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.976134' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.976938' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.977866' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:41.978689' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:05:41.984490"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:41.984490"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-8342' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.988794' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:05:41.993610' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:05:42.002729' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:05:42.006526"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:05:42.006526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:05:42.008652"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:05:42.008652"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'pietro_ankunding@friesen.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227425296xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:05:42.011857"], ["email", "pietro_ankunding@friesen.co.uk"], ["encrypted_password", "62691a8bc65a0129337cf113cf6c41477ac69009917ff528132ecc594ffe0d59f4e3c0123f891b745a143cdf8876985cfd9ceaf24f335e8e45b863e87785feb5"], ["login", "pietro_ankunding@friesen.co.uk"], ["password_salt", "JrG1T4a_Q2NTNxjsy9HJ"], ["updated_at", "2014-11-12 20:05:42.011857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:42.014525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:05:42.015967"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:05:42.015967"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R246975130' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R246975130%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R246975130' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '6jQztTRqyQyvaq0TA-WFHg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:05:42.021678"], ["currency", "USD"], ["email", "pietro_ankunding@friesen.co.uk"], ["guest_token", "6jQztTRqyQyvaq0TA-WFHg"], ["number", "R246975130"], ["state", "cart"], ["updated_at", "2014-11-12 20:05:42.021678"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '5FDWVTL8' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:05:42.024266"], ["identifier", "5FDWVTL8"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:05:42.024266"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.040903' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-313030' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-313030"], ["updated_at", "2014-11-12 20:05:42.042313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'edwina@monahan.co.uk' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227424087xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:05:42.058747"], ["email", "edwina@monahan.co.uk"], ["encrypted_password", "bae548d6fb5ff747a6ae4d72c29aad6f12db2711ee9b009fbf9079cd5b162657943639e6ae0f64f532017f4f89ed04fa693440626b44adbaa033dbc8365d2373"], ["login", "edwina@monahan.co.uk"], ["password_salt", "yi8oXi2voPcJK-XseUXw"], ["updated_at", "2014-11-12 20:05:42.058747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:05:42.062023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:42.063330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:05:42.064784"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:05:42.064784"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R170041670' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R170041670%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R170041670' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '7vnBc1scVurBOnTaHo9U5g' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:05:42.071512"], ["currency", "USD"], ["email", "edwina@monahan.co.uk"], ["guest_token", "7vnBc1scVurBOnTaHo9U5g"], ["number", "R170041670"], ["state", "cart"], ["updated_at", "2014-11-12 20:05:42.071512"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:05:42.083704"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:05:42.083704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 770321' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:05:42.086400"], ["description", "Accusamus placeat aut est dignissimos at esse illo neque."], ["name", "TaxCategory - 770321"], ["updated_at", "2014-11-12 20:05:42.086400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:05:42.089840"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:05:42.089840"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-453' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-453' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:05:42.082479"], ["created_at", "2014-11-12 20:05:42.093900"], ["description", "Vel quas soluta ex dolor recusandae amet. Aspernatur ut labore sit molestias. Repellat voluptatem facilis ut excepturi suscipit consequuntur et. Eius nisi officiis doloribus maiores aliquid sed.\nSed consequatur id ut similique occaecati. Autem maiores error quae ipsam est. Nihil reprehenderit repellat consequatur quisquam minus est. Vitae molestiae facere enim et ut illum voluptatibus sapiente. Aut et sed temporibus praesentium molestiae consequuntur saepe ea."], ["name", "Product #7 - 453"], ["shipping_category_id", 1], ["slug", "product-7-453"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:42.093900"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:05:42.096023"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.098036' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.099203' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.100804' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.101461' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:05:42.104916"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:05:42.104916"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.106002' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.106556' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.107652' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.108140' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.112118' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.112619' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.113698' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:05:42.117600"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.118892' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.119841' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.120647' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.121547' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.122273' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:05:42.128229"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:42.128229"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-453' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.132590' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:05:42.137309' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-5480' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-5480' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:05:42.143677"], ["created_at", "2014-11-12 20:05:42.147527"], ["description", "Autem nobis nihil corporis veniam quis eveniet maxime. Accusamus aliquid excepturi qui ipsum animi saepe adipisci. Autem maxime qui et quibusdam. Numquam ratione maiores aut aliquam. Suscipit cumque maiores illo quos aspernatur voluptatibus.\nCorrupti illo omnis necessitatibus commodi nobis. Quibusdam distinctio qui eum eligendi inventore voluptas. Quod exercitationem impedit minus quas non. Est minima dolorum voluptatem ducimus et ipsam.\nNon eum fuga eveniet consectetur. Maxime sit quo tempore aut quisquam qui. Magni sint molestiae dolorem et voluptatum. Perspiciatis quisquam rerum fugit possimus.\nQuae sed et reiciendis recusandae officiis aut. Omnis consequatur consectetur impedit beatae ipsam ullam. Impedit accusamus corporis vel cumque dolorem. Aperiam et sequi repellendus itaque commodi deleniti."], ["name", "Product #8 - 5480"], ["shipping_category_id", 1], ["slug", "product-8-5480"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:42.147527"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:05:42.149778"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.151848' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.152927' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.154143' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.154689' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:05:42.158106"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:05:42.158106"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.159083' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.159610' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.160753' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.161312' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.165378' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.165941' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.166513' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:05:42.168279"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.169040' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.169590' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.170151' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.170761' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.171275' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:05:42.176237"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:42.176237"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-5480' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.180556' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:05:42.185228' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:05:42.194312' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:05:42.198128"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:05:42.198128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:05:42.200234"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:05:42.200234"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jabari.schmidt@ebert.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227428028xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:05:42.203195"], ["email", "jabari.schmidt@ebert.us"], ["encrypted_password", "8604d69feda85dd3fc23d52f9c5cbf9b469d0c850da328e4944db6e2480789aaa359222704cfd3eac3cb973aad1bb32dd17443a52396cbecd16e957e3b734bff"], ["login", "jabari.schmidt@ebert.us"], ["password_salt", "bV8TtxQt3hRmKvR-UbP2"], ["updated_at", "2014-11-12 20:05:42.203195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:42.205816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:05:42.207223"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:05:42.207223"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R456134994' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R456134994%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R456134994' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XMLa3qQ8j-IyqxPua7u94g' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:05:42.212787"], ["currency", "USD"], ["email", "jabari.schmidt@ebert.us"], ["guest_token", "XMLa3qQ8j-IyqxPua7u94g"], ["number", "R456134994"], ["state", "cart"], ["updated_at", "2014-11-12 20:05:42.212787"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'YYTG2YQS' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:05:42.215203"], ["identifier", "YYTG2YQS"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:05:42.215203"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.217492' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-201401' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-201401"], ["updated_at", "2014-11-12 20:05:42.218720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'allene.frami@bergnaum.info' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227427849xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:05:42.233632"], ["email", "allene.frami@bergnaum.info"], ["encrypted_password", "1b309546fb9307090d037a1f66df64a161fc983dabc1ddbc5959bc9cf95f78a171be5de65efea8d7740eb8c1566f8cce6bb0c0fbeeeea3de99a8b7ab14691ca2"], ["login", "allene.frami@bergnaum.info"], ["password_salt", "r3MafgsxtoJwozmiqrKz"], ["updated_at", "2014-11-12 20:05:42.233632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:05:42.237089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:42.238484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:05:42.240021"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:05:42.240021"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R674780589' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R674780589%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R674780589' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'iRO4my1CSj1ydRPp-ATfHg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:05:42.245612"], ["currency", "USD"], ["email", "allene.frami@bergnaum.info"], ["guest_token", "iRO4my1CSj1ydRPp-ATfHg"], ["number", "R674780589"], ["state", "cart"], ["updated_at", "2014-11-12 20:05:42.245612"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:05:42.252754"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:05:42.252754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 822077' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:05:42.255446"], ["description", "Blanditiis doloribus pariatur beatae aut eos."], ["name", "TaxCategory - 822077"], ["updated_at", "2014-11-12 20:05:42.255446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:05:42.258717"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:05:42.258717"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-458' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-458' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:05:42.251589"], ["created_at", "2014-11-12 20:05:42.262460"], ["description", "Nulla consequatur commodi veritatis minus. Enim repudiandae ea odio nisi omnis saepe quo aperiam. Ullam mollitia dignissimos eaque eos sed. Dicta libero aspernatur quibusdam eius ut. Magni quo et non necessitatibus nam earum."], ["name", "Product #9 - 458"], ["shipping_category_id", 1], ["slug", "product-9-458"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:42.262460"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:05:42.265019"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.4ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.267637' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.270530' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.273149' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.274090' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:05:42.279467"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:05:42.279467"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.280799' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.281433' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.282501' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.283039' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.287077' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.287694' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.288268' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:05:42.290091"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.290771' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.291288' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.291757' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.292356' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.292834' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:05:42.297848"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:42.297848"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-458' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.302570' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:05:42.307149' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-7927' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-7927' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:05:42.314367"], ["created_at", "2014-11-12 20:05:42.318189"], ["description", "Voluptas quia maxime qui accusamus in fuga repellat. Cumque qui optio est et eos. Voluptatem aut autem nesciunt fugiat earum qui est. Provident quisquam enim saepe officiis omnis maxime.\nQuia atque nam adipisci voluptas. A asperiores corrupti repellendus saepe. Aut laborum qui autem iste ea. Itaque odio distinctio voluptas et reprehenderit sit autem. Aut laudantium cupiditate ut ipsam non vero voluptatem labore.\nIpsam id sequi et sapiente ad. Quisquam inventore nisi ut voluptatem ad repellendus. Ipsum voluptas iusto eaque illo nemo. Tenetur eligendi corrupti blanditiis iste repellat delectus saepe.\nHic ipsum ut dolores aut officiis. Repellat reiciendis debitis autem et nobis. Ut et veritatis sequi consequuntur. Laborum illum non quae eius voluptates totam architecto.\nBeatae eum accusamus molestiae eius. Omnis illo placeat magni perferendis. Aut beatae tempore qui cupiditate autem. Debitis et unde et optio dolores sint. Suscipit et incidunt ut velit accusantium."], ["name", "Product #10 - 7927"], ["shipping_category_id", 1], ["slug", "product-10-7927"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:42.318189"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:05:42.320365"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.322320' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.323435' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.324719' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.325286' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:05:42.328642"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:05:42.328642"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.329602' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.330114' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.331263' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.331754' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.335727' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.336255' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.336789' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:05:42.338603"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.339375' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.339925' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.340469' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.341099' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:05:42.341602' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:05:42.346314"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:05:42.346314"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-7927' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.350550' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:05:42.355145' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:05:42.364014' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:05:42.367843"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:05:42.367843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:05:42.369891"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:05:42.369891"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'johnpaul@binsstoltenberg.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582274276510xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:05:42.372960"], ["email", "johnpaul@binsstoltenberg.us"], ["encrypted_password", "8950f05247da689eda3e7c0d4a4c5bb35f219d83c93a3d492a872d88efeffc7272209739b6ac267de118b8178b7f9042949e4b1757280bf0914c8ed0c739dc4b"], ["login", "johnpaul@binsstoltenberg.us"], ["password_salt", "cBJsz4cdHgxQ_5HNh8ms"], ["updated_at", "2014-11-12 20:05:42.372960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:42.375639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:05:42.377142"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:05:42.377142"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R345777807' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R345777807%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R345777807' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 't-GGx6CKg9gNLpsM80rX-g' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:05:42.386790"], ["currency", "USD"], ["email", "johnpaul@binsstoltenberg.us"], ["guest_token", "t-GGx6CKg9gNLpsM80rX-g"], ["number", "R345777807"], ["state", "cart"], ["updated_at", "2014-11-12 20:05:42.386790"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7TDQY3KN' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:05:42.390908"], ["identifier", "7TDQY3KN"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:05:42.390908"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.393464' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-131233' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-131233"], ["updated_at", "2014-11-12 20:05:42.394678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ramiro_ward@russel.us' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227623671xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:02.225008"], ["email", "ramiro_ward@russel.us"], ["encrypted_password", "f72b81db54e26789954ecc493dc381d9a131f1a902dc095d5422e4bb3c8169dc5a0d63f1d150ec2b62c568a9dcafc50dc2fd2332f7866036c7ee190591257bba"], ["login", "ramiro_ward@russel.us"], ["password_salt", "6-hAyQ8bQwyw_qi2VxkR"], ["updated_at", "2014-11-12 20:06:02.225008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:06:02.264650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:02.271035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:02.279096"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:02.279096"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R645094794' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R645094794%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R645094794' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XgNOrHJaPyCSk3WvtGIvOw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:06:02.312255"], ["currency", "USD"], ["email", "ramiro_ward@russel.us"], ["guest_token", "XgNOrHJaPyCSk3WvtGIvOw"], ["number", "R645094794"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:02.312255"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:06:02.365735"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:06:02.365735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 361512' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:06:02.375563"], ["description", "Sapiente nobis impedit dolor et totam molestiae quo."], ["name", "TaxCategory - 361512"], ["updated_at", "2014-11-12 20:06:02.375563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:06:02.399500"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:02.399500"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-3159' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-3159' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:02.361535"], ["created_at", "2014-11-12 20:06:02.404909"], ["description", "Voluptatum a dolorem nostrum eveniet. Voluptate excepturi dignissimos qui culpa cupiditate. Veniam quidem ipsa vitae eaque. Corporis aut eum at enim aliquam quis. Aliquid non omnis distinctio ipsum odio magnam magni.\nLaudantium non molestias enim ullam nesciunt modi voluptatibus aut. Laudantium tempore labore incidunt et est odit. Velit voluptatibus aperiam et voluptatum.\nVoluptatibus consequatur impedit et doloribus fugiat est facere in. Et quam et quis omnis eos. Ad sit delectus id qui illo tempore. Quo qui voluptas voluptatem consequatur ipsam aut architecto velit.\nDolor corporis est iste distinctio maiores molestiae non et. Occaecati aliquam commodi optio eius. Velit perspiciatis libero maxime veniam adipisci."], ["name", "Product #1 - 3159"], ["shipping_category_id", 1], ["slug", "product-1-3159"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:02.404909"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:06:02.407861"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.415545' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.416955' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.431074' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.432434' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:02.459984"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:02.459984"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.461302' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.461895' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.463096' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.463604' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.473618' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.474219' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.474770' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:02.476459"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.477672' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.478209' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.478696' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.479246' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.479674' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:02.495420"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:02.495420"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-3159' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.503477' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:02.512407' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-3360' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-3360' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:02.518136"], ["created_at", "2014-11-12 20:06:02.521991"], ["description", "Dolores quia quo quisquam necessitatibus delectus deserunt possimus. Et aperiam dolor quia id possimus. Rerum voluptates sed est commodi et velit. Rerum officia et dolor voluptatem omnis qui.\nPraesentium et molestiae ut aut aspernatur consequatur. Aspernatur ut aut odio voluptas aliquam ducimus illo corporis. Velit quo illum et voluptates mollitia.\nRatione delectus voluptatibus eius quia quam accusamus vero odit. Unde et dolores quas vel cupiditate maxime voluptas recusandae. Cum quia ducimus unde earum."], ["name", "Product #2 - 3360"], ["shipping_category_id", 1], ["slug", "product-2-3360"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:02.521991"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:06:02.582808"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.585079' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.586292' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.587656' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.588214' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:02.591458"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:02.591458"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.592381' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.592876' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.593966' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.594496' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.598182' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.598731' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.599255' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:02.601073"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.601842' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.602336' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.602857' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.603474' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.603929' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:02.608573"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:02.608573"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-3360' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.612648' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:02.617069' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:06:02.633366' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:02.654920"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:06:02.654920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:02.667661"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:06:02.667661"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'neil@tromp.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415822762442xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:02.672229"], ["email", "neil@tromp.name"], ["encrypted_password", "303897fdccf7467d6cf832658e4a7cf5465075e7878f3201c4284d53c1a1f8c561e5ff8fc316ed6afc7032ff58bb386e311f3504210c72c087614696a1c837db"], ["login", "neil@tromp.name"], ["password_salt", "5yHNPYroxxesBGEKBYCi"], ["updated_at", "2014-11-12 20:06:02.672229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:02.674917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:02.676344"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:06:02.676344"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R785831897' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R785831897%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R785831897' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NyTau5A-Gw_q2Ro6Em_bNA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:06:02.681744"], ["currency", "USD"], ["email", "neil@tromp.name"], ["guest_token", "NyTau5A-Gw_q2Ro6Em_bNA"], ["number", "R785831897"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:02.681744"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'AH2J544R' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:06:02.694051"], ["identifier", "AH2J544R"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:06:02.694051"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.697063' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-035530' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-035530"], ["updated_at", "2014-11-12 20:06:02.698409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mercedes@stracke.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227629053xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:02.715823"], ["email", "mercedes@stracke.biz"], ["encrypted_password", "47aed90670297665a78bd470bcb6b32e99f8fa04e9fa20f72df97da8a69578e26b6bc04dee175dec30ce9ca0083099c634d636a75da3fea97b65ef63bd4fef5e"], ["login", "mercedes@stracke.biz"], ["password_salt", "Vprbin6_8CJjUFwVaBrt"], ["updated_at", "2014-11-12 20:06:02.715823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:06:02.718968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:02.720405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:02.721949"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:02.721949"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R655095229' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R655095229%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R655095229' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'qQhgK_WNA3gGCu29sBeNCg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:06:02.727737"], ["currency", "USD"], ["email", "mercedes@stracke.biz"], ["guest_token", "qQhgK_WNA3gGCu29sBeNCg"], ["number", "R655095229"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:02.727737"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:06:02.735601"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:06:02.735601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 289478' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:06:02.738331"], ["description", "Sunt facere eos maiores exercitationem nihil corrupti."], ["name", "TaxCategory - 289478"], ["updated_at", "2014-11-12 20:06:02.738331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:06:02.741690"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:02.741690"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-9738' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-9738' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:02.734358"], ["created_at", "2014-11-12 20:06:02.745415"], ["description", "Ut aut possimus vel quae quam alias aut. Odit sit optio quo soluta rem et qui numquam. Quae qui repellendus fuga molestiae illo.\nQuo sint at excepturi veniam vero repellendus rerum. Nemo perferendis expedita harum et. Beatae non saepe consequatur iusto ea corrupti velit voluptates. Voluptatum qui non magnam quis. Saepe at aut amet eaque consequatur."], ["name", "Product #3 - 9738"], ["shipping_category_id", 1], ["slug", "product-3-9738"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:02.745415"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:06:02.747795"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.750089' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.751282' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.752824' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.753496' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:02.759357"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:02.759357"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.761308' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.762201' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.764093' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.764914' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.770015' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.770562' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.771075' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:02.772675"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.773339' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.773806' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.774331' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.774895' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.775336' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:02.780031"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:02.780031"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-9738' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.784706' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:02.789337' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-7407' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-7407' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:02.793652"], ["created_at", "2014-11-12 20:06:02.797242"], ["description", "Vitae fuga illum labore consectetur tenetur. Sit est aut molestiae consequuntur non dolor dolorum officiis. Dicta sunt sint consequatur ipsam labore nisi sapiente. Nulla ut recusandae aut consectetur ullam et id ut."], ["name", "Product #4 - 7407"], ["shipping_category_id", 1], ["slug", "product-4-7407"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:02.797242"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:06:02.799274"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.801209' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.802247' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.803508' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.804080' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:02.807354"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:02.807354"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.808304' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.808924' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.810049' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.810592' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.814532' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.815074' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.815692' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:02.819823"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.821161' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.822187' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.823124' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.824047' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.824797' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:02.830958"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:02.830958"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-7407' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.835203' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:02.840021' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:06:02.848978' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:02.852744"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:06:02.852744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:02.855055"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:06:02.855055"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kallie@hoeger.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415822762184xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:02.858561"], ["email", "kallie@hoeger.info"], ["encrypted_password", "c31ade8e061b41a57721f594e2ff2d910fddcef53c611aea86a6de02051c96ab32bc19cb63a71d1367530c126fcd84fc934dbf669657d1d1abdaa9df627a2b57"], ["login", "kallie@hoeger.info"], ["password_salt", "kAtPsEnTkEGaU1a7BSZd"], ["updated_at", "2014-11-12 20:06:02.858561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:02.861214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:02.862654"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:06:02.862654"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R997691284' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R997691284%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R997691284' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'K8EdSYx1l3cDAUWJihX4eA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:06:02.868081"], ["currency", "USD"], ["email", "kallie@hoeger.info"], ["guest_token", "K8EdSYx1l3cDAUWJihX4eA"], ["number", "R997691284"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:02.868081"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '9Z6Z2SMZ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:06:02.870462"], ["identifier", "9Z6Z2SMZ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:06:02.870462"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.872821' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-343331' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-343331"], ["updated_at", "2014-11-12 20:06:02.874042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'zella_corwin@dooleywisoky.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227628115xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:02.891517"], ["email", "zella_corwin@dooleywisoky.ca"], ["encrypted_password", "714fb7c91e4093a531bf4ac74e04d9b391f2e09ca41f1ebf53f450eb6f94dabccb0db39ed019eac65ce70cb32719b96be4fbf778bf5122718ea09452f7995738"], ["login", "zella_corwin@dooleywisoky.ca"], ["password_salt", "dJy89wXJGF56YHDet926"], ["updated_at", "2014-11-12 20:06:02.891517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:06:02.895833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:02.897147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:02.898509"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:02.898509"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R378727071' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R378727071%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R378727071' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'B-gjr7WZqGHf7uWQoVoBrw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:06:02.904009"], ["currency", "USD"], ["email", "zella_corwin@dooleywisoky.ca"], ["guest_token", "B-gjr7WZqGHf7uWQoVoBrw"], ["number", "R378727071"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:02.904009"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:06:02.912866"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:06:02.912866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 816986' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:06:02.915636"], ["description", "Rerum assumenda incidunt et ut harum rerum sit."], ["name", "TaxCategory - 816986"], ["updated_at", "2014-11-12 20:06:02.915636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:06:02.918969"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:02.918969"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-1922' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-1922' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:02.911713"], ["created_at", "2014-11-12 20:06:02.922877"], ["description", "At officia explicabo itaque quis. Incidunt et qui sunt est ex quia illo. Omnis voluptatem dolore soluta vitae dolores optio itaque id. Laboriosam laborum non id quod alias. Suscipit perferendis atque et vel in.\nError blanditiis quibusdam qui tenetur officia velit. Ratione voluptatem et est quia ut. Ut est nemo quidem qui laborum aut dicta eos. Ex quos odit numquam consequatur facere.\nCorporis accusamus aut laudantium vitae necessitatibus tempore ipsa qui. Vero fuga ducimus sit esse. Voluptatem ratione numquam at nam labore quisquam nihil. Inventore accusamus ratione sed libero delectus.\nEst nobis aperiam eos saepe corrupti. Rerum consequatur necessitatibus amet quia et accusamus dolor illum. Et placeat nulla animi a et in."], ["name", "Product #5 - 1922"], ["shipping_category_id", 1], ["slug", "product-5-1922"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:02.922877"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:06:02.925560"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.927830' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.928995' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.930303' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.930866' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:02.934239"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:02.934239"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.935199' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.935712' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.936837' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.937324' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.941210' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.941745' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.942288' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:02.944081"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.944808' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.945321' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.945843' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.946464' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.946898' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:02.951599"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:02.951599"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-1922' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.956255' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:02.960893' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-8446' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-8446' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:02.966578"], ["created_at", "2014-11-12 20:06:02.970240"], ["description", "Soluta quis voluptas tenetur praesentium unde. Facere qui odio consequuntur error quisquam facilis consectetur nihil. Sunt dolores ea non voluptatem rerum natus vero. Quisquam culpa a itaque eveniet aliquam nostrum aperiam.\nSimilique ut ducimus magni atque omnis. Veniam error facere iure voluptatem voluptas. Qui voluptates deserunt officia necessitatibus non.\nNemo ut voluptas reiciendis voluptatem consectetur. Qui amet vitae illo adipisci. Quidem ducimus quia quibusdam laborum enim nesciunt. Est incidunt voluptatem aliquam vel nostrum. Quam neque pariatur fuga officia architecto."], ["name", "Product #6 - 8446"], ["shipping_category_id", 1], ["slug", "product-6-8446"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:02.970240"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:06:02.972401"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.974332' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.975372' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.976602' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.977161' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:02.980456"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:02.980456"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.981400' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.981914' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.983075' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.983573' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.987413' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.987959' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.988482' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:02.990243"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.990967' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.991526' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.992080' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.992739' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:02.993250' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:02.998119"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:02.998119"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-8446' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.002595' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:03.007441' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:06:03.016296' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:03.020078"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:06:03.020078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:03.022135"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:06:03.022135"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'robin.streich@senger.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227633296xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:03.025156"], ["email", "robin.streich@senger.com"], ["encrypted_password", "da4c079c6510187b0986d27de201efd1fd1b2c9c30944eeaf564d2d186a2f5fd78d17f4723bebe0a80af37b5af2090e189662eed9e56ce0faf2e6503f5d084a2"], ["login", "robin.streich@senger.com"], ["password_salt", "xyXCpQEQfQtQzue6dyxW"], ["updated_at", "2014-11-12 20:06:03.025156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:03.027811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:03.029201"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:06:03.029201"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R840137878' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R840137878%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R840137878' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'FiLucUP3fJxIF8upzyPQCg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:06:03.034642"], ["currency", "USD"], ["email", "robin.streich@senger.com"], ["guest_token", "FiLucUP3fJxIF8upzyPQCg"], ["number", "R840137878"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:03.034642"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'NDR8KD7L' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:06:03.037053"], ["identifier", "NDR8KD7L"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:06:03.037053"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.053213' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-345244' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-345244"], ["updated_at", "2014-11-12 20:06:03.054788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jermaine.schmitt@stammkirlin.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227636467xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:03.067799"], ["email", "jermaine.schmitt@stammkirlin.us"], ["encrypted_password", "540a05b99a358abf9fea9d63b089e9232a61e6e0f7186dda944a54ae442ad5955a2369b0e2a5c8287db5513661aec938f72c3121b162a9a89098d351510f44df"], ["login", "jermaine.schmitt@stammkirlin.us"], ["password_salt", "2WX8xT-WAF4HD5NzZ-U-"], ["updated_at", "2014-11-12 20:06:03.067799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:06:03.070776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:03.072160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:03.073705"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:03.073705"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R642212063' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R642212063%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R642212063' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bg50AB6jKGVHJLb-r-NiCw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:06:03.079180"], ["currency", "USD"], ["email", "jermaine.schmitt@stammkirlin.us"], ["guest_token", "bg50AB6jKGVHJLb-r-NiCw"], ["number", "R642212063"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:03.079180"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:06:03.088847"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:06:03.088847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 727366' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:06:03.091489"], ["description", "Et similique non recusandae porro sit et."], ["name", "TaxCategory - 727366"], ["updated_at", "2014-11-12 20:06:03.091489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:06:03.094721"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:03.094721"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-5880' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-5880' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:03.087737"], ["created_at", "2014-11-12 20:06:03.098245"], ["description", "Iure totam quidem amet excepturi aut. Cum quia sit nesciunt quia omnis necessitatibus labore repellendus. Quidem eius atque et aliquam non et omnis sint. Sequi rerum asperiores ullam ipsa qui consequatur fugit totam.\nEx sint nisi quo rerum cumque. Saepe cum vero dicta voluptas. Odit unde libero impedit quas ea. Aut a neque consequatur qui nostrum est architecto.\nEst eos distinctio quibusdam enim quo sed. Et unde veritatis eum blanditiis. Expedita autem deleniti ex qui itaque cupiditate et. Quae voluptatem aspernatur culpa eveniet harum ullam rerum officia. Optio magnam consequatur sed dolorem nam quia omnis voluptates.\nQui quia sunt numquam autem recusandae. Quidem atque quia neque et culpa aut cupiditate inventore. Et ab nostrum assumenda enim qui voluptas est dignissimos. Atque eveniet aut quis sequi debitis. Nobis odio mollitia eius ut quae ut earum.\nMolestiae autem voluptatem qui dolorem voluptas dolorum. Earum voluptate iste veritatis cumque veniam voluptatem maiores. Temporibus numquam sit blanditiis autem tenetur illum aspernatur facere. Dolor perferendis est omnis rerum animi earum dolores."], ["name", "Product #7 - 5880"], ["shipping_category_id", 1], ["slug", "product-7-5880"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:03.098245"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:06:03.100578"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.102695' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.103897' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.105361' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.105980' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:03.109668"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:03.109668"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.110715' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.111295' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.112440' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.112965' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.117075' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.117679' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.118307' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:03.120018"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.120760' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.121290' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.121808' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.122429' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.122912' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:03.127610"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:03.127610"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-5880' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.131786' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:03.136383' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-7589' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-7589' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:03.141751"], ["created_at", "2014-11-12 20:06:03.145396"], ["description", "Sit vitae sint labore sed cum voluptatibus. Itaque vel enim nisi officiis voluptates aut. Fugiat consectetur et asperiores consequatur dignissimos velit ducimus. Quis ut fugit ex commodi quibusdam quidem laudantium magnam.\nNecessitatibus tenetur voluptatem ipsum cupiditate repellat. Rem voluptatem similique ab accusamus consequatur. Amet qui similique eaque cumque voluptatem nihil. Aut recusandae quam architecto et error perferendis officiis.\nNesciunt officia debitis velit voluptate. Dolorem sint labore ut tempora animi voluptatem cum molestiae. Fugiat officiis ut et explicabo natus perspiciatis qui."], ["name", "Product #8 - 7589"], ["shipping_category_id", 1], ["slug", "product-8-7589"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:03.145396"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:06:03.147483"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.149441' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.150465' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.151649' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.152188' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:03.155460"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:03.155460"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.156876' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.157407' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.158513' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.159002' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.163242' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.163830' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.164421' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:03.166155"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.166872' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.167398' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.167936' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.168547' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.169039' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:03.173917"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:03.173917"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-7589' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.177951' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:03.182384' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:06:03.191082' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:03.194741"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:06:03.194741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:03.196709"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:06:03.196709"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'frederique.tremblay@windler.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227633438xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:03.199554"], ["email", "frederique.tremblay@windler.info"], ["encrypted_password", "eeafd5a579b9ecb5bfa851ca22c87c4bc97117897d7621753621f7f76c458684d07ba6497effaa4c05c40854d6001ad89a251d7b745735e6869c6bd6c2bf1cf3"], ["login", "frederique.tremblay@windler.info"], ["password_salt", "Htwu8XgPp4zmUsYX1L1Z"], ["updated_at", "2014-11-12 20:06:03.199554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:03.202073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:03.203431"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:06:03.203431"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R741778060' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R741778060%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R741778060' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Av-sD9UNi25xZc7ktyBaFg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:06:03.208679"], ["currency", "USD"], ["email", "frederique.tremblay@windler.info"], ["guest_token", "Av-sD9UNi25xZc7ktyBaFg"], ["number", "R741778060"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:03.208679"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '2T4DPMS6' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:06:03.211413"], ["identifier", "2T4DPMS6"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:06:03.211413"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.213580' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-154555' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-154555"], ["updated_at", "2014-11-12 20:06:03.214738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'garry@lakin.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227639829xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:03.231760"], ["email", "garry@lakin.co.uk"], ["encrypted_password", "1e5707242e768e2634e6d79898b8969fbd6204af96a4cd7f6e473179b743a20eb0d02906e2440b1bb7220cc7c25e2fc445eb2fd409c98f574abb5c52d5e3b7c0"], ["login", "garry@lakin.co.uk"], ["password_salt", "KQ1GBTaFRPvsK7dughEM"], ["updated_at", "2014-11-12 20:06:03.231760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:06:03.236045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:03.237422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:03.238796"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:03.238796"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R291206623' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R291206623%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R291206623' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'KhrQp2E26SEO2NYXlohCLA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:06:03.244329"], ["currency", "USD"], ["email", "garry@lakin.co.uk"], ["guest_token", "KhrQp2E26SEO2NYXlohCLA"], ["number", "R291206623"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:03.244329"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:06:03.252261"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:06:03.252261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 365170' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:06:03.254857"], ["description", "Et sint corrupti quam natus provident cupiditate repellat."], ["name", "TaxCategory - 365170"], ["updated_at", "2014-11-12 20:06:03.254857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:06:03.258385"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:03.258385"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-1228' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-1228' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:03.250955"], ["created_at", "2014-11-12 20:06:03.262530"], ["description", "Voluptates id enim et excepturi. Voluptatibus possimus fugit facilis dolorem eius ut. Qui nobis dolores nemo est et laborum culpa. Itaque voluptatem eum atque et amet.\nEa consequuntur consequatur sed praesentium placeat temporibus. Sequi debitis recusandae et aut omnis ullam consectetur laudantium. Et esse cumque nihil reprehenderit nam cupiditate. Est illum veniam quis fugit voluptatem voluptatem non. Est eum nobis est praesentium ut."], ["name", "Product #9 - 1228"], ["shipping_category_id", 1], ["slug", "product-9-1228"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:03.262530"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:06:03.265060"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.267087' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.268246' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.269553' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.270159' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:03.273458"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:03.273458"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.274413' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.274932' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.276056' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.276631' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.280896' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.281466' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.282041' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:03.283737"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.284470' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.284975' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.285515' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.286147' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.286668' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:03.292231"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:03.292231"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-1228' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.297299' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:03.302054' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-6266' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-6266' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:03.307528"], ["created_at", "2014-11-12 20:06:03.311458"], ["description", "Est ipsum saepe quia esse et aut ratione. Dolor excepturi dolor necessitatibus aspernatur. Excepturi est quisquam fuga nobis provident aut.\nCulpa veritatis quasi molestiae quia rerum dolorum. Deserunt incidunt voluptas inventore aspernatur cupiditate explicabo. Est quia quisquam necessitatibus porro expedita. Enim quam ad nihil et ipsum inventore nulla.\nRerum modi fugit dolore corrupti reprehenderit. At eum minima et molestiae quibusdam voluptas. Ratione magni suscipit ex non."], ["name", "Product #10 - 6266"], ["shipping_category_id", 1], ["slug", "product-10-6266"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:03.311458"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:06:03.313805"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.315846' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.316967' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.318284' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.318841' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:03.322310"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:03.322310"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.323352' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.323947' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.325113' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.325627' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.329740' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.330347' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.331806' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:03.334789"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.336160' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.337126' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.337895' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.338845' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.339565' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:03.345794"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:03.345794"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-6266' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.350253' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:03.354762' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:06:03.363234' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (3.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kaitlyn@purdy.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582276354710xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:03.388042"], ["email", "kaitlyn@purdy.co.uk"], ["encrypted_password", "4df15dc7ce2ef469f43556dc3680775aa5b770a49d3aaf48013ee96686ab260457ac0d6d3705f2a0c2643db515af9681b8de2cf684e54dc0697313f6d8636214"], ["login", "kaitlyn@purdy.co.uk"], ["password_salt", "ZeynKcjRTkDbwWs_YNz-"], ["updated_at", "2014-11-12 20:06:03.388042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:06:03.392572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:03.394096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:03.395518"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:03.395518"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R415786985' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R415786985%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R415786985' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '53u8U_LP3n0EbOaN9X7IVg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:06:03.401317"], ["currency", "USD"], ["email", "kaitlyn@purdy.co.uk"], ["guest_token", "53u8U_LP3n0EbOaN9X7IVg"], ["number", "R415786985"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:03.401317"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:06:03.410077"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:06:03.410077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 48800' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:06:03.412735"], ["description", "Iste vel expedita magni ratione voluptas."], ["name", "TaxCategory - 48800"], ["updated_at", "2014-11-12 20:06:03.412735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:06:03.416011"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:03.416011"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-8465' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-8465' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:03.409004"], ["created_at", "2014-11-12 20:06:03.419959"], ["description", "Unde tenetur ut corrupti voluptatum maiores. Ratione fuga dolores et repellendus ut saepe libero. Et sunt aut magnam dolorem dolorem reprehenderit veritatis. Sed et et reiciendis sit error labore odio rerum.\nAut et nulla qui libero aut. Nisi et ratione sed odit asperiores pariatur ut velit. Et cum ipsam numquam explicabo deleniti. Sint optio accusantium totam doloremque vel aut. Quibusdam officiis maiores dicta eum voluptates odit nam.\nReiciendis sed voluptatem sint non porro. Sed ab ut rem id quos et qui. Iusto animi voluptatem esse nesciunt consequatur est quia quo.\nLibero quo vel nostrum illo aut eos occaecati. Vel adipisci sit minus quia. Commodi molestias magnam quae est deserunt. Officiis neque velit ea minus fugiat aliquid ab voluptatem."], ["name", "Product #11 - 8465"], ["shipping_category_id", 1], ["slug", "product-11-8465"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:03.419959"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:06:03.422421"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.424466' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.425606' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.427070' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.427689' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:03.431386"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:03.431386"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.432396' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.433028' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.434172' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.434664' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.438579' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.440179' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.441507' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:03.444593"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.445765' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.446499' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.447324' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.448226' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.448971' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:03.454398"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:03.454398"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-8465' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.458650' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:03.463348' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-365' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-365' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:03.469973"], ["created_at", "2014-11-12 20:06:03.473844"], ["description", "Optio atque facere quo sit possimus velit. Dolorem quo minus doloremque modi sapiente doloribus numquam. Porro tempore nobis harum dolore.\nUllam ut sit dolorem minima. Sequi facilis enim consectetur nulla ut et non. Quod quo eos molestiae illum dolore recusandae corrupti. Cum nemo voluptatem autem alias inventore quam in ut.\nDoloribus ut perspiciatis aliquid velit rem. Dignissimos repellat dolores iure vel. Corrupti vitae architecto nam ut magnam voluptatem. Voluptas repellendus voluptatem eius corrupti vero nisi cum.\nConsequuntur non accusantium eos eos nesciunt voluptate vel qui. Eum laborum et qui et ducimus fugiat consequatur. Quia ea repellendus vero reprehenderit.\nEligendi voluptas unde expedita atque quas et ad. Quia est earum aliquam nisi eum rerum. Ipsam ex dicta reprehenderit iure autem delectus. Ipsum sit ab provident quibusdam."], ["name", "Product #12 - 365"], ["shipping_category_id", 1], ["slug", "product-12-365"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:03.473844"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:06:03.476000"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.477974' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.479033' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.480274' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.480817' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:03.484188"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:03.484188"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.485171' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.485683' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.486801' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.487299' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.491115' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.491657' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.492181' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:03.493991"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.494706' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.495241' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.495788' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.496430' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:03.496929' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:03.501704"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:03.501704"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-365' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.505803' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:03.510453' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:06:03.519233' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:03.523063"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:06:03.523063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:03.525223"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:06:03.525223"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shanelle@emmerichterry.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582276330111xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:03.528204"], ["email", "shanelle@emmerichterry.co.uk"], ["encrypted_password", "a942f9a39678c3532a3a216039339cd40807bfb5c6403deeb5977bb185f6359f3f445bed49912403d002154c6742635f6b90f36915991855ecead4b9aed982ce"], ["login", "shanelle@emmerichterry.co.uk"], ["password_salt", "ZT9KypeHn7DUpDJsXUZc"], ["updated_at", "2014-11-12 20:06:03.528204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:03.530847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:03.532268"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:06:03.532268"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R784986724' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R784986724%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R784986724' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'fK3DmALgRgFtAN5mz4-uhQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:06:03.552997"], ["currency", "USD"], ["email", "shanelle@emmerichterry.co.uk"], ["guest_token", "fK3DmALgRgFtAN5mz4-uhQ"], ["number", "R784986724"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:03.552997"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'E6WETGXR' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:06:03.555555"], ["identifier", "E6WETGXR"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:06:03.555555"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.557747' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-545300' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-545300"], ["updated_at", "2014-11-12 20:06:03.558933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (3.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'margie@monahan.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227815571xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:21.036174"], ["email", "margie@monahan.name"], ["encrypted_password", "c1f43bdf236801c3eba3a2d0ba4757df5bdfca1fba3847552673ebce23c7203913e196ecd43317c58d82b6e27df9ed3ff972161c3a71d7d80c81e52f13a2f8fa"], ["login", "margie@monahan.name"], ["password_salt", "XcBELhkucTXERGNTKbA5"], ["updated_at", "2014-11-12 20:06:21.036174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:06:21.068565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:21.074534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:21.084652"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:21.084652"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R529117890' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R529117890%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R529117890' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Xn9S5oh5_jeUGp3wHjg23A' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:06:21.121541"], ["currency", "USD"], ["email", "margie@monahan.name"], ["guest_token", "Xn9S5oh5_jeUGp3wHjg23A"], ["number", "R529117890"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:21.121541"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:06:21.173962"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:06:21.173962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 388575' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:06:21.183449"], ["description", "Ea necessitatibus et ut laudantium."], ["name", "TaxCategory - 388575"], ["updated_at", "2014-11-12 20:06:21.183449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:06:21.206306"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:21.206306"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-2734' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-2734' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:21.170088"], ["created_at", "2014-11-12 20:06:21.211182"], ["description", "Odit autem et necessitatibus est quasi aut et magnam. Voluptates eligendi eum ducimus necessitatibus qui. Ad possimus libero voluptas dolores quibusdam aut nemo. Laboriosam quis sequi repudiandae consequatur architecto velit. Recusandae veritatis exercitationem occaecati eum aut labore.\nOfficia non quas iusto quo dicta rem dolorem accusantium. In laborum voluptatem dicta aliquam neque. Et commodi asperiores qui molestiae rem similique explicabo corporis. Reprehenderit temporibus labore iste sed sunt. Id aut itaque sint exercitationem eum.\nUt non qui accusantium natus doloribus debitis. Quo dolorem suscipit nihil dolores quisquam quis adipisci repellat. Aut illo dolor aliquid voluptatem in qui voluptatum fugiat.\nNemo quo praesentium dolor iste autem quia corporis mollitia. Illum incidunt tempora ab error magni fuga quam. Delectus rerum odio ut harum. Accusantium ut laborum aliquam tempora labore explicabo veniam. Sunt tempora exercitationem omnis nihil animi officia.\nDeleniti aut odit voluptatem ab. Quia est quaerat optio ipsa architecto quis sunt. Ab sit laudantium cupiditate natus harum quidem velit expedita. Cum aut quia ut mollitia quasi nisi et ex. Praesentium modi non dolores doloremque ut omnis minus."], ["name", "Product #1 - 2734"], ["shipping_category_id", 1], ["slug", "product-1-2734"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.211182"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:06:21.214152"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.221200' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.222462' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.236137' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.237320' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:21.258685"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:21.258685"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.259860' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.260431' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.261586' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.262078' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.271847' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.272424' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.272950' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:21.274621"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.275722' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.276185' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.276627' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.277168' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.277585' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:21.298852"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.298852"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-2734' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.306942' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:21.315197' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-412' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-412' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:21.321623"], ["created_at", "2014-11-12 20:06:21.325212"], ["description", "Itaque dolorem et provident odit sequi deleniti. Magnam culpa fugiat ad quia. Incidunt tempore aliquam aut eum quo.\nIn numquam id impedit inventore ut mollitia. Id ut exercitationem natus in sed et. Aliquam laudantium velit asperiores ex omnis est. Eligendi dolores in beatae quod. Dolorum temporibus illo similique consectetur omnis.\nAssumenda et doloremque a repellat et eius. Ut qui aut occaecati et quisquam et. Cum fugiat quam rerum a quod nobis praesentium. Dolorum sit delectus temporibus ut ab voluptatem necessitatibus. Sed in voluptatem totam fugiat.\nIn quis qui vel vitae similique quam ducimus occaecati. Ipsa ullam et ipsum est et dignissimos odit cumque. Soluta libero voluptates consequatur assumenda magni alias quia animi. Aperiam ea dolorem consequuntur molestiae."], ["name", "Product #2 - 412"], ["shipping_category_id", 1], ["slug", "product-2-412"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.325212"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:06:21.327296"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.329190' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.330209' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.331416' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.331932' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:21.392701"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:21.392701"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.393741' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.394313' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.395459' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.395946' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.399745' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.400263' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.400820' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:21.402578"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.403321' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.403799' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.404335' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.404907' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.405375' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:21.409885"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.409885"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-412' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.413963' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:21.418434' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:06:21.435214' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:21.456824"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:06:21.456824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:21.469661"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:06:21.469661"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'arely.pagac@williamson.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227817052xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:21.474267"], ["email", "arely.pagac@williamson.info"], ["encrypted_password", "51eec1e76936749b42d127f464433c3e00dc4403c0709eae042674ffc42c9b59edc1d18a013db4a46b28bbe6a8db200062930ace0b471b5d1656c789849c54af"], ["login", "arely.pagac@williamson.info"], ["password_salt", "qt7jDkByR21NnLmGedHH"], ["updated_at", "2014-11-12 20:06:21.474267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:21.476839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:21.478190"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:06:21.478190"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R935526600' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R935526600%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R935526600' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NGt5i6E5ISNr1_UZGIcZUw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:06:21.483636"], ["currency", "USD"], ["email", "arely.pagac@williamson.info"], ["guest_token", "NGt5i6E5ISNr1_UZGIcZUw"], ["number", "R935526600"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:21.483636"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'ZY5TXJR2' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:06:21.495643"], ["identifier", "ZY5TXJR2"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:06:21.495643"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.498794' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-200042' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-200042"], ["updated_at", "2014-11-12 20:06:21.500142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'gerald@gorczany.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227817123xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:21.521660"], ["email", "gerald@gorczany.ca"], ["encrypted_password", "fcc0fbd08200123d4e651cbe89538e63625d2869a04c4046755c309988355484a25715bd9e5954081da9fa88c6465b92f1dd3ea17b202d2bd562404daac4bba8"], ["login", "gerald@gorczany.ca"], ["password_salt", "8no6uRCoHaVzbbe1ov3W"], ["updated_at", "2014-11-12 20:06:21.521660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:06:21.526005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:21.527188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:21.528585"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:21.528585"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R821479452' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R821479452%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R821479452' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'P5NUh80S3Lvtk06G9a2C-g' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:06:21.534288"], ["currency", "USD"], ["email", "gerald@gorczany.ca"], ["guest_token", "P5NUh80S3Lvtk06G9a2C-g"], ["number", "R821479452"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:21.534288"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:06:21.542033"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:06:21.542033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 757140' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:06:21.545159"], ["description", "Culpa aut iure et et soluta."], ["name", "TaxCategory - 757140"], ["updated_at", "2014-11-12 20:06:21.545159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:06:21.548492"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:21.548492"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-9522' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-9522' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:21.540897"], ["created_at", "2014-11-12 20:06:21.552388"], ["description", "Tempora earum soluta dolorum nesciunt ducimus itaque fuga. Quia recusandae quia rem saepe aliquid aspernatur non. Cumque in et qui voluptatum aspernatur enim. Qui possimus rerum dolores rerum ipsam ducimus. Eos et aut ipsa maiores repellendus."], ["name", "Product #3 - 9522"], ["shipping_category_id", 1], ["slug", "product-3-9522"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.552388"]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:06:21.557366"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.561006' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.562789' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.564628' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.565396' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:21.569024"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:21.569024"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.570126' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.570761' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.572025' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.572516' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.576534' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.577146' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.577761' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:21.579543"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.580321' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.580832' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.581341' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.581938' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.582445' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:21.587096"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.587096"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-9522' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.591541' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:21.596489' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2861' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2861' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:21.603537"], ["created_at", "2014-11-12 20:06:21.607269"], ["description", "Ea voluptatem quae odio similique omnis. Quibusdam qui saepe aperiam dicta hic. Quam placeat ipsam dolor debitis molestiae qui. Incidunt cumque ea dolor molestias quaerat.\nSit quis non voluptas qui sapiente omnis. Soluta eum aliquid minima mollitia quo. Aut esse id aperiam quo distinctio quasi excepturi. Quisquam nostrum ut voluptatem delectus a asperiores quis. Ea dolorem suscipit qui omnis incidunt repellat.\nDolorum dicta rem omnis praesentium libero mollitia ad. Velit earum animi omnis voluptas fugiat dicta praesentium soluta. Enim veniam aliquam fuga corrupti.\nQuo quia optio distinctio vitae enim quam reprehenderit et. Quibusdam voluptas eveniet ut quia tenetur. Officiis quis necessitatibus nostrum asperiores nam sit. Reprehenderit excepturi sunt quibusdam et deserunt aperiam. Dolorem pariatur dolores omnis nesciunt perspiciatis placeat.\nItaque repellendus tenetur et atque. Ratione nulla dolor corporis iure sed esse. Non voluptas rem non omnis quisquam."], ["name", "Product #4 - 2861"], ["shipping_category_id", 1], ["slug", "product-4-2861"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.607269"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:06:21.609483"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.611443' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.612497' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.613708' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.614241' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:21.617535"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:21.617535"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.618538' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.619030' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.620152' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.620635' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.624321' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.624839' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.625388' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:21.628862"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.630219' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.631221' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.632216' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.633204' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.633930' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:21.640368"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.640368"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2861' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.644660' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:21.649255' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:06:21.657911' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:21.661508"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:06:21.661508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:21.663519"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:06:21.663519"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lacy_christiansen@millerlind.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227819744xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:21.666442"], ["email", "lacy_christiansen@millerlind.ca"], ["encrypted_password", "98b6baaac474d4e8495c49e4aff391ae26924e419bc7f341333c8cde49456de2a9e5273d32632ac790ed5f32120088f6ea5f0299e2d0ce3cf0d0030cf103a93f"], ["login", "lacy_christiansen@millerlind.ca"], ["password_salt", "zJbF9ULsexymu3eDE8o2"], ["updated_at", "2014-11-12 20:06:21.666442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:21.668941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:21.670295"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:06:21.670295"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153123569' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R153123569%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153123569' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ety4Ojjxh6eczx-BdXbTJw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:06:21.675672"], ["currency", "USD"], ["email", "lacy_christiansen@millerlind.ca"], ["guest_token", "ety4Ojjxh6eczx-BdXbTJw"], ["number", "R153123569"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:21.675672"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '3WW4EGKU' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:06:21.678065"], ["identifier", "3WW4EGKU"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:06:21.678065"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.680227' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-241132' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-241132"], ["updated_at", "2014-11-12 20:06:21.681367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tyreek.kihn@reilly.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227819315xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:21.698276"], ["email", "tyreek.kihn@reilly.ca"], ["encrypted_password", "ccd1a8a22e2415e87c8c6e0c1bea2c22fa23fac728df7f9caabac9f6a4edffbc7d3ca8c8dea41ad75a57c7f121058631757db6f4783d88c5d48d769c97130825"], ["login", "tyreek.kihn@reilly.ca"], ["password_salt", "9uMxzRzqryTdy1zwpAHJ"], ["updated_at", "2014-11-12 20:06:21.698276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:06:21.702521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:21.703913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:21.705317"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:21.705317"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R912955092' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R912955092%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R912955092' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NNdqdsf-n8x6ffsB2CJ0nA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:06:21.710980"], ["currency", "USD"], ["email", "tyreek.kihn@reilly.ca"], ["guest_token", "NNdqdsf-n8x6ffsB2CJ0nA"], ["number", "R912955092"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:21.710980"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:06:21.720851"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:06:21.720851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 515444' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:06:21.723476"], ["description", "Non quasi voluptatem quia facere aut voluptates ut."], ["name", "TaxCategory - 515444"], ["updated_at", "2014-11-12 20:06:21.723476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:06:21.726738"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:21.726738"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-9843' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-9843' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:21.719776"], ["created_at", "2014-11-12 20:06:21.730601"], ["description", "Sit numquam voluptas perferendis excepturi omnis qui doloremque. Enim error et voluptate nihil laboriosam perspiciatis. Velit sed ab illum qui sint similique qui quibusdam. Quod velit dolorem provident necessitatibus. Non magni hic nostrum enim neque impedit.\nAperiam expedita ea iste voluptatem ipsum distinctio. Dolores voluptatibus aut quas veritatis voluptas. Omnis rerum quis eos eos. Qui aspernatur nisi repellat doloremque aut. Est sunt aut deleniti id quos.\nNihil nobis ut sit eveniet modi. Sed qui commodi est aut accusantium. Iure qui sit accusamus nobis et porro aliquid. Quia velit labore ut dolorem debitis non esse molestiae. Tenetur hic at reprehenderit qui.\nNumquam architecto ea eum nihil. Ut blanditiis quia qui labore libero rerum veniam. Dolorem ut suscipit necessitatibus voluptatem quasi.\nQuia maiores sint accusantium magnam atque. Dolorem nam dicta quas assumenda enim et voluptatibus repellat. Molestiae cum aut dolore repellendus aut perspiciatis aliquam. Occaecati ea qui enim sint deleniti porro velit ad. Quasi alias asperiores et nulla sed quisquam non."], ["name", "Product #5 - 9843"], ["shipping_category_id", 1], ["slug", "product-5-9843"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.730601"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:06:21.732894"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.734861' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.736170' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.737603' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.738237' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:21.741807"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:21.741807"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.742787' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.743327' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.744458' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.744946' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.749345' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.749965' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.750887' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:21.752683"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.753411' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.753919' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.754486' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.755074' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.755545' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:21.761100"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.761100"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-9843' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.765350' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:21.770488' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-806' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-806' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:21.775072"], ["created_at", "2014-11-12 20:06:21.779040"], ["description", "Voluptas sunt voluptatum quis veniam nostrum similique in. Quibusdam nesciunt corrupti quis quae facere delectus saepe aspernatur. Facere deserunt qui incidunt et molestias et."], ["name", "Product #6 - 806"], ["shipping_category_id", 1], ["slug", "product-6-806"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.779040"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:06:21.781172"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.783132' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.784207' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.785458' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.786058' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:21.789800"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:21.789800"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.790831' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.791395' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.792564' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.793054' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.796883' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.797404' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.798608' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:21.802290"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.803618' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.804578' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.805330' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.806239' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.806965' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:21.812860"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.812860"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-806' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.816985' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:21.821562' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:06:21.830244' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:21.833994"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:06:21.833994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:21.836065"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:06:21.836065"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rafael.kulas@carroll.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227811156xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:21.839054"], ["email", "rafael.kulas@carroll.biz"], ["encrypted_password", "bc273ca39649770d85341c724dd5bfc31dfc6357e8bbe0e9f336cc0832feb28060c426caa749088bfd76d8257b1db39b5891955a4a4a58454290201625d63bc3"], ["login", "rafael.kulas@carroll.biz"], ["password_salt", "GyVf37z3k7FLa2uCLj-G"], ["updated_at", "2014-11-12 20:06:21.839054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:21.841580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:21.842977"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:06:21.842977"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R128496929' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R128496929%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R128496929' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CLVPHjZM4dLI53a0Wcsszw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:06:21.848401"], ["currency", "USD"], ["email", "rafael.kulas@carroll.biz"], ["guest_token", "CLVPHjZM4dLI53a0Wcsszw"], ["number", "R128496929"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:21.848401"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'KNB3NFCU' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:06:21.850871"], ["identifier", "KNB3NFCU"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:06:21.850871"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.853215' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-145325' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-145325"], ["updated_at", "2014-11-12 20:06:21.854437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'emma@hansen.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227814187xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:21.867785"], ["email", "emma@hansen.name"], ["encrypted_password", "e818ac30b3406d480bee525f77adfa740427c484db312376f98550ca818ef77c0513bc70d0e630d9294bb33f85b786db8b9e1aa5d4348d98d9cd23b98d8ed312"], ["login", "emma@hansen.name"], ["password_salt", "RkY_zr1w3URumjYakDDt"], ["updated_at", "2014-11-12 20:06:21.867785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:06:21.885172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:21.886536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:21.887978"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:21.887978"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R222942520' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R222942520%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R222942520' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9SAhMdvYWcpDQkr0tcix8A' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:06:21.893370"], ["currency", "USD"], ["email", "emma@hansen.name"], ["guest_token", "9SAhMdvYWcpDQkr0tcix8A"], ["number", "R222942520"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:21.893370"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:06:21.902630"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:06:21.902630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 578429' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:06:21.905616"], ["description", "Impedit necessitatibus libero veritatis ullam."], ["name", "TaxCategory - 578429"], ["updated_at", "2014-11-12 20:06:21.905616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:06:21.908965"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:21.908965"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-6250' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-6250' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:21.901398"], ["created_at", "2014-11-12 20:06:21.912539"], ["description", "Minima qui incidunt quas modi quos assumenda aperiam doloribus. Sit vero deleniti corrupti error. Voluptas aspernatur possimus voluptas eius earum neque dolores non. Ratione dolore veniam unde molestias consequatur voluptas iure asperiores.\nUllam hic eum iure accusamus exercitationem. Eos aut consequatur omnis sint est ratione minus molestiae. Voluptatibus ea nesciunt eaque est et deleniti.\nQuaerat tenetur explicabo ipsum voluptatem. Natus aliquid rem molestiae assumenda ipsam omnis. Reiciendis et quasi perspiciatis explicabo eaque. Quo omnis qui incidunt quod qui.\nId rerum harum amet nihil beatae eaque quo nisi. Est reiciendis cum voluptas occaecati eum dolores ipsum. Distinctio dolorem enim quo itaque. Voluptatibus fugit occaecati commodi consequatur accusantium.\nNumquam dolore aliquid molestias ducimus vel modi est. Odio quia placeat necessitatibus alias. Eligendi blanditiis maiores rem et."], ["name", "Product #7 - 6250"], ["shipping_category_id", 1], ["slug", "product-7-6250"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.912539"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:06:21.914713"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.916641' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.917697' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.918957' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.919539' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:21.922810"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:21.922810"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.923739' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.924247' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.925343' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.925818' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.929680' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.930224' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.930763' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:21.932575"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.933306' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.933779' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.934318' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.934930' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.935362' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:21.939960"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.939960"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-6250' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.944089' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:21.948622' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-542' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-542' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:21.952929"], ["created_at", "2014-11-12 20:06:21.956535"], ["description", "Voluptatem sed officiis esse quia illum tempora quod incidunt. Quia aut aliquid quia quis possimus. Atque voluptatum sint culpa fugiat qui voluptates quis fuga. Quibusdam dolore fugiat quia neque rem laudantium aut."], ["name", "Product #8 - 542"], ["shipping_category_id", 1], ["slug", "product-8-542"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.956535"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:06:21.958692"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.960618' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.961639' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.962878' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.963402' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:21.966552"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:21.966552"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.967451' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.967984' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.969108' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.969591' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.973389' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.973918' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.974426' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:21.976166"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.976934' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.977447' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.977960' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.978568' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:21.979048' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:21.983655"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:21.983655"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-542' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.987647' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:21.992029' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:06:22.000453' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:22.004323"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:06:22.004323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:22.006348"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:06:22.006348"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'stanford.mckenzie@haagnikolaus.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227821238xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:22.009306"], ["email", "stanford.mckenzie@haagnikolaus.biz"], ["encrypted_password", "6088f11df998f6cd6d5b49a5c89715af31e03ab1766786049821a8ad1da8e5bc4a2457c5cd92ee373076bda61530aee38fde7fb4da6fe2004127bd84d08f4292"], ["login", "stanford.mckenzie@haagnikolaus.biz"], ["password_salt", "CmfxCXvG1r9T1Axos9cq"], ["updated_at", "2014-11-12 20:06:22.009306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:22.011766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:22.013088"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:06:22.013088"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R682996330' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R682996330%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R682996330' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'buY1oJkuMRrXavvi5CDeng' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:06:22.018694"], ["currency", "USD"], ["email", "stanford.mckenzie@haagnikolaus.biz"], ["guest_token", "buY1oJkuMRrXavvi5CDeng"], ["number", "R682996330"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:22.018694"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'DD3C5CTE' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:06:22.021071"], ["identifier", "DD3C5CTE"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:06:22.021071"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:22.023222' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-352523' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-352523"], ["updated_at", "2014-11-12 20:06:22.024389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'morris@botsford.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158227828919xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:22.041270"], ["email", "morris@botsford.ca"], ["encrypted_password", "5eff4ae66cfaea4518301cd1dc7e0ec4601b399d756569e2326ffe12073bc7d3d64812a337680abe08c2509d734a201fe010695a7c8f825a452578491817780b"], ["login", "morris@botsford.ca"], ["password_salt", "74NxsixTmCGLsbEKN6xb"], ["updated_at", "2014-11-12 20:06:22.041270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:06:22.045612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:22.047067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:22.048450"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:22.048450"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R628949815' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R628949815%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R628949815' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'l-LUVahcqAqnr2Nf6uxMMw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:06:22.054024"], ["currency", "USD"], ["email", "morris@botsford.ca"], ["guest_token", "l-LUVahcqAqnr2Nf6uxMMw"], ["number", "R628949815"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:22.054024"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:06:22.062737"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:06:22.062737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 740554' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:06:22.065392"], ["description", "Deleniti dolore dignissimos repudiandae eum itaque quaerat in laboriosam."], ["name", "TaxCategory - 740554"], ["updated_at", "2014-11-12 20:06:22.065392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:06:22.068661"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:22.068661"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-813' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-813' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:22.061701"], ["created_at", "2014-11-12 20:06:22.072484"], ["description", "Ut ex soluta atque minus. Et deserunt ex eum minus. Officiis voluptatibus non aut repudiandae sed aut fuga.\nVoluptates rerum laudantium dolores necessitatibus quia. Id exercitationem quia hic id inventore delectus nisi. Soluta voluptatem at ex vero sunt et nisi. Occaecati velit numquam maiores et odit. Culpa qui est voluptas amet sequi reprehenderit tempora veniam.\nEnim enim cum adipisci iste est provident molestiae quia. Assumenda vitae soluta voluptatibus natus ea hic laborum ut. Non natus unde nostrum velit magnam tenetur tempore perspiciatis. Voluptate mollitia ut maxime sunt. Deserunt cum autem dolorem dolorum qui velit.\nIpsum aut perferendis adipisci perspiciatis voluptatibus recusandae incidunt. Ea vel animi sed sunt expedita. Totam blanditiis vel laudantium error ut ut nobis."], ["name", "Product #9 - 813"], ["shipping_category_id", 1], ["slug", "product-9-813"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:22.072484"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:06:22.074882"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.076938' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.078068' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.079323' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.079875' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:22.083186"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:22.083186"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.084094' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.084607' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.085708' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.086222' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.090357' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.090915' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.091468' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:22.093268"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.094003' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.094519' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.095037' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.095608' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.096045' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:22.100869"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:22.100869"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-813' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:22.105066' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:22.109660' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-3137' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-3137' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:22.114701"], ["created_at", "2014-11-12 20:06:22.118315"], ["description", "Illo quia voluptatum minus repudiandae in adipisci. Dignissimos facilis dolorum at a cum odio voluptatum atque. Repellendus iste non maxime autem officiis in aut vitae.\nAmet occaecati a nihil culpa at ut totam. Eum autem et earum ex sed. Non corporis maxime deserunt eius consequatur. Consequatur ut culpa molestiae est odio architecto voluptas. Voluptas quis et numquam consequatur."], ["name", "Product #10 - 3137"], ["shipping_category_id", 1], ["slug", "product-10-3137"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:22.118315"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:06:22.120404"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.122416' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.123488' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.124704' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.125227' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:22.128451"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:22.128451"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.129360' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.129887' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.130974' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.131481' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.135264' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.135775' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.136311' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:22.138090"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.138815' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.139315' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.139815' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.140440' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.140916' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:22.145559"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:22.145559"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-3137' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:22.149668' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:22.154127' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:06:22.162562' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (3.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'juwan.jacobson@funkhackett.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582278257710xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:22.187355"], ["email", "juwan.jacobson@funkhackett.us"], ["encrypted_password", "277a43e9033d6b3800a86c33961d08b1044e5cabf8baee84f8aa311fda9f16f14ea190bb65fe3a74cceeb8ea95a425d3c9f664e60a79447f989178899776c7ce"], ["login", "juwan.jacobson@funkhackett.us"], ["password_salt", "HGCyCzBhUQ6Ae_4VnMqH"], ["updated_at", "2014-11-12 20:06:22.187355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:06:22.190797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:22.192145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:22.193620"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:22.193620"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R821736945' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R821736945%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R821736945' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Q8b6c38gfPlL4S4Cq3DwUQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:06:22.199139"], ["currency", "USD"], ["email", "juwan.jacobson@funkhackett.us"], ["guest_token", "Q8b6c38gfPlL4S4Cq3DwUQ"], ["number", "R821736945"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:22.199139"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:06:22.208431"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:06:22.208431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 711468' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:06:22.211173"], ["description", "Autem quas quis et qui autem sed in."], ["name", "TaxCategory - 711468"], ["updated_at", "2014-11-12 20:06:22.211173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:06:22.214638"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:06:22.214638"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-3655' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-3655' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:22.207372"], ["created_at", "2014-11-12 20:06:22.218375"], ["description", "Et et quia corporis et animi. Recusandae non id ea perferendis fugiat reiciendis eum molestiae. Et qui voluptatum neque minus quia distinctio iste nihil. Ea nostrum amet ut quaerat dolore corrupti asperiores.\nDolore dolorem cumque inventore et voluptatum iste. Deleniti dolore ex voluptas non non est amet saepe. Qui repellendus dolores doloremque aliquid quasi quidem. Ut laboriosam ipsam quis ut rerum voluptatem quas quidem. Enim vero vitae sint consequatur blanditiis quis ea.\nInventore dolorum incidunt repudiandae eum. Modi doloribus et ut voluptatem. Ea nisi et sunt iste dolorem. Deserunt velit ut molestias et sed libero eum.\nSuscipit quasi reiciendis maiores blanditiis sed assumenda ea. Esse beatae totam illo rerum. Illo ea necessitatibus veniam recusandae quis.\nSint inventore assumenda quia laboriosam velit error cupiditate et. Cupiditate qui eos vero voluptas magni. Fugit commodi reprehenderit distinctio occaecati ducimus voluptate voluptas qui."], ["name", "Product #11 - 3655"], ["shipping_category_id", 1], ["slug", "product-11-3655"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:22.218375"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:06:22.220832"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.222993' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.224189' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.225527' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.226119' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:22.229491"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:22.229491"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.230466' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.230989' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.232087' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.232641' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.236562' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.237082' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.237628' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:22.241511"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.242832' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.243802' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.244687' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.245595' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.246297' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:22.252480"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:22.252480"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-3655' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:22.256669' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:22.261160' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-4181' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-4181' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:06:22.267603"], ["created_at", "2014-11-12 20:06:22.271208"], ["description", "Quia in similique delectus vel porro a magni debitis. Aut accusantium et optio maiores ipsum corrupti illo. Doloribus eligendi nisi voluptate ad aut at.\nFacilis aut quia recusandae tempore omnis fugit non. Dolor aperiam consectetur sunt velit ad minus consequuntur voluptatum. Voluptas explicabo est at quia dolore blanditiis sed possimus. Ea vitae quos voluptatem tempora occaecati repudiandae repellendus nostrum. Non aut adipisci eum deserunt cumque odit omnis vel.\nEt et repellat aut sint eligendi a nesciunt et. Hic sit cupiditate quia cum consectetur laudantium sed. Id pariatur nihil sapiente odio. Et laudantium sed suscipit sapiente natus. Dolorem sunt unde exercitationem ea.\nSapiente dolorum ut doloribus ullam voluptatem id quo. Mollitia vero exercitationem autem magni velit alias eos aliquam. Distinctio beatae et nemo dignissimos quia. Sed magnam cum odit omnis blanditiis. Maiores soluta veniam autem rerum."], ["name", "Product #12 - 4181"], ["shipping_category_id", 1], ["slug", "product-12-4181"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:22.271208"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:06:22.273286"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.275260' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.276303' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.277516' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.278079' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:06:22.281307"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:06:22.281307"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.282202' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.282724' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.283816' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.284311' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.288089' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.288598' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.289127' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:06:22.292748"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.294075' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.295017' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.296036' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.297062' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:06:22.297805' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:06:22.304181"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:06:22.304181"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-4181' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:22.308295' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:06:22.312985' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:06:22.321910' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:22.325752"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:06:22.325752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:06:22.327856"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:06:22.327856"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tillman@fritschquitzon.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582278299211xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:06:22.330795"], ["email", "tillman@fritschquitzon.info"], ["encrypted_password", "ddc7692e491a3903174614667c17906a63668040a88c22a512173cefbc8f22a396e6875a3a3646658b2b08e2665a59a1efb52ff039956ffc035ee271e5d775e3"], ["login", "tillman@fritschquitzon.info"], ["password_salt", "wKvN-iepFstNNYcnhsjs"], ["updated_at", "2014-11-12 20:06:22.330795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:22.333415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:06:22.334813"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:06:22.334813"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R751840878' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R751840878%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R751840878' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'dQ23kU8puNLj-pA1pV-7_w' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:06:22.340114"], ["currency", "USD"], ["email", "tillman@fritschquitzon.info"], ["guest_token", "dQ23kU8puNLj-pA1pV-7_w"], ["number", "R751840878"], ["state", "cart"], ["updated_at", "2014-11-12 20:06:22.340114"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'CQ2EEG5Y' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:06:22.342486"], ["identifier", "CQ2EEG5Y"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:06:22.342486"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:22.344683' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-445315' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-445315"], ["updated_at", "2014-11-12 20:06:22.345973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (14.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (3.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ava@sanfordbergstrom.ca' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158230414291xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:10:41.993342"], ["email", "ava@sanfordbergstrom.ca"], ["encrypted_password", "f473a54a0295a915c39157587bb437b237001a4e14c5ee1fc0a582d3747e8ad066a37dc6a5f1d17125715d585ae99f9dc7f6a7e104ab2c5adde072eaed46eb63"], ["login", "ava@sanfordbergstrom.ca"], ["password_salt", "TpjVKCxbsACHbz7vyxyN"], ["updated_at", "2014-11-12 20:10:41.993342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:10:42.026455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.033061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:10:42.041184"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:10:42.041184"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R213820093' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R213820093%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R213820093' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'iVrLxt2op4q34gujKCwEzg' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:10:42.075416"], ["currency", "USD"], ["email", "ava@sanfordbergstrom.ca"], ["guest_token", "iVrLxt2op4q34gujKCwEzg"], ["number", "R213820093"], ["state", "cart"], ["updated_at", "2014-11-12 20:10:42.075416"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:10:42.127007"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:10:42.127007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 372423' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:10:42.136596"], ["description", "Ab sequi ut voluptatem neque reprehenderit aut sunt ipsa."], ["name", "TaxCategory - 372423"], ["updated_at", "2014-11-12 20:10:42.136596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:10:42.159047"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:10:42.159047"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-2411' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-2411' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:10:42.123048"], ["created_at", "2014-11-12 20:10:42.164079"], ["description", "Enim nam autem voluptas quis est a. Sit a iste voluptatem inventore dolorem suscipit. Nam id voluptatem a laboriosam quod. Id qui eum ab nesciunt praesentium. Id voluptatem voluptatem quae consequatur nihil aut eos dolorem.\nImpedit eum voluptatem maiores doloremque labore neque repellat at. Nulla nostrum consequatur assumenda voluptatem voluptatibus. Ullam dignissimos quo corrupti quas quia temporibus laboriosam. Nisi nam sint excepturi minus optio non. Temporibus quis ut dolores quia ut."], ["name", "Product #1 - 2411"], ["shipping_category_id", 1], ["slug", "product-1-2411"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.164079"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:10:42.166747"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.173888' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.175148' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.188645' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.189831' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:10:42.211615"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:10:42.211615"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.212818' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.213409' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.214529' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.214997' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.224917' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.225487' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.225994' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:10:42.227666"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.228796' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.229243' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.229672' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.230202' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.230611' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:10:42.246252"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.246252"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-2411' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.254224' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:10:42.262315' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-8864' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-8864' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:10:42.267037"], ["created_at", "2014-11-12 20:10:42.270731"], ["description", "Quod quia autem et eligendi adipisci aperiam dolores architecto. Quibusdam quia minus repudiandae harum ipsam. Et debitis ea quos error magnam vero est repellat.\nNulla et hic sed consequatur. Ea laborum totam cumque ullam sint et. Ut omnis nam perferendis veniam."], ["name", "Product #2 - 8864"], ["shipping_category_id", 1], ["slug", "product-2-8864"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.270731"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:10:42.272816"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.274737' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.275779' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.276964' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.277492' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:10:42.333160"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:10:42.333160"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.334197' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.334732' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.335813' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.336275' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.340203' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.340696' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.341172' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:10:42.342691"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.343383' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.343820' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.344245' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.344775' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.345188' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:10:42.349686"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.349686"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-8864' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.354182' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:10:42.358718' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:10:42.375018' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:10:42.395643"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:10:42.395643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:10:42.408226"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:10:42.408226"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'reese.pfannerstill@mosciski.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415823042122xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:10:42.412843"], ["email", "reese.pfannerstill@mosciski.co.uk"], ["encrypted_password", "5b25bcf887c9812c01835bb88e1f34e99e60012e2257f412414540c64c612a2ffb9434c9a5bf3f5361d968240942d5ca9f61d1879d2db4893b183259947fd7a7"], ["login", "reese.pfannerstill@mosciski.co.uk"], ["password_salt", "guz2ypmDMSqeV_qEkyPi"], ["updated_at", "2014-11-12 20:10:42.412843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.415450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:10:42.416789"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:10:42.416789"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R846494735' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R846494735%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R846494735' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '4ZYHngOt8BaNuatovWGRIg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:10:42.422028"], ["currency", "USD"], ["email", "reese.pfannerstill@mosciski.co.uk"], ["guest_token", "4ZYHngOt8BaNuatovWGRIg"], ["number", "R846494735"], ["state", "cart"], ["updated_at", "2014-11-12 20:10:42.422028"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'L5M6TSYN' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:10:42.433420"], ["identifier", "L5M6TSYN"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:10:42.433420"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.436253' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-123025' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-123025"], ["updated_at", "2014-11-12 20:10:42.437519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'maribel_friesen@wolfhaley.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582304293xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:10:42.454519"], ["email", "maribel_friesen@wolfhaley.com"], ["encrypted_password", "b80a5b03cacfd8fd83fd1e1b3172526f4fad73160dff37b94fc6f0082625762046fc24a7ed33d12de3f1de18728c6e71a86129eee9e9107985702898f0220144"], ["login", "maribel_friesen@wolfhaley.com"], ["password_salt", "xZgyv9voj_nxPozsfq7x"], ["updated_at", "2014-11-12 20:10:42.454519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:10:42.458541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.461387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:10:42.464089"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:10:42.464089"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R995458477' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R995458477%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R995458477' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Tqm-FM_aJyuR45NbEFClxA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:10:42.472179"], ["currency", "USD"], ["email", "maribel_friesen@wolfhaley.com"], ["guest_token", "Tqm-FM_aJyuR45NbEFClxA"], ["number", "R995458477"], ["state", "cart"], ["updated_at", "2014-11-12 20:10:42.472179"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:10:42.480425"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:10:42.480425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 538553' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:10:42.483089"], ["description", "Qui sed quos eum deleniti omnis maxime ipsa."], ["name", "TaxCategory - 538553"], ["updated_at", "2014-11-12 20:10:42.483089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:10:42.486407"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:10:42.486407"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-7179' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-7179' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:10:42.479385"], ["created_at", "2014-11-12 20:10:42.490412"], ["description", "Error nam quae quia ducimus. Quia omnis occaecati sit libero odit. Ipsum consequatur et laboriosam quia alias nemo ut consequatur. Qui quidem at ut nostrum doloremque perferendis soluta molestiae.\nQuas et quo possimus perspiciatis molestiae officiis non tenetur. Explicabo hic quidem a nam facilis ut et. Fuga molestiae commodi officiis asperiores enim voluptate sit ipsam.\nAccusamus et ratione tenetur non eius necessitatibus quos. Facilis vero repellat eaque autem sequi et repudiandae fuga. Sed voluptatem tempora aut nihil quo. Dolorem aut ut aliquam et. Consequatur exercitationem assumenda saepe iure cumque."], ["name", "Product #3 - 7179"], ["shipping_category_id", 1], ["slug", "product-3-7179"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.490412"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:10:42.492618"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.494643' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.495755' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.497011' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.497590' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:10:42.500884"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:10:42.500884"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.501828' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.502362' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.503422' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.503894' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.508533' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.509205' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.509804' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:10:42.511634"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.512410' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.512928' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.513438' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.514057' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.514527' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:10:42.519209"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.519209"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-7179' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.523472' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:10:42.528022' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-7557' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-7557' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:10:42.533951"], ["created_at", "2014-11-12 20:10:42.537553"], ["description", "Praesentium pariatur ipsum eum et voluptatem. Ut cum qui dolore minus. Velit voluptas voluptas soluta repudiandae.\nQuo distinctio impedit illum odio. At atque id et itaque in dolore hic quam. Aut facere iusto reiciendis officia accusantium provident praesentium eaque.\nNesciunt aliquid sit illum voluptatem. Veritatis numquam sint quia dignissimos asperiores quisquam aut. Quas sapiente est error assumenda unde vel. Et molestiae autem nulla minima et rerum at fugiat.\nAdipisci voluptatem aut culpa eum aut atque provident. Totam amet dolorum omnis magnam sed voluptatem. Dicta eos voluptates id sit cupiditate. Eum alias adipisci atque tenetur quis odit. Eaque quas commodi dolores voluptatem ut deserunt asperiores."], ["name", "Product #4 - 7557"], ["shipping_category_id", 1], ["slug", "product-4-7557"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.537553"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:10:42.539682"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.541637' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.542737' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.543923' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.544419' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:10:42.547725"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:10:42.547725"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.548723' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.549237' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.550292' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.550778' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.554498' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.555008' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.555482' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:10:42.557221"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.557940' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.558448' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.558969' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.559601' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.560082' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:10:42.564773"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.564773"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-7557' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.568862' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:10:42.573339' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:10:42.581849' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:10:42.585410"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:10:42.585410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:10:42.587402"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:10:42.587402"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'allene_becker@kuphal.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158230422884xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:10:42.590340"], ["email", "allene_becker@kuphal.co.uk"], ["encrypted_password", "36f5ae5b006c376a3bc73b3f71195ba61a6ebc463f4d41a66ff639f4aae2e3931346ded13b7d5f076488933e233b7b2dd63aa513847bd131529cb599b8277f42"], ["login", "allene_becker@kuphal.co.uk"], ["password_salt", "xNEKoxFiQyPJf5DmzPqG"], ["updated_at", "2014-11-12 20:10:42.590340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.592899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:10:42.594265"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:10:42.594265"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R676115772' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R676115772%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R676115772' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'o9uicA3G8R2_QJXt_aPSoA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:10:42.599622"], ["currency", "USD"], ["email", "allene_becker@kuphal.co.uk"], ["guest_token", "o9uicA3G8R2_QJXt_aPSoA"], ["number", "R676115772"], ["state", "cart"], ["updated_at", "2014-11-12 20:10:42.599622"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XEXYUJ48' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:10:42.602050"], ["identifier", "XEXYUJ48"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:10:42.602050"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.604212' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-544433' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-544433"], ["updated_at", "2014-11-12 20:10:42.605372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.4ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'aiden.goyette@mohr.co.uk' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158230424495xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:10:42.622809"], ["email", "aiden.goyette@mohr.co.uk"], ["encrypted_password", "c92b3f97f48d3e031cf6af034410806a1636d5041650c964b834d73269d6e4844d3ef161c35a0e0eb9f5206e099f0c84c11856b06819266bd444fb20facce168"], ["login", "aiden.goyette@mohr.co.uk"], ["password_salt", "fyufQ9uEtkd34HsXKUJx"], ["updated_at", "2014-11-12 20:10:42.622809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:10:42.628392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.630315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:10:42.632363"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:10:42.632363"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R292561220' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R292561220%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R292561220' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'jskw2GS4aNb13zozz0Db-A' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:10:42.638608"], ["currency", "USD"], ["email", "aiden.goyette@mohr.co.uk"], ["guest_token", "jskw2GS4aNb13zozz0Db-A"], ["number", "R292561220"], ["state", "cart"], ["updated_at", "2014-11-12 20:10:42.638608"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:10:42.647563"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:10:42.647563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 494809' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:10:42.650172"], ["description", "Quibusdam sed suscipit rerum sit."], ["name", "TaxCategory - 494809"], ["updated_at", "2014-11-12 20:10:42.650172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:10:42.653718"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:10:42.653718"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-1310' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-1310' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:10:42.646525"], ["created_at", "2014-11-12 20:10:42.658003"], ["description", "A quis ea magnam vitae laborum minus dolorem. Voluptas beatae sed consequatur ad repellat atque dolorem. Autem placeat quia omnis repudiandae.\nRepellendus temporibus dolorum aut libero voluptatibus necessitatibus ullam voluptatum. Fuga aut rerum magnam velit. Optio eveniet rerum aperiam alias non. Velit maiores perferendis nihil aut dolores placeat. Molestiae et sapiente tempore quis reiciendis modi qui voluptas.\nEst necessitatibus ipsam animi odit alias temporibus fugit quam. Dolorum veniam in mollitia eos. Fugiat porro sunt id nemo vitae.\nPlaceat ut velit et nemo eius. Omnis est voluptatum quasi eos soluta est. Iste quia dicta placeat dolorum quos autem vel. Voluptatem vel corporis corrupti est assumenda ut.\nAut recusandae vel ratione doloribus eligendi. Non iusto dignissimos illum odit laudantium asperiores. Quam tenetur rem aut qui incidunt officia eaque error."], ["name", "Product #5 - 1310"], ["shipping_category_id", 1], ["slug", "product-5-1310"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.658003"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:10:42.660524"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.662461' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.663588' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.664822' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.665420' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:10:42.668716"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:10:42.668716"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.669690' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.670218' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.671277' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.671757' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.675698' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.676253' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.676859' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:10:42.678584"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.679365' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.679868' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.680363' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.680905' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.681379' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:10:42.686220"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.686220"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-1310' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.690395' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:10:42.694873' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9924' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9924' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:10:42.699891"], ["created_at", "2014-11-12 20:10:42.703494"], ["description", "Assumenda sint qui debitis in. Sapiente corporis vero recusandae dolor qui voluptatem perferendis. Quia corporis qui voluptatem rerum ad. Rerum sed corporis aut non quisquam blanditiis voluptatibus eum. Sunt dignissimos necessitatibus aut impedit doloremque.\nQuo reprehenderit hic repellendus ut quo nam. Vero eaque ut expedita ad quam quos. Porro praesentium enim quo earum non. Laborum quis adipisci ut sunt dolor est qui."], ["name", "Product #6 - 9924"], ["shipping_category_id", 1], ["slug", "product-6-9924"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.703494"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:10:42.705632"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.707582' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.708660' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.709919' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.710479' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:10:42.713818"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:10:42.713818"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.714781' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.715338' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.716500' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.717088' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.721275' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.721780' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.722350' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:10:42.724140"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.724854' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.725367' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.725876' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.726520' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.726990' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:10:42.731621"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.731621"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9924' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.735769' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:10:42.740470' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:10:42.749229' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:10:42.752965"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:10:42.752965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:10:42.755020"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:10:42.755020"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'marlon@volkmanjones.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415823042866xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:10:42.757993"], ["email", "marlon@volkmanjones.com"], ["encrypted_password", "5da69b87115fee6f63a3511fb875b364a0ed834eb4668ad674c82aed9262d9f7cf747f8e602b447a5abd9d5c61178e8d81ce4b36029b761b7f9c3e78fa6387de"], ["login", "marlon@volkmanjones.com"], ["password_salt", "VgKFryFcQTARJ48SKB7a"], ["updated_at", "2014-11-12 20:10:42.757993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.760536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:10:42.761926"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:10:42.761926"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R750307609' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R750307609%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R750307609' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'U9N7HYXVvA762tjVCjpuPw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:10:42.767494"], ["currency", "USD"], ["email", "marlon@volkmanjones.com"], ["guest_token", "U9N7HYXVvA762tjVCjpuPw"], ["number", "R750307609"], ["state", "cart"], ["updated_at", "2014-11-12 20:10:42.767494"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7L49F8LQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:10:42.770008"], ["identifier", "7L49F8LQ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:10:42.770008"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.772364' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-132134' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-132134"], ["updated_at", "2014-11-12 20:10:42.773610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kraig@cremin.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415823042387xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:10:42.790647"], ["email", "kraig@cremin.co.uk"], ["encrypted_password", "e509d9042125bef25f902bd34cd3654db813bea7e5d4a57014e3db4b68fe300f04954bdce9bb58fa312ea11409ca5f60b1c53a84683969a1c005461aea79c71a"], ["login", "kraig@cremin.co.uk"], ["password_salt", "AN-X6-x51CXXzAsd4sT9"], ["updated_at", "2014-11-12 20:10:42.790647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:10:42.795154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.811102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:10:42.812581"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:10:42.812581"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R982081893' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R982081893%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R982081893' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'MIZ0YDt65dgzU6qmNYncMA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:10:42.818662"], ["currency", "USD"], ["email", "kraig@cremin.co.uk"], ["guest_token", "MIZ0YDt65dgzU6qmNYncMA"], ["number", "R982081893"], ["state", "cart"], ["updated_at", "2014-11-12 20:10:42.818662"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:10:42.830215"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:10:42.830215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 927682' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:10:42.834011"], ["description", "Veniam reiciendis quo qui tempora."], ["name", "TaxCategory - 927682"], ["updated_at", "2014-11-12 20:10:42.834011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:10:42.837339"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:10:42.837339"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-9728' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-9728' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:10:42.828370"], ["created_at", "2014-11-12 20:10:42.840997"], ["description", "Necessitatibus reiciendis omnis voluptate est. Et qui at dignissimos molestias assumenda blanditiis. Ipsa exercitationem et maxime ea. Tempore velit doloremque consequuntur provident veritatis ut similique beatae."], ["name", "Product #7 - 9728"], ["shipping_category_id", 1], ["slug", "product-7-9728"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.840997"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:10:42.843306"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.845260' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.846337' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.847605' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.848159' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:10:42.851848"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:10:42.851848"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.852827' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.853356' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.854419' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.854907' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.859214' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.859809' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.860401' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:10:42.862169"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.862939' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.863478' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.863978' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.864590' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.865489' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:10:42.870205"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.870205"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-9728' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.875032' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:10:42.880549' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-8902' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-8902' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:10:42.887936"], ["created_at", "2014-11-12 20:10:42.891722"], ["description", "Aliquid quis enim deleniti sit qui aut tempore consequatur. Quod id tempore similique laboriosam sed. Fugiat et quidem rerum expedita et odit ex sunt. Tenetur neque numquam et natus ratione voluptate. Et fugiat corporis eos id non.\nIusto quisquam quis neque dignissimos maxime velit aut iste. Praesentium expedita atque perferendis asperiores et voluptatem adipisci est. Aperiam incidunt nesciunt qui rerum et aut ut. Nemo dolorum necessitatibus qui officia velit et totam culpa. Sint est saepe molestiae aperiam tenetur a.\nQuis ut aut aperiam ipsam consequatur laudantium. Expedita quis non omnis est autem odit in explicabo. Qui repellendus voluptatem voluptate officia omnis eum quia dignissimos. Commodi et quis porro mollitia nam.\nSint a voluptatem et fugiat repudiandae. Laborum ipsam accusamus velit in eligendi dolorem architecto enim. Molestias qui nostrum dolorem modi aut dolorum ut. Earum quam autem possimus adipisci. Non omnis earum mollitia ducimus numquam dicta.\nQuia quas sunt dolores nobis. Saepe sed eaque sed aut corporis provident. Eveniet quia et asperiores voluptatem fuga voluptas mollitia vel."], ["name", "Product #8 - 8902"], ["shipping_category_id", 1], ["slug", "product-8-8902"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.891722"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:10:42.893869"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.896212' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.897300' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.898721' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.899245' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:10:42.902480"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:10:42.902480"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.903410' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.903971' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.905012' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.905480' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.909332' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.909870' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.910355' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:10:42.914195"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.915263' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.915836' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.916405' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.917074' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:42.917588' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:10:42.922762"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:42.922762"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-8902' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.927182' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:10:42.931921' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:10:42.940947' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:10:42.944887"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:10:42.944887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:10:42.947121"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:10:42.947121"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kevon@mann.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158230421318xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:10:42.950526"], ["email", "kevon@mann.biz"], ["encrypted_password", "9f4d326a40e9872f363012de1bac0dcdb77863072f69a039e05e6a927eafc29d083af1bbb5a6e32e92818ea259e688cba83be9e0e0edf5fb9f6bfeff67fc64d8"], ["login", "kevon@mann.biz"], ["password_salt", "skE5tugDhJwTs5jjoMMd"], ["updated_at", "2014-11-12 20:10:42.950526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.953897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:10:42.955449"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:10:42.955449"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R777504088' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R777504088%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R777504088' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'TC_DtJQnI0ZD3sQ8uSnmRg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:10:42.962054"], ["currency", "USD"], ["email", "kevon@mann.biz"], ["guest_token", "TC_DtJQnI0ZD3sQ8uSnmRg"], ["number", "R777504088"], ["state", "cart"], ["updated_at", "2014-11-12 20:10:42.962054"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'LGQEQDLT' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:10:42.965094"], ["identifier", "LGQEQDLT"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:10:42.965094"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.967963' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-213152' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-213152"], ["updated_at", "2014-11-12 20:10:42.969303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jalon@brakus.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158230421839xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:10:42.982508"], ["email", "jalon@brakus.ca"], ["encrypted_password", "eb898aac58d0f981c3e32e2e7ca243e53047e35d9f0a9156a65d52354533bfd43add7ed5e735837a53b928048e23fbd8be39d9e8f9de7f45f50ef25fe4e5494c"], ["login", "jalon@brakus.ca"], ["password_salt", "jN-yZGHc45znrupySn_Q"], ["updated_at", "2014-11-12 20:10:42.982508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:10:42.986088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.987607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:10:42.989350"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:10:42.989350"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R047839175' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R047839175%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R047839175' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'nXawCpESU_E5VB2q5ucwmg' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:10:42.995730"], ["currency", "USD"], ["email", "jalon@brakus.ca"], ["guest_token", "nXawCpESU_E5VB2q5ucwmg"], ["number", "R047839175"], ["state", "cart"], ["updated_at", "2014-11-12 20:10:42.995730"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:10:43.006758"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:10:43.006758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 823733' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:10:43.010055"], ["description", "Nisi atque repellat est quia."], ["name", "TaxCategory - 823733"], ["updated_at", "2014-11-12 20:10:43.010055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:10:43.013988"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:10:43.013988"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-3073' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-3073' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:10:43.005335"], ["created_at", "2014-11-12 20:10:43.019477"], ["description", "Doloribus corporis commodi quis enim nesciunt qui aspernatur maxime. Iste atque et velit non delectus. Aut est quam corporis et laudantium ipsum. Dolore velit qui sed recusandae optio voluptate doloribus. Porro sit rem mollitia aut ut est.\nQuas in ipsam aliquam ea incidunt. Beatae magnam distinctio doloribus ipsa ad atque. Possimus optio nam necessitatibus et. Ad culpa non modi ipsam cum. Consequatur nisi architecto est quia a.\nMagnam aut voluptas qui autem architecto eos occaecati. Est voluptatem eos eius neque perferendis sequi. Quod dolor est cupiditate itaque.\nExcepturi et autem optio omnis. Quod magnam dolorem quas repellat ut voluptas. Non quibusdam minima iste consequatur totam debitis tempore nesciunt. Ipsam voluptatem soluta voluptatem perferendis et nostrum enim."], ["name", "Product #9 - 3073"], ["shipping_category_id", 1], ["slug", "product-9-3073"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:43.019477"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:10:43.022044"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.024702' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.026201' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.027631' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.028258' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:10:43.031733"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:10:43.031733"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.032705' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.033235' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.034433' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.034937' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.039199' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.039713' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.040243' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:10:43.041824"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.042450' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.042922' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.043365' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.043916' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.044349' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:10:43.049036"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:43.049036"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-3073' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.053644' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:10:43.058140' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-3958' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-3958' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:10:43.064401"], ["created_at", "2014-11-12 20:10:43.068136"], ["description", "Dignissimos ea quos voluptates eum qui culpa repellendus dolorem. Perspiciatis minima debitis natus eligendi illum. Molestiae laudantium sit soluta ab.\nEst consectetur veniam est laborum impedit assumenda quas autem. Ad blanditiis unde quibusdam omnis enim possimus laboriosam harum. Nihil ullam praesentium eveniet cupiditate eum placeat dicta quisquam.\nUt voluptas et recusandae quidem. Voluptatem occaecati et eum similique architecto nesciunt maiores. Deleniti magni et et culpa commodi qui inventore.\nOptio cupiditate rerum voluptas illum nihil id. Commodi culpa eum ut tempore est qui facilis autem. Ut nam perferendis sit quisquam.\nEt eos error est quia ipsa et veniam. Eaque cumque tenetur corrupti possimus qui consequatur cupiditate vitae. Recusandae error tempore quod consequatur ad ipsam. Dicta facere et vitae eveniet error animi assumenda. Soluta ad enim dolor porro."], ["name", "Product #10 - 3958"], ["shipping_category_id", 1], ["slug", "product-10-3958"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:43.068136"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:10:43.070334"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.072345' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.073404' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.074585' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.075121' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:10:43.078322"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:10:43.078322"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.079227' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.079756' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.080796' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.081269' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.085035' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.085536' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.086070' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:10:43.087775"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.088529' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.089025' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.089531' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.090131' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.090623' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:10:43.095245"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:43.095245"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-3958' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.099252' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:10:43.103659' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:10:43.112106' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:10:43.123097"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:10:43.123097"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:10:43.126559' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.127105' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:10:43.130795"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:10:43.130795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:10:43.132759"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:10:43.132759"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ova@fritsch.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582304352610xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:10:43.135770"], ["email", "ova@fritsch.name"], ["encrypted_password", "e4945713fbc0b1e195c91200551075b430f9bcadaae1f74bd122d46980d02d58ab0c32781b5874fea714fe72e324710a238a402a88f52ae6cab9c6acb2681a39"], ["login", "ova@fritsch.name"], ["password_salt", "_jJzyKkToDHwuUktjySp"], ["updated_at", "2014-11-12 20:10:43.135770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:43.138370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:10:43.139793"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:10:43.139793"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R655780519' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R655780519%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R655780519' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'F1PhvodSmOn0ZSGJ_7MigA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:10:43.144973"], ["currency", "USD"], ["email", "ova@fritsch.name"], ["guest_token", "F1PhvodSmOn0ZSGJ_7MigA"], ["number", "R655780519"], ["state", "cart"], ["updated_at", "2014-11-12 20:10:43.144973"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'FPUGJHPV' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:10:43.147376"], ["identifier", "FPUGJHPV"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:10:43.147376"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.149496' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-113523' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-113523"], ["updated_at", "2014-11-12 20:10:43.150646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'danny_braun@russelreichert.info' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582304344711xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:10:43.168827"], ["email", "danny_braun@russelreichert.info"], ["encrypted_password", "145825ad6f90e3c31510b9e906f6bd22b9a5eae88429c9d1aa7be729c6440ff61aeebfafe882d46e165cbbcf6fea8d075ddb126d4102679a034f2005b5a70667"], ["login", "danny_braun@russelreichert.info"], ["password_salt", "aw42p8HARVzg1VzP_1y5"], ["updated_at", "2014-11-12 20:10:43.168827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:10:43.174230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:43.176207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:10:43.178196"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:10:43.178196"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R082490802' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R082490802%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R082490802' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'sMglPRHHZn2c04uLQXmZ_A' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:10:43.184299"], ["currency", "USD"], ["email", "danny_braun@russelreichert.info"], ["guest_token", "sMglPRHHZn2c04uLQXmZ_A"], ["number", "R082490802"], ["state", "cart"], ["updated_at", "2014-11-12 20:10:43.184299"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:10:43.191529"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:10:43.191529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 89546' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:10:43.194194"], ["description", "Voluptatem est nam vero incidunt sunt dignissimos."], ["name", "TaxCategory - 89546"], ["updated_at", "2014-11-12 20:10:43.194194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:10:43.197434"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:10:43.197434"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-1154' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-1154' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:10:43.190448"], ["created_at", "2014-11-12 20:10:43.201561"], ["description", "Molestiae consectetur dolores blanditiis magnam. Et blanditiis consectetur provident hic. Eum qui amet commodi eveniet vero.\nAdipisci vero eius autem voluptatem architecto. Culpa modi est amet voluptates officiis illo qui necessitatibus. Quas enim corrupti modi unde quaerat aliquam in. Eaque doloribus tempore nihil fuga natus nulla."], ["name", "Product #11 - 1154"], ["shipping_category_id", 1], ["slug", "product-11-1154"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:43.201561"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:10:43.203952"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.205942' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.207039' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.208326' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.208978' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:10:43.212748"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:10:43.212748"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.213803' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.214384' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.215462' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.215954' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.219948' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.220458' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.221000' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:10:43.222843"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.223622' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.224128' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.224623' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.225216' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.225770' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:10:43.230748"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:43.230748"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-1154' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.235034' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:10:43.239843' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-9928' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-9928' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:10:43.245677"], ["created_at", "2014-11-12 20:10:43.249335"], ["description", "Laborum sit eos deleniti quia corrupti culpa. Laboriosam accusantium est repudiandae quos et. Architecto illo corporis id nesciunt fuga assumenda.\nEum eos corporis autem non itaque sunt. Consequatur qui quas est magni odio velit impedit. Tempora animi dolorum eaque quo earum.\nNumquam illo distinctio recusandae assumenda voluptate. Praesentium maiores et enim aspernatur rerum ullam. Reiciendis error odit est tempora est. Iste et animi sit voluptate qui id. Aut iste fuga animi atque est.\nConsequatur vel quia magnam sint. Ullam in et corrupti eaque aperiam. Illo quas quibusdam nam quidem sequi asperiores quia exercitationem."], ["name", "Product #12 - 9928"], ["shipping_category_id", 1], ["slug", "product-12-9928"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:43.249335"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:10:43.251440"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.253378' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.254431' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.255650' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.256180' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:10:43.259462"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:10:43.259462"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.260437' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.260954' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.262027' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.262506' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.266429' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.266925' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.267459' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:10:43.269340"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.270086' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.270602' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.271157' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.271772' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:10:43.272220' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:10:43.276919"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:10:43.276919"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-9928' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.281153' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:10:43.286069' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:10:43.310230' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:10:43.313954"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:10:43.313954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:10:43.315917"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:10:43.315917"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'antonette@oga.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582304372512xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:10:43.318869"], ["email", "antonette@oga.ca"], ["encrypted_password", "59a7553ab14d3c4939b059cd4c83483f68a502ad15926e3c6c36bc5048bad0756e17b8f76eca1de105df0dd8ca650d686cd37071209e803ec86d740ebc30e0d3"], ["login", "antonette@oga.ca"], ["password_salt", "dA3M5fcx-Ub9mDpy68EM"], ["updated_at", "2014-11-12 20:10:43.318869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:43.321387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:10:43.322771"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:10:43.322771"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R886866943' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R886866943%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R886866943' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '_3jAOz7TGKO_rH3evlq98w' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:10:43.328331"], ["currency", "USD"], ["email", "antonette@oga.ca"], ["guest_token", "_3jAOz7TGKO_rH3evlq98w"], ["number", "R886866943"], ["state", "cart"], ["updated_at", "2014-11-12 20:10:43.328331"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'YWBCQCDS' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:10:43.330860"], ["identifier", "YWBCQCDS"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:10:43.330860"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.333152' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-223104' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-223104"], ["updated_at", "2014-11-12 20:10:43.334306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'audra_kris@dubuque.ca' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158230676721xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:07.885371"], ["email", "audra_kris@dubuque.ca"], ["encrypted_password", "3ddc57b1777674293951b05eb9652f32c204dab132238ad45f86f6421806b683918af8985d2b5d7e127782232a30ce29280e2919867efe3dd5553bdf5a458424"], ["login", "audra_kris@dubuque.ca"], ["password_salt", "Xh7QhR5zNhB37WxbVWX2"], ["updated_at", "2014-11-12 20:11:07.885371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:11:07.924310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:07.929914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:07.939642"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:07.939642"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R544396349' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R544396349%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R544396349' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'EGqTDAWRI5tqejVbEpCQ2g' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:11:07.974034"], ["currency", "USD"], ["email", "audra_kris@dubuque.ca"], ["guest_token", "EGqTDAWRI5tqejVbEpCQ2g"], ["number", "R544396349"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:07.974034"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:11:08.030632"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:11:08.030632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 368166' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:11:08.040469"], ["description", "Dicta et enim magnam rerum deserunt excepturi."], ["name", "TaxCategory - 368166"], ["updated_at", "2014-11-12 20:11:08.040469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:11:08.063401"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:08.063401"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-8714' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-8714' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:08.026382"], ["created_at", "2014-11-12 20:11:08.068724"], ["description", "Sint occaecati velit et quas ut. Ipsum explicabo nisi voluptatum aut possimus fugiat commodi. Ut quaerat sequi repellat impedit tempore. Ut quis voluptas impedit eveniet."], ["name", "Product #1 - 8714"], ["shipping_category_id", 1], ["slug", "product-1-8714"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.068724"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:11:08.071538"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.078892' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.080188' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.093805' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.095107' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:08.122368"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:08.122368"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.123634' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.124252' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.125451' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.125957' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.136101' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.136694' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.137225' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:08.138919"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.140175' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.140650' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.141097' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.141644' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.142058' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:08.162870"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.162870"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-8714' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.170858' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:08.178975' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-891' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-891' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:08.183988"], ["created_at", "2014-11-12 20:11:08.187644"], ["description", "Magni molestiae numquam molestias earum. Quibusdam consequatur dolorum magnam et aut ut architecto voluptatem. Sunt facere dolor et aliquid provident corporis. Pariatur vel repudiandae eos deserunt.\nIn dolores occaecati cumque amet cum ea. Ipsa est aliquid temporibus molestiae aut. Deserunt voluptatem dolore repellendus eius dolorem."], ["name", "Product #2 - 891"], ["shipping_category_id", 1], ["slug", "product-2-891"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.187644"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:11:08.189779"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.191747' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.192768' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.193925' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.194436' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:08.251336"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:08.251336"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.252533' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.253079' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.254258' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.254748' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.258611' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.259167' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.259691' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:08.261258"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.261993' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.262483' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.262937' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.263468' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.263946' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:08.268550"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.268550"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-891' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.273122' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:08.277792' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:11:08.294850' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:08.316306"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:11:08.316306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:08.329787"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:11:08.329787"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mary@champlin.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158230688202xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:08.334647"], ["email", "mary@champlin.co.uk"], ["encrypted_password", "b7624f5c7e9e77bb20578eef728014091c7ec9a23197ab494065be413359a637eacd3f27ba3d7fe791d5bf959ee5ddf581351f312654cec0b0cef72d69afe103"], ["login", "mary@champlin.co.uk"], ["password_salt", "e-Ayvx9BzzQR1M76Cvm_"], ["updated_at", "2014-11-12 20:11:08.334647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:08.337348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:08.338731"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:11:08.338731"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R030031066' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R030031066%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R030031066' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'awtvd19KEyky0dXB6KRrWA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:11:08.344740"], ["currency", "USD"], ["email", "mary@champlin.co.uk"], ["guest_token", "awtvd19KEyky0dXB6KRrWA"], ["number", "R030031066"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:08.344740"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'PCKVLTPC' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:11:08.356941"], ["identifier", "PCKVLTPC"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:11:08.356941"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.360053' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-521235' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-521235"], ["updated_at", "2014-11-12 20:11:08.361392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'elsie_hudson@morissette.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158230682613xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:08.383184"], ["email", "elsie_hudson@morissette.co.uk"], ["encrypted_password", "90a9c0387998a69915db87498645b4ffa0c7689b424a15394ba1deb0381808e9deb213ed7e52f4f18a5208d9884523ca73b8f0a4609ed340887e98289e6fde38"], ["login", "elsie_hudson@morissette.co.uk"], ["password_salt", "szpJajorHcsBDef6yZ_T"], ["updated_at", "2014-11-12 20:11:08.383184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:11:08.387494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:08.388784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:08.390226"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:08.390226"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R163211867' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R163211867%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R163211867' LIMIT 1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hGI5Db50dgkJq47Nyb3hUg' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:11:08.397440"], ["currency", "USD"], ["email", "elsie_hudson@morissette.co.uk"], ["guest_token", "hGI5Db50dgkJq47Nyb3hUg"], ["number", "R163211867"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:08.397440"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:11:08.409946"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:11:08.409946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 816833' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:11:08.412689"], ["description", "Eveniet quia iure voluptates sunt."], ["name", "TaxCategory - 816833"], ["updated_at", "2014-11-12 20:11:08.412689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:11:08.416594"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:08.416594"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-431' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-431' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:08.408817"], ["created_at", "2014-11-12 20:11:08.420744"], ["description", "Ad est facilis consequatur harum dolorem quia nulla quos. Sit magni recusandae sint non. Nulla qui voluptatem reiciendis quia vel ex pariatur ipsam. Sit rerum similique veniam molestias.\nAd corrupti sunt ipsa tenetur minus maiores modi. Magnam cum sit quia tempore id impedit nisi. Blanditiis et repellendus quod ipsum aut suscipit odio. Et incidunt quia est fugiat sapiente iure eligendi asperiores.\nRepellat numquam rerum ea veritatis corporis debitis dignissimos totam. Commodi sit architecto vero molestiae quam. Pariatur omnis quod optio facilis tempore laboriosam. Dolorem quia veritatis ut sed nam earum iure enim."], ["name", "Product #3 - 431"], ["shipping_category_id", 1], ["slug", "product-3-431"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.420744"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:11:08.423011"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.425072' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.426404' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.427863' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.428524' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:08.432126"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:08.432126"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.433110' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.433640' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.434773' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.435254' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.439295' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.439916' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.440480' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:08.442263"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.443017' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.443527' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.444022' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.444602' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.445072' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:08.449801"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.449801"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-431' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.454120' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:08.459227' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-4685' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-4685' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:08.465973"], ["created_at", "2014-11-12 20:11:08.469821"], ["description", "Eos enim exercitationem ut quibusdam consequatur maiores necessitatibus accusamus. Deserunt veritatis vel pariatur saepe occaecati ut eos. Aperiam velit soluta placeat sunt quia ut.\nHic rerum in harum vero magni et. Distinctio sit deserunt tempore molestiae. Minima magnam ipsum ipsam est eveniet ut. Nihil amet voluptatem fugiat dolores esse earum accusamus. Voluptatum distinctio perferendis esse nihil corrupti omnis.\nAliquam maxime quidem perferendis saepe. Omnis nobis rem possimus eaque perferendis quis animi. Minus praesentium alias repellendus ab aperiam suscipit et laborum.\nAssumenda iusto et ut ut corporis aliquid sunt. Ut est quis eos omnis vel. Possimus blanditiis rerum odit consequatur laborum qui fuga porro. Sed pariatur alias et commodi. Veniam rerum ut at et accusantium.\nUt iusto tenetur consequatur voluptate autem molestias ipsum laborum. Repellendus nesciunt eaque repudiandae corrupti et tenetur omnis commodi. Ducimus delectus molestiae consequuntur pariatur mollitia nesciunt."], ["name", "Product #4 - 4685"], ["shipping_category_id", 1], ["slug", "product-4-4685"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.469821"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:11:08.472016"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.473996' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.475073' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.476347' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.476861' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:08.480104"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:08.480104"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.481131' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.481658' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.482746' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.483237' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.487082' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.487617' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.488110' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:08.489885"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.490624' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.491137' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.491669' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.492329' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.492768' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:08.497427"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.497427"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-4685' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.504474' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:08.511838' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:11:08.521407' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:08.525342"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:11:08.525342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:08.527409"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:11:08.527409"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hans.koss@borer.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158230684384xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:08.530417"], ["email", "hans.koss@borer.co.uk"], ["encrypted_password", "32b399eb39e377c2efde8e9b91bca48080155735b5b307bce91cd87dc16e7ce2b8df1441e0285523a570eccec2e61308e2f284fdfcf260132f1a1e86c7db2505"], ["login", "hans.koss@borer.co.uk"], ["password_salt", "2YdqGM1dWH9gp_NwEoUz"], ["updated_at", "2014-11-12 20:11:08.530417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:08.533108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:08.534502"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:11:08.534502"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R010743614' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R010743614%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R010743614' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'u2uSFd_0i9mbU09MexElIw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:11:08.539886"], ["currency", "USD"], ["email", "hans.koss@borer.co.uk"], ["guest_token", "u2uSFd_0i9mbU09MexElIw"], ["number", "R010743614"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:08.539886"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'SLQPMFBP' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:11:08.542416"], ["identifier", "SLQPMFBP"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:11:08.542416"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.544757' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-452301' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-452301"], ["updated_at", "2014-11-12 20:11:08.545994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shaina@oconner.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158230688175xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:08.559978"], ["email", "shaina@oconner.us"], ["encrypted_password", "4fc38412b81acbf604a25c8901aaa106d4837317610b385a4e9d8da0d1551998dacf37a34866bd45d250a06d9cc5cb213db479ee6862def96f141660e2442f2e"], ["login", "shaina@oconner.us"], ["password_salt", "kHSZzK8SYUyD595FeZwn"], ["updated_at", "2014-11-12 20:11:08.559978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:11:08.563159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:08.564552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:08.566119"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:08.566119"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R388687395' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R388687395%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R388687395' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LUIDgOr0eOA6wenwCO-g7Q' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:11:08.571603"], ["currency", "USD"], ["email", "shaina@oconner.us"], ["guest_token", "LUIDgOr0eOA6wenwCO-g7Q"], ["number", "R388687395"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:08.571603"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:11:08.586907"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:11:08.586907"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 287810' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:11:08.590414"], ["description", "Sed magnam ullam illum qui."], ["name", "TaxCategory - 287810"], ["updated_at", "2014-11-12 20:11:08.590414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:11:08.594234"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:08.594234"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-286' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-286' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:08.585259"], ["created_at", "2014-11-12 20:11:08.598580"], ["description", "Quisquam vero debitis illum alias excepturi autem vel consequuntur. Quo adipisci pariatur perspiciatis vel enim accusamus. Distinctio impedit enim nulla assumenda. Non sit eaque dolores enim velit provident est. Vel cupiditate rem enim odio nihil quia aut.\nSuscipit consectetur quo architecto id harum earum voluptate nisi. Alias quos odit sed dignissimos. Autem corrupti enim exercitationem vitae autem similique. Hic qui aut tenetur eos atque quia nihil dolor. Provident qui rerum sequi dicta et aut sed recusandae.\nQuia quis repudiandae optio rerum qui numquam. Sit maiores ex dolorem animi hic. Rerum et facilis voluptatem qui possimus voluptatem nostrum. Ut in accusantium fugiat eveniet facilis ut impedit.\nId ea omnis et qui odio dolorem consequatur. Et suscipit laborum ab in ad autem voluptas voluptatem. In consequatur eveniet ducimus et. Officiis illum mollitia dignissimos vel veniam quis. Amet nobis ipsa enim reiciendis."], ["name", "Product #5 - 286"], ["shipping_category_id", 1], ["slug", "product-5-286"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.598580"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:11:08.601166"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.603188' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.604394' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.605662' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.606311' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:08.609676"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:08.609676"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.610766' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.611360' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.612585' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.613115' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.617252' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.618792' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.620564' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:08.623619"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.625569' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.626624' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.627252' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.628129' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.629607' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:08.637493"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.637493"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-286' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.643092' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:08.648520' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-4231' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-4231' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:08.654731"], ["created_at", "2014-11-12 20:11:08.659198"], ["description", "Repellendus ea sunt quidem unde. Nisi ut accusantium voluptatem sed harum vero. Quae nihil qui alias non et id et. Explicabo qui deleniti non dolores voluptas minima. Eaque vel totam facere sit."], ["name", "Product #6 - 4231"], ["shipping_category_id", 1], ["slug", "product-6-4231"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.659198"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:11:08.661930"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.664190' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.665328' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.666691' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.667342' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:08.671032"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:08.671032"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.671995' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.672523' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.673660' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.674138' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.678334' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.679163' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.679767' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:08.681623"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.682364' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.682855' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.683336' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.683916' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.684381' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:08.689269"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.689269"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-4231' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.693784' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:08.698579' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:11:08.707805' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:08.711680"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:11:08.711680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:08.713815"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:11:08.713815"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sylvia@abshire.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158230689656xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:08.716888"], ["email", "sylvia@abshire.name"], ["encrypted_password", "a32350cbb56169615173d08358eee21484dfbbd21e19adb28f00666905539720937603d7ca65ff4c6876a5ace43dd85ccea9cbfab6130bd0426d3880a0ab6500"], ["login", "sylvia@abshire.name"], ["password_salt", "S1jxshzJGZdnLHyh9k3h"], ["updated_at", "2014-11-12 20:11:08.716888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:08.719493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:08.720916"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:11:08.720916"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R172360811' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R172360811%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R172360811' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'i-sTaQ4JUNqHT2O2Xr51zw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:11:08.726557"], ["currency", "USD"], ["email", "sylvia@abshire.name"], ["guest_token", "i-sTaQ4JUNqHT2O2Xr51zw"], ["number", "R172360811"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:08.726557"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'ETB58J45' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:11:08.729294"], ["identifier", "ETB58J45"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:11:08.729294"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.734774' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-245400' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-245400"], ["updated_at", "2014-11-12 20:11:08.736995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jacinthe.volkman@kris.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158230682517xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:08.752447"], ["email", "jacinthe.volkman@kris.ca"], ["encrypted_password", "a603f6c17446bd839106fb0a41d8b0a28198a9d3f01eada773753e1b5dd54d63c7c5c4ea18f42f002a529c307bf1262aa9015cb97e16e528e5c935cabe19768f"], ["login", "jacinthe.volkman@kris.ca"], ["password_salt", "YQE84dYNr6CX2Bb3Qyyp"], ["updated_at", "2014-11-12 20:11:08.752447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:11:08.755827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:08.772807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:08.774468"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:08.774468"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R612316941' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R612316941%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R612316941' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'L-82TsQvFHcGE--dVomCkg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:11:08.780040"], ["currency", "USD"], ["email", "jacinthe.volkman@kris.ca"], ["guest_token", "L-82TsQvFHcGE--dVomCkg"], ["number", "R612316941"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:08.780040"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:11:08.787216"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:11:08.787216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 240160' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:11:08.790170"], ["description", "Esse repudiandae sunt harum aperiam sunt dolore qui non."], ["name", "TaxCategory - 240160"], ["updated_at", "2014-11-12 20:11:08.790170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:11:08.793576"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:08.793576"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-2948' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-2948' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:08.785911"], ["created_at", "2014-11-12 20:11:08.798050"], ["description", "Praesentium incidunt culpa nulla alias minus quis. Rerum officiis asperiores doloribus quis. Qui eum et nam mollitia tempore praesentium."], ["name", "Product #7 - 2948"], ["shipping_category_id", 1], ["slug", "product-7-2948"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.798050"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:11:08.800434"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.802527' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.803613' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.804893' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.805502' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:08.808909"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:08.808909"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.809884' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.810386' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.811482' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.811956' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.816032' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.816570' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.817443' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:08.821349"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.822718' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.823681' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.824454' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.825344' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.826049' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:08.832215"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.832215"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-2948' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.836429' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:08.841048' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-4894' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-4894' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:08.845267"], ["created_at", "2014-11-12 20:11:08.849044"], ["description", "Mollitia suscipit magni quas rerum at totam adipisci. Nisi mollitia accusamus pariatur facilis. Nostrum odit sit quaerat non iste saepe eaque ipsam."], ["name", "Product #8 - 4894"], ["shipping_category_id", 1], ["slug", "product-8-4894"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.849044"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:11:08.851189"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.853190' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.854342' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.855591' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.856146' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:08.859443"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:08.859443"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.860363' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.860900' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.863038' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.864331' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.3ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.873048' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.874102' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.874874' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:08.877452"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.878458' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.879101' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.879738' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.880514' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:08.880951' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:08.885915"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:08.885915"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-4894' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.890164' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:08.894693' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:11:08.903422' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:08.907076"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:11:08.907076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:08.909062"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:11:08.909062"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mohammed@friesenschroeder.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415823068318xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:08.912119"], ["email", "mohammed@friesenschroeder.name"], ["encrypted_password", "b403f315909cca189c45425c6e97541054477843eb11b2f8bad84a75b31d84be951e6ae1a579fd1ebbc45bcf7f74d66c01a660b7e295f5762680e357483a88d5"], ["login", "mohammed@friesenschroeder.name"], ["password_salt", "hoCAzEP8NM57psqvGLRT"], ["updated_at", "2014-11-12 20:11:08.912119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:08.914790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:08.918904"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:11:08.918904"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R938369907' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R938369907%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R938369907' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-3cRT_yHGTxKgyLp6QH2KA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:11:08.927181"], ["currency", "USD"], ["email", "mohammed@friesenschroeder.name"], ["guest_token", "-3cRT_yHGTxKgyLp6QH2KA"], ["number", "R938369907"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:08.927181"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7R2YPZCG' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:11:08.930898"], ["identifier", "7R2YPZCG"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:11:08.930898"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.934463' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-002455' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-002455"], ["updated_at", "2014-11-12 20:11:08.935885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (104.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tristin@hamill.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158230694199xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:09.054425"], ["email", "tristin@hamill.com"], ["encrypted_password", "a8a0f5395bc30589dc9739e059150713ebe889e4fbe98b6346b4a80af62b68a513b3b8b83fb756c47436099405d8d2b53ccde7c0c563e046403d9f15672d20ac"], ["login", "tristin@hamill.com"], ["password_salt", "YzWPoTXYuZuM1JbQmtHQ"], ["updated_at", "2014-11-12 20:11:09.054425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:11:09.060505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:09.063072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:09.065812"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:09.065812"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R530175248' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R530175248%') Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R530175248' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-dK3yyFg6K4AmLN8uKimkw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:11:09.075423"], ["currency", "USD"], ["email", "tristin@hamill.com"], ["guest_token", "-dK3yyFg6K4AmLN8uKimkw"], ["number", "R530175248"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:09.075423"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:11:09.086171"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:11:09.086171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 458391' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:11:09.089513"], ["description", "Quia explicabo omnis commodi porro ut."], ["name", "TaxCategory - 458391"], ["updated_at", "2014-11-12 20:11:09.089513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:11:09.092840"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:09.092840"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-2972' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-2972' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:09.084604"], ["created_at", "2014-11-12 20:11:09.096608"], ["description", "Autem expedita et voluptatem sunt adipisci voluptate. Sunt sint perspiciatis molestiae dolor debitis cupiditate. Ab itaque sit perspiciatis reprehenderit. Dolor qui quas voluptate odio."], ["name", "Product #9 - 2972"], ["shipping_category_id", 1], ["slug", "product-9-2972"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:09.096608"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:11:09.099277"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.101416' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.102647' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.103884' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.104459' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:09.107713"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:09.107713"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.108674' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.109211' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.110350' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.110844' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.114749' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.115265' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.115798' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:09.117601"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.118395' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.118886' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.119401' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.119995' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.120430' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:09.125309"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:09.125309"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-2972' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.129936' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:09.134906' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2164' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2164' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:09.145955"], ["created_at", "2014-11-12 20:11:09.151403"], ["description", "Voluptatem ab labore ut excepturi placeat perspiciatis odio sit. Quia neque ut eligendi voluptatibus. Cumque molestiae minus nihil qui laudantium. Accusamus doloremque est odio rem minima voluptatem asperiores et. Ad iure temporibus omnis maxime similique ut doloribus.\nConsectetur temporibus qui eligendi voluptatum ad. Non sed pariatur officia veniam ut. Harum aliquam quidem pariatur similique. Eveniet temporibus magni iusto ex.\nBlanditiis officiis rerum aut dolore ut eveniet. Nam modi dolorem et commodi id neque est veniam. Ea iusto porro ea aliquid. Non fuga est dolores ab ducimus quisquam ipsam et.\nAtque tempora autem totam natus magni sint. Earum et est aut beatae. Aut consectetur cum earum repellendus alias repellat perspiciatis placeat. Et voluptates est recusandae amet et nostrum quia. Corporis quos voluptas quod qui."], ["name", "Product #10 - 2164"], ["shipping_category_id", 1], ["slug", "product-10-2164"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:09.151403"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:11:09.153795"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.156024' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.157203' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.158524' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.159100' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:09.162626"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:09.162626"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.163648' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.164232' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.165392' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.165921' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.169973' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.170696' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.171249' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:09.173022"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.173863' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.174411' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.174903' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.175494' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.175940' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:09.180903"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:09.180903"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2164' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.185093' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:09.189833' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:11:09.198862' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:09.202697"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:11:09.202697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:09.204880"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:11:09.204880"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rick@smith.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582306946410xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:09.207998"], ["email", "rick@smith.ca"], ["encrypted_password", "3712c6e6bf87e48902d3292270022f8e5a0e7a25bc0b6ec3e61fdf21cae068ee3c77e6c58f21bab45a8d04657567f4082959f376039dadefb23e65f1da1f1533"], ["login", "rick@smith.ca"], ["password_salt", "MURoSJfqiV3PGnrxR38R"], ["updated_at", "2014-11-12 20:11:09.207998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:09.210778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:09.212322"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:11:09.212322"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R470420436' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R470420436%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R470420436' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'e8OR8Chjb6oJ9A9aEWCjeQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:11:09.218083"], ["currency", "USD"], ["email", "rick@smith.ca"], ["guest_token", "e8OR8Chjb6oJ9A9aEWCjeQ"], ["number", "R470420436"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:09.218083"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '97C44VDZ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:11:09.220712"], ["identifier", "97C44VDZ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:11:09.220712"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.222925' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-113125' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-113125"], ["updated_at", "2014-11-12 20:11:09.224085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:11:09.245036"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:11:09.245036"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:09.248787' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.249398' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (22.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'paolo.simonis@emmerich.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582306967011xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:09.282668"], ["email", "paolo.simonis@emmerich.ca"], ["encrypted_password", "9d35a3dfc1590d8978ebd557139657e70fde60e80a5c561e0aabfa050e8ceb291c1d51d33e778a7a22b90067ef0c80c0e652f2cf170a77cd88890284431e6155"], ["login", "paolo.simonis@emmerich.ca"], ["password_salt", "qxicYFP5tJRM7Jf-6WQv"], ["updated_at", "2014-11-12 20:11:09.282668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:11:09.288818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:09.291240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:09.293549"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:09.293549"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R017991758' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R017991758%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R017991758' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '49Ci7FsbyEijork8uH1LVg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:11:09.300782"], ["currency", "USD"], ["email", "paolo.simonis@emmerich.ca"], ["guest_token", "49Ci7FsbyEijork8uH1LVg"], ["number", "R017991758"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:09.300782"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:11:09.310447"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:11:09.310447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 413875' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:11:09.313398"], ["description", "Quo laborum consequatur itaque totam."], ["name", "TaxCategory - 413875"], ["updated_at", "2014-11-12 20:11:09.313398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:11:09.317132"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:09.317132"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-5992' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-5992' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:09.309299"], ["created_at", "2014-11-12 20:11:09.321024"], ["description", "Perferendis quas ipsam eum et in. In aliquam amet odit at aut qui et nam. Aliquid dolores ipsam totam adipisci. Est repellat qui debitis vero.\nRatione et fuga eaque autem. Maxime quos molestiae esse repudiandae. Placeat ducimus illum aut porro asperiores ad quae. Eos impedit molestiae et est. Iusto ullam numquam sint placeat aut.\nRepudiandae eligendi et qui assumenda id consequatur illo optio. Quam asperiores ut soluta rem. Voluptas minus consequatur omnis qui.\nEst vel fugiat quisquam in dolorem. Similique in et ex numquam expedita optio qui. Eligendi sed cum exercitationem esse consequuntur ea et.\nEarum ut omnis ullam vitae quae ipsa adipisci fugiat. Sint commodi optio minima quis. Minima reiciendis culpa adipisci totam est veniam nulla nihil. Est eos officia eveniet ullam recusandae sed in."], ["name", "Product #11 - 5992"], ["shipping_category_id", 1], ["slug", "product-11-5992"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:09.321024"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:11:09.323334"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.325416' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.326594' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.327852' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.328408' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:09.332021"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:09.332021"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.334768' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.335942' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.338214' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.339105' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.343918' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.344506' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.345013' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:09.346747"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.347420' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.347880' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.348344' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.348909' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.349364' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:09.354239"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:09.354239"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-5992' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.359156' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:09.364128' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-9030' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-9030' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:09.368640"], ["created_at", "2014-11-12 20:11:09.372351"], ["description", "Et excepturi quae explicabo unde. Voluptates aut et nesciunt pariatur enim. Dolorem molestiae dolor sed est et ut. Aut qui et ipsum veritatis eveniet doloribus non qui."], ["name", "Product #12 - 9030"], ["shipping_category_id", 1], ["slug", "product-12-9030"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:09.372351"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:11:09.374489"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.376494' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.377677' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.378928' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.379511' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:09.382937"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:09.382937"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.383901' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.384417' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.385588' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.386085' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.389975' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.390655' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.391239' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:09.393058"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.393827' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.394349' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.394848' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.395419' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:09.395936' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:09.400917"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:09.400917"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-9030' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.405287' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:09.410059' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:11:09.434875' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:09.438828"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:11:09.438828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:09.440990"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:11:09.440990"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'griffin@mraz.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582306925112xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:09.444190"], ["email", "griffin@mraz.info"], ["encrypted_password", "aab41ac15222822c18defc8945939d7ca5e814e8b2ed049edc5df703930ab4313180d2baa7f7d11c48e832b5cf7a29535444fec9e1689851f67cf80c7c0f9445"], ["login", "griffin@mraz.info"], ["password_salt", "Js3QaXDTqFUW7n29zg-e"], ["updated_at", "2014-11-12 20:11:09.444190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:09.446994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:09.448520"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:11:09.448520"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R662146798' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R662146798%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R662146798' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'apDSrKAqAGhSsNqUoUmw2g' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:11:09.454014"], ["currency", "USD"], ["email", "griffin@mraz.info"], ["guest_token", "apDSrKAqAGhSsNqUoUmw2g"], ["number", "R662146798"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:09.454014"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'CPZ6M5CT' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:11:09.456618"], ["identifier", "CPZ6M5CT"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:11:09.456618"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.458910' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-144143' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-144143"], ["updated_at", "2014-11-12 20:11:09.460141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (10.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rey@williamson.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231123911xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:52.800467"], ["email", "rey@williamson.name"], ["encrypted_password", "9e5671dcdfe9ab24d0a295736f53a02e03789f10a755e29016d27475252b0f1363b7135b100e651f9ebb7f53f6a9eaad1b7bad6c71b1bafd421ede0f4f0e39a6"], ["login", "rey@williamson.name"], ["password_salt", "rx6JFvLtkX9WzQMk7YjM"], ["updated_at", "2014-11-12 20:11:52.800467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:11:52.838515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:52.844054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:52.852265"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:52.852265"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R865130007' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R865130007%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R865130007' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ipxeTBYoNtui96xUZGfMTg' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:11:52.886226"], ["currency", "USD"], ["email", "rey@williamson.name"], ["guest_token", "ipxeTBYoNtui96xUZGfMTg"], ["number", "R865130007"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:52.886226"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:11:52.943920"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:11:52.943920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 21742' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:11:52.953474"], ["description", "Dolor consequatur sed nostrum quam veritatis."], ["name", "TaxCategory - 21742"], ["updated_at", "2014-11-12 20:11:52.953474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:11:52.976524"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:52.976524"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-8493' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-8493' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:52.940006"], ["created_at", "2014-11-12 20:11:52.981654"], ["description", "Fugiat sunt dignissimos quis est laborum rem perspiciatis deserunt. Dolorum voluptatem qui exercitationem voluptas quibusdam sunt. Ullam temporibus necessitatibus nulla quasi nam nobis qui rerum. Sunt quia nesciunt reprehenderit neque.\nNemo sed accusantium et velit deleniti quasi temporibus. Nostrum recusandae sed asperiores quibusdam id provident necessitatibus est. Aut voluptates dolor omnis repellat temporibus ducimus. Labore qui dolores sint quam est.\nPariatur veritatis nihil dolor ad recusandae velit omnis. Aut est est qui ea quae. Dolores est dolores quos dolorem. Exercitationem eum ullam dolor et vel commodi sed. Dolores ratione ut nisi placeat sed et cumque et.\nDebitis quasi aperiam eligendi reiciendis vel placeat dignissimos dolorem. Est nam consequuntur dignissimos vel voluptatem porro eum quo. Distinctio ducimus quis cupiditate maiores. Architecto quis qui sed aut maxime asperiores sequi.\nAliquam consequatur autem in sed est qui. Et veritatis aspernatur sed natus repudiandae. Aliquid commodi accusantium sed officia sint labore est esse."], ["name", "Product #1 - 8493"], ["shipping_category_id", 1], ["slug", "product-1-8493"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:52.981654"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:11:52.984377"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:52.991556' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:52.992890' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.006335' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.007501' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:53.029103"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:53.029103"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.030294' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.030910' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.032069' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.032572' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.042551' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.043147' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.043699' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.045385"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.046539' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.047011' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.047471' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.048021' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.048453' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:53.068006"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.068006"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-8493' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.076050' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:53.084042' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-9715' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-9715' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:53.089271"], ["created_at", "2014-11-12 20:11:53.092968"], ["description", "Nesciunt ea illo nobis et sit quaerat. Nisi animi sed consequuntur perferendis. Sint a veniam ducimus sed similique ut quo hic. Hic accusamus voluptatem quos nobis voluptatibus illum provident ut. Natus corrupti nesciunt culpa saepe doloribus.\nIpsa et omnis fuga sunt dolores minima. Tempora perferendis recusandae possimus similique. Eius quis iusto quaerat sint. Laboriosam suscipit quia voluptatem quidem voluptas."], ["name", "Product #2 - 9715"], ["shipping_category_id", 1], ["slug", "product-2-9715"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.092968"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:11:53.095048"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.096979' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.098011' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.099201' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.099776' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:53.160896"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:53.160896"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.161965' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.162536' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.163693' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.164245' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.169635' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.171073' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.172184' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.175312"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.176453' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.177215' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.177974' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.179207' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.180590' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:53.189277"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.189277"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-9715' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.194141' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:53.198797' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:11:53.215948' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.237180"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:11:53.237180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.254737"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:11:53.254737"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ally@larsonkessler.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231137402xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:53.260841"], ["email", "ally@larsonkessler.com"], ["encrypted_password", "f98a84fa77bfe125e18f315fa1a6aa065bc965719e5aa06ddf48f1084b1c617034705b7456b5fbf3ff4afc80373450d76130db0a07b42099a72364a8815a1c35"], ["login", "ally@larsonkessler.com"], ["password_salt", "U8t4o69WuZ9yYmCdBtmz"], ["updated_at", "2014-11-12 20:11:53.260841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.263535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.264942"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:11:53.264942"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R225032803' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R225032803%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R225032803' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'w-91xTC1Lm2pe9T6p3z0WQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:11:53.270902"], ["currency", "USD"], ["email", "ally@larsonkessler.com"], ["guest_token", "w-91xTC1Lm2pe9T6p3z0WQ"], ["number", "R225032803"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:53.270902"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'E3QYZ58L' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:11:53.283694"], ["identifier", "E3QYZ58L"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:11:53.283694"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.286785' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-421554' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-421554"], ["updated_at", "2014-11-12 20:11:53.288092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'heath@nitzsche.co.uk' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231138873xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:53.305776"], ["email", "heath@nitzsche.co.uk"], ["encrypted_password", "d4ecc9f9526a12ede58fe5da8a77d0ce62aa4d03258d7dc71ecb87b708c234d16df8af0c62056d6590f08498eb41dc83d17aab8d2e7113a2149565e316319c2d"], ["login", "heath@nitzsche.co.uk"], ["password_salt", "1eA-Ny-_MYyrvj6Grnny"], ["updated_at", "2014-11-12 20:11:53.305776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:11:53.308906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.310222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.311777"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:53.311777"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R585083801' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R585083801%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R585083801' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '0bMrBJ4AH0-YE7lzJd8Pew' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:11:53.317274"], ["currency", "USD"], ["email", "heath@nitzsche.co.uk"], ["guest_token", "0bMrBJ4AH0-YE7lzJd8Pew"], ["number", "R585083801"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:53.317274"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:11:53.324518"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:11:53.324518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 608029' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.327284"], ["description", "Nemo voluptates numquam atque ipsam deleniti aut est maiores."], ["name", "TaxCategory - 608029"], ["updated_at", "2014-11-12 20:11:53.327284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.330603"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:53.330603"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-9822' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-9822' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:53.323295"], ["created_at", "2014-11-12 20:11:53.334376"], ["description", "In et ipsum asperiores vitae sed. Qui rerum placeat aut et incidunt nulla consequatur. Incidunt ipsam repellat tempore laudantium excepturi. Aut minima sit inventore tenetur rem illo voluptas."], ["name", "Product #3 - 9822"], ["shipping_category_id", 1], ["slug", "product-3-9822"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.334376"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:11:53.336573"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.338933' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.340164' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.341610' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.342249' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:53.345969"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:53.345969"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.347024' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.347593' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.348771' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.349292' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.353285' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.353864' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.354492' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.356322"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.357072' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.357606' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.358123' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.358796' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.359307' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:53.364114"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.364114"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-9822' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.368436' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:53.373324' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-1004' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-1004' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:53.377909"], ["created_at", "2014-11-12 20:11:53.381729"], ["description", "Et ratione ut quisquam nam aut labore. Laudantium voluptatem porro fugiat voluptatem. Ex quod aut dolorum omnis. Et ut quis numquam qui est quaerat voluptatibus."], ["name", "Product #4 - 1004"], ["shipping_category_id", 1], ["slug", "product-4-1004"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.381729"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:11:53.383877"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.385859' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.386990' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.388444' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.389056' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:53.392833"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:53.392833"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.393884' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.394445' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.395569' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.396087' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.400030' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.400593' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.401177' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.402966"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.403702' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.404216' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.404756' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.405402' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.405858' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:53.410528"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.410528"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-1004' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.414681' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:53.419156' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:11:53.428140' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.431838"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:11:53.431838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.433877"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:11:53.433877"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'delilah.kshlerin@gibsonweimann.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231137974xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:53.436815"], ["email", "delilah.kshlerin@gibsonweimann.biz"], ["encrypted_password", "4cf2f8a2b8a88e35bf3f0e5d6715fe2ddac7fa8d11337b392da4b8f62f2d66ec6b754a9954d36a180d02f6c410297b413ed4786cd33a530e0df7ce1329b43002"], ["login", "delilah.kshlerin@gibsonweimann.biz"], ["password_salt", "XieJRVNQDze3HL38UEwz"], ["updated_at", "2014-11-12 20:11:53.436815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.439364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.440727"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:11:53.440727"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R509574974' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R509574974%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R509574974' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'nil9cDzItd0EQ0f3zdRJ_A' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:11:53.445869"], ["currency", "USD"], ["email", "delilah.kshlerin@gibsonweimann.biz"], ["guest_token", "nil9cDzItd0EQ0f3zdRJ_A"], ["number", "R509574974"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:53.445869"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'DWEBJRG5' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:11:53.448345"], ["identifier", "DWEBJRG5"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:11:53.448345"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.450534' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-001345' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-001345"], ["updated_at", "2014-11-12 20:11:53.451704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'malinda.smith@bergstrom.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231136705xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:53.469037"], ["email", "malinda.smith@bergstrom.com"], ["encrypted_password", "b8d836b706b6b364571009d1525d297fd4006843ccf63eb05562c02e85c744b7e7baac1a8f492fca8929119bf843e0ed586b47d40a40c3eabbd2521f551c4e14"], ["login", "malinda.smith@bergstrom.com"], ["password_salt", "scjyvJWWgqcF1_9c6ufi"], ["updated_at", "2014-11-12 20:11:53.469037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:11:53.473303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.474533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.475974"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:53.475974"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R726276370' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R726276370%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R726276370' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '5mx_BXrOEFqItGydx4KjZA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:11:53.481529"], ["currency", "USD"], ["email", "malinda.smith@bergstrom.com"], ["guest_token", "5mx_BXrOEFqItGydx4KjZA"], ["number", "R726276370"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:53.481529"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:11:53.488945"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:11:53.488945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 447377' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.491639"], ["description", "Non cumque modi iure magni velit enim vero."], ["name", "TaxCategory - 447377"], ["updated_at", "2014-11-12 20:11:53.491639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.494924"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:53.494924"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8959' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8959' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:53.487860"], ["created_at", "2014-11-12 20:11:53.498515"], ["description", "Iste unde natus laudantium omnis culpa. Quia consequatur tempora sit reiciendis provident sit rerum omnis. Necessitatibus sit enim cum et debitis quia eum ut.\nTempora velit aliquam et saepe ut expedita. Omnis repudiandae sed et maiores est impedit reprehenderit eveniet. Quo et numquam enim dolores aut id ipsum molestiae."], ["name", "Product #5 - 8959"], ["shipping_category_id", 1], ["slug", "product-5-8959"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.498515"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:11:53.501038"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.503182' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.504340' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.505637' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.506200' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:53.509549"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:53.509549"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.510607' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.511250' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.512436' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.512969' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.517059' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.517594' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.518189' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.520043"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.520801' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.521331' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.521898' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.522527' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.523026' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:53.527802"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.527802"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8959' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.532054' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:53.536525' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-672' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-672' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:53.540711"], ["created_at", "2014-11-12 20:11:53.544481"], ["description", "Vitae ipsum et veritatis molestias. Maiores totam quas minima rerum non ad inventore. Cum suscipit sed voluptate recusandae sunt delectus natus ea."], ["name", "Product #6 - 672"], ["shipping_category_id", 1], ["slug", "product-6-672"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.544481"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:11:53.546565"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.548546' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.549624' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.550863' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.551425' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:53.554730"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:53.554730"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.555676' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.556170' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.557244' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.557762' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.561629' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.562136' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.562689' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.564525"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.565297' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.565815' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.566349' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.566981' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.567513' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:53.572279"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.572279"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-672' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.576515' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:53.581224' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:11:53.590185' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.593905"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:11:53.593905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.596017"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:11:53.596017"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'adaline.rowe@lefflerdach.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231132346xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:53.599010"], ["email", "adaline.rowe@lefflerdach.ca"], ["encrypted_password", "25b6183ffb3c1871eda663ee8cd1a425113a6ebdd2ce514455d9ddf4624530854ff96e548240220fdd2e996216f3247205c77f47293b3b472e519229e0cf5889"], ["login", "adaline.rowe@lefflerdach.ca"], ["password_salt", "7MfqsSpKdnxTQsyFwRDF"], ["updated_at", "2014-11-12 20:11:53.599010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.601620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.603004"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:11:53.603004"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R382479186' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R382479186%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R382479186' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'UMDHWzbV7-X6zqKDBTSbxw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:11:53.608363"], ["currency", "USD"], ["email", "adaline.rowe@lefflerdach.ca"], ["guest_token", "UMDHWzbV7-X6zqKDBTSbxw"], ["number", "R382479186"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:53.608363"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'RLUHXLH6' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:11:53.610863"], ["identifier", "RLUHXLH6"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:11:53.610863"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.613083' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-225153' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-225153"], ["updated_at", "2014-11-12 20:11:53.614326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'aidan@gaylordfeeney.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231136787xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:53.631392"], ["email", "aidan@gaylordfeeney.biz"], ["encrypted_password", "4b7faf1d152c4d829723b6c9ade0ff771b8d0d4150cac4192d0054201f1d0441752614932917df70929ee4645121b1456bee6b48b15c5dbf54a95464d878ea15"], ["login", "aidan@gaylordfeeney.biz"], ["password_salt", "o9SLSg6ySghJnUra3TTs"], ["updated_at", "2014-11-12 20:11:53.631392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:11:53.635831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.651792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.653456"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:53.653456"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R920537061' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R920537061%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R920537061' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-AlRPqN0T1NtSpy-0DkVYg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:11:53.658864"], ["currency", "USD"], ["email", "aidan@gaylordfeeney.biz"], ["guest_token", "-AlRPqN0T1NtSpy-0DkVYg"], ["number", "R920537061"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:53.658864"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:11:53.668235"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:11:53.668235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 731570' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.670944"], ["description", "Necessitatibus sint dolores optio molestiae."], ["name", "TaxCategory - 731570"], ["updated_at", "2014-11-12 20:11:53.670944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.674254"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:53.674254"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-4634' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-4634' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:53.667084"], ["created_at", "2014-11-12 20:11:53.678243"], ["description", "Et placeat ea tempora vel nemo labore. Sint quaerat iure fugiat et temporibus in porro mollitia. Et quo delectus debitis necessitatibus. Tenetur est occaecati et sint velit provident.\nProvident suscipit et magni voluptas fuga laborum ut. Sapiente est facilis velit rem consectetur enim placeat sequi. Quidem est est rerum laboriosam. Dolores voluptas molestiae nihil nihil error voluptatem maiores. Aut magnam id eaque enim.\nQuia repellendus sunt accusantium voluptas aperiam ratione voluptatem. Saepe et quam ratione molestiae. Dolorem soluta minus laudantium quos expedita. Maxime cumque quaerat illo velit. Voluptates praesentium magnam dolorum at.\nVero dolores vitae sit totam voluptatem ea quia minima. Excepturi itaque dolor maiores aut. Quae vero eaque distinctio dolores aliquid."], ["name", "Product #7 - 4634"], ["shipping_category_id", 1], ["slug", "product-7-4634"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.678243"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:11:53.680803"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.682931' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.684097' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.685385' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.685950' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:53.689333"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:53.689333"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.690294' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.690797' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.691927' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.692450' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.696487' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.697194' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.697785' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.699566"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.700310' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.700877' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.701429' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.702059' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.702527' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:53.707428"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.707428"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-4634' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.711783' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:53.716444' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-1492' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-1492' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:53.722377"], ["created_at", "2014-11-12 20:11:53.726153"], ["description", "Corporis sed adipisci voluptatem repellat distinctio hic voluptas. Corporis harum dolorem omnis recusandae in quae aut numquam. Nihil animi tempora quas dicta. Rerum ipsam illum possimus ad reprehenderit enim.\nOfficia laudantium eius earum occaecati eum. Quia et perspiciatis aut quos quo. Modi dolor hic ea nisi quis.\nSed doloremque cumque repudiandae est voluptas exercitationem consequatur laudantium. Eos atque eligendi rerum molestias ut inventore. Placeat dolore ipsam sunt molestias occaecati maiores reprehenderit. Et cum ex ipsa aut hic voluptas et cupiditate.\nVelit in veniam deserunt optio sit libero dolores qui. Distinctio et unde ducimus atque sed impedit quo consequatur. Est quod rem quaerat autem velit non aut doloremque."], ["name", "Product #8 - 1492"], ["shipping_category_id", 1], ["slug", "product-8-1492"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.726153"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:11:53.728398"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.730405' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.731462' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.732754' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.733304' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:53.736541"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:53.736541"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.737485' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.737974' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.739119' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.739615' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.743525' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.744040' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.744618' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.746516"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.747283' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.747800' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.748373' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.749002' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.749511' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:53.754311"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.754311"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-1492' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.758388' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:53.762906' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:11:53.771634' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.775350"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:11:53.775350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.777416"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:11:53.777416"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cole@gutkowski.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231131118xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:53.780393"], ["email", "cole@gutkowski.info"], ["encrypted_password", "bbe84494863cf78bf2767deffdd98cef5ae2909568b6bde436d19a2e64bfc9d004497b2c7088645b3bbcfd2551d10c7b4dbcb0b66c2883011f1b668f1b04ddcb"], ["login", "cole@gutkowski.info"], ["password_salt", "sp3zVchnYQFsTCQPyjHr"], ["updated_at", "2014-11-12 20:11:53.780393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.783320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.785099"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:11:53.785099"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R432289602' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R432289602%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R432289602' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'MTEWO4vZi2-nALVy_26beA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:11:53.790974"], ["currency", "USD"], ["email", "cole@gutkowski.info"], ["guest_token", "MTEWO4vZi2-nALVy_26beA"], ["number", "R432289602"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:53.790974"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WZG5SLVU' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:11:53.793562"], ["identifier", "WZG5SLVU"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:11:53.793562"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.795947' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-302314' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-302314"], ["updated_at", "2014-11-12 20:11:53.797365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'malinda.hamill@towne.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231133889xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:53.811510"], ["email", "malinda.hamill@towne.com"], ["encrypted_password", "e3096d848e9e753da8eee2dea1951636099148100e4f8eb3e43693037181c116fc9dae62bf5045a939c4394fff96fb662f52f6f83a5267543b654573fe607f0d"], ["login", "malinda.hamill@towne.com"], ["password_salt", "XnFo5bex2_xUa_RGzNvh"], ["updated_at", "2014-11-12 20:11:53.811510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:11:53.816335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.818782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.821318"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:53.821318"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R990702032' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R990702032%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R990702032' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xlPOs0EfPwuJpOAmZe4pRA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:11:53.828682"], ["currency", "USD"], ["email", "malinda.hamill@towne.com"], ["guest_token", "xlPOs0EfPwuJpOAmZe4pRA"], ["number", "R990702032"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:53.828682"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:11:53.836946"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:11:53.836946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 631469' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.839596"], ["description", "Incidunt pariatur dolor neque nulla architecto est deserunt quo."], ["name", "TaxCategory - 631469"], ["updated_at", "2014-11-12 20:11:53.839596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.842871"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:53.842871"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-5242' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-5242' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:53.835852"], ["created_at", "2014-11-12 20:11:53.847165"], ["description", "Suscipit et doloribus voluptate unde autem at iure. Et a aliquam et quidem autem aspernatur sapiente inventore. Sed aliquam ut nulla esse error vitae placeat minima. Vero eum voluptate ut deleniti nobis sequi.\nQuibusdam et hic et a ut. Illum ex sequi accusantium repellat et. Reiciendis saepe qui tempora adipisci veniam expedita delectus. Omnis fuga sed assumenda temporibus. Exercitationem quia architecto libero at temporibus.\nEveniet impedit fugiat et laudantium. Eveniet reiciendis non id possimus sequi cupiditate ea. Laboriosam illum rerum architecto quo non culpa. Eaque molestias beatae assumenda aut ut quasi consequuntur qui."], ["name", "Product #9 - 5242"], ["shipping_category_id", 1], ["slug", "product-9-5242"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.847165"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:11:53.849673"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.851799' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.852899' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.854152' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.854706' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:53.858004"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:53.858004"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.859021' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.859557' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.860637' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.861128' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.865057' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.865597' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.866155' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.867955"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.868718' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.869238' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.869785' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.870415' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.870882' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:53.875794"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.875794"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-5242' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.880008' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:53.884866' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2547' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2547' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:53.890098"], ["created_at", "2014-11-12 20:11:53.893875"], ["description", "Necessitatibus id distinctio omnis consequuntur ea vitae labore molestiae. Minus non eum doloribus eos ipsum necessitatibus quasi. Occaecati corporis officiis eius commodi. Nostrum sit dolor et quia maiores repellendus.\nAperiam reprehenderit incidunt consectetur et. Ut aut ipsam accusantium ex omnis sit. Illum consequatur dolor rerum ut rerum qui tempore magni. Id adipisci iusto harum rerum exercitationem quo. Inventore perspiciatis incidunt repudiandae et in nostrum."], ["name", "Product #10 - 2547"], ["shipping_category_id", 1], ["slug", "product-10-2547"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.893875"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:11:53.896000"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.898069' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.899139' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.900357' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.900911' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:53.904175"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:53.904175"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.905200' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.905725' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.906859' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.907349' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.911180' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.911706' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.912225' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.914071"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.914847' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.915379' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.915905' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.916512' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:53.916974' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:53.921664"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:53.921664"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2547' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.925957' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:53.930390' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:11:53.938975' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.942593"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:11:53.942593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:53.944661"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:11:53.944661"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'delilah@bradtke.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582311346910xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:53.947622"], ["email", "delilah@bradtke.us"], ["encrypted_password", "9fb774dcec79fab2119176cbac40736b3e0d539451082e7cee2ef77c27e7fcf056bc69a9d75f943c650b719e0d8c7426b368975798eb52992d0093e5500f4e61"], ["login", "delilah@bradtke.us"], ["password_salt", "5_s_-MWwpfec9378StGf"], ["updated_at", "2014-11-12 20:11:53.947622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.950147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.951495"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:11:53.951495"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R674234859' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R674234859%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R674234859' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Hc-WePbnZNpPUfbsglD7jA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:11:53.956761"], ["currency", "USD"], ["email", "delilah@bradtke.us"], ["guest_token", "Hc-WePbnZNpPUfbsglD7jA"], ["number", "R674234859"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:53.956761"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'QJPQBSLG' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:11:53.959241"], ["identifier", "QJPQBSLG"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:11:53.959241"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.961495' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-024115' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-024115"], ["updated_at", "2014-11-12 20:11:53.962721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mabel@hermannwisozk.com' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582311358111xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:53.981379"], ["email", "mabel@hermannwisozk.com"], ["encrypted_password", "b3b3c35f797865ed77038976a1a19371260027db1c175e5d33435151197047a290497a92a0b93799e5f1ee2b5edcc1df8a840c4da792efa78c455e34849abd96"], ["login", "mabel@hermannwisozk.com"], ["password_salt", "SwcHsSeF8TZ-Lz74tCTh"], ["updated_at", "2014-11-12 20:11:53.981379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:11:53.985664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.986985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:53.988466"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:53.988466"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R758452516' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R758452516%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R758452516' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'nXa3q553v5LQNgCl698yZA' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:11:53.995542"], ["currency", "USD"], ["email", "mabel@hermannwisozk.com"], ["guest_token", "nXa3q553v5LQNgCl698yZA"], ["number", "R758452516"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:53.995542"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:11:54.008245"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:11:54.008245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 604229' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:11:54.011383"], ["description", "Earum consequatur veniam expedita aut sunt repudiandae in iusto."], ["name", "TaxCategory - 604229"], ["updated_at", "2014-11-12 20:11:54.011383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:11:54.015295"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:11:54.015295"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-2464' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-2464' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:54.006881"], ["created_at", "2014-11-12 20:11:54.019418"], ["description", "Earum animi explicabo sint veniam sequi itaque iste. Ipsum provident nobis quo amet aliquid. Sit totam aut recusandae odit aut. Officiis dolore quasi consequatur alias doloremque omnis sunt.\nLaudantium tenetur possimus porro minus reiciendis. Quisquam ea omnis laborum et neque reprehenderit sint voluptatum. Quia tempora assumenda qui at quia optio itaque aliquam.\nCum ipsa ea iure ullam ratione molestiae officiis et. Atque voluptatum explicabo corporis quia vero. Labore laboriosam molestiae facilis voluptas quam nesciunt minima. Odio consectetur quo unde id et vitae dicta."], ["name", "Product #11 - 2464"], ["shipping_category_id", 1], ["slug", "product-11-2464"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:54.019418"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:11:54.021703"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:54.023700' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.024806' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.026083' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:54.026690' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:54.030049"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:54.030049"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:54.030993' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.031523' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.032625' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:54.033129' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.037011' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.037551' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:54.038058' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:54.039854"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.040605' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.041131' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:54.041655' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.042275' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:54.042796' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:54.047511"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:54.047511"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-2464' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:54.051771' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:54.056370' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-4321' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-4321' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:11:54.062980"], ["created_at", "2014-11-12 20:11:54.066787"], ["description", "Consequatur ut rerum officia repudiandae. Ab quibusdam enim omnis eveniet rerum ut. Et ullam et vitae quo nisi amet in.\nVel nihil ad ipsum aliquid. Est cupiditate ullam inventore saepe nostrum. Nostrum voluptates quam ex voluptatibus placeat.\nError facere est quaerat nesciunt quidem voluptas. Repellendus sit asperiores ut temporibus omnis consequatur delectus sapiente. Quia delectus vitae velit eaque fuga numquam sequi. Doloremque earum distinctio dolor explicabo consequatur. Hic aliquid praesentium et porro est laborum optio quisquam.\nAssumenda ab ad totam numquam et deserunt est. Qui pariatur voluptatibus consequatur natus. Inventore voluptatem voluptatem maxime hic.\nEt rerum omnis nihil dolorum. Tempora nulla voluptates non officia. Quia nemo dolores odio est recusandae aut reiciendis eum. Pariatur eum fugit vel aut vero. Doloribus maiores nesciunt quae inventore."], ["name", "Product #12 - 4321"], ["shipping_category_id", 1], ["slug", "product-12-4321"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:54.066787"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:11:54.068919"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:54.070897' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.071970' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.073229' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:54.073795' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:11:54.077108"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:11:54.077108"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:54.078068' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.078590' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.079711' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:54.080208' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.084061' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.084596' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:54.085118' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:11:54.087021"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.087791' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.088336' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:54.088877' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.089530' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:11:54.090039' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:11:54.094936"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:11:54.094936"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-4321' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:54.099105' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:54.103719' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:11:54.112883' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:54.116685"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:11:54.116685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:11:54.118845"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:11:54.118845"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'reese_brown@halvorson.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582311469012xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:11:54.121913"], ["email", "reese_brown@halvorson.co.uk"], ["encrypted_password", "459c4045e9520708f5e783ec4b462b8ee24d4ae64b89cf3d72ecb3e6ec82148d284c62ea54fc344e2c6e447ddf94cdb7c83d97f8d2cd165122c39618cc59d61f"], ["login", "reese_brown@halvorson.co.uk"], ["password_salt", "sj5i13gbzyXRnsUzn57f"], ["updated_at", "2014-11-12 20:11:54.121913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:54.124570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:11:54.125979"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:11:54.125979"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R497668486' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R497668486%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R497668486' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QmXUt9b3CqMJLLTu8g-mNA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:11:54.143060"], ["currency", "USD"], ["email", "reese_brown@halvorson.co.uk"], ["guest_token", "QmXUt9b3CqMJLLTu8g-mNA"], ["number", "R497668486"], ["state", "cart"], ["updated_at", "2014-11-12 20:11:54.143060"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WJSUSN2Y' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:11:54.145680"], ["identifier", "WJSUSN2Y"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:11:54.145680"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:54.147860' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-342301' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-342301"], ["updated_at", "2014-11-12 20:11:54.149094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:11:54.163628"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:11:54.163628"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:11:54.167157' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:54.167756' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (4.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'clement@vonmohr.info' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231404531xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:20.055230"], ["email", "clement@vonmohr.info"], ["encrypted_password", "4bd2c35e9da6c3073c105b0044fc03efd3ffe45015f7e9400a662323d8af1074b8c541f6d605a36d049cc4dbf7ec920554ff5cbdcc64778162c4df4258f03d83"], ["login", "clement@vonmohr.info"], ["password_salt", "Mz3DL--H_WHyDpaVzs5j"], ["updated_at", "2014-11-12 20:12:20.055230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:20.087745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:20.094140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:20.105642"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:20.105642"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R428797787' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R428797787%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R428797787' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 't55S6T9go3SznN-Bmntcww' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:12:20.143219"], ["currency", "USD"], ["email", "clement@vonmohr.info"], ["guest_token", "t55S6T9go3SznN-Bmntcww"], ["number", "R428797787"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:20.143219"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:20.195417"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:12:20.195417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 873560' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:20.205551"], ["description", "Nemo eaque magnam omnis vitae molestias aut delectus."], ["name", "TaxCategory - 873560"], ["updated_at", "2014-11-12 20:12:20.205551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:20.234026"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:20.234026"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-7181' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-7181' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:20.191323"], ["created_at", "2014-11-12 20:12:20.239957"], ["description", "Quas aut eos et et velit sint repudiandae. Aut sint et ratione non ea ut reiciendis qui. Illo ea exercitationem sequi saepe in maiores recusandae. Omnis voluptas ut dolore repellendus porro minus aperiam.\nAccusantium quis voluptatibus modi aut quas. Ullam quaerat laudantium veniam nulla ipsam. Aliquam velit quaerat quisquam ad aut autem. Voluptatem fuga porro odit asperiores quis pariatur omnis eveniet. Est commodi rerum et voluptatem corporis omnis ex."], ["name", "Product #1 - 7181"], ["shipping_category_id", 1], ["slug", "product-1-7181"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.239957"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:12:20.244353"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.253053' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.254781' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.273317' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.274697' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:20.296293"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:20.296293"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.297491' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.298100' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.299324' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.299831' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.310262' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.310990' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.311542' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:20.313313"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.314587' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.315098' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.315606' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.316151' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.316577' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:20.337819"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.337819"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-7181' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.345834' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:20.353915' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-47' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-47' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:20.359777"], ["created_at", "2014-11-12 20:12:20.363493"], ["description", "Recusandae modi ducimus et autem doloribus. Et tempore nostrum placeat beatae. Aut facere quia nam exercitationem dolores in quia a. Ab dolor sunt non placeat quo.\nQuae laboriosam officia nesciunt illo. Iusto quam veniam vero voluptatibus. Rerum ut reprehenderit iste rem voluptas quia voluptatibus minus. Tempore est sed et beatae quo et odio.\nEligendi molestias aliquam error quia et consectetur velit omnis. Omnis sunt maiores libero et est. Ducimus similique doloribus ea dolores et. Sit dolor iusto recusandae perspiciatis beatae esse modi suscipit. Enim est quo a quaerat corporis."], ["name", "Product #2 - 47"], ["shipping_category_id", 1], ["slug", "product-2-47"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.363493"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:12:20.365662"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.367625' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.368679' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.369905' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.370448' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:20.427056"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:20.427056"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.428116' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.428652' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.429832' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.430365' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.434313' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.434881' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.435414' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:20.437008"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.437683' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.438133' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.438595' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.439146' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.439594' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:20.444249"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.444249"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-47' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.448765' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:20.453406' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:12:20.470220' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:20.491716"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:12:20.491716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:20.504923"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:12:20.504923"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'graciela@schulist.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231402332xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:20.509743"], ["email", "graciela@schulist.co.uk"], ["encrypted_password", "eb1ad6a6014b63b193118fdc775c60f35202841f20aa07c926cc73e7f2c79054e4dfa84ab396e6d07010c8c05ec2a58bdec27139e3816a60499dec5cbb781e16"], ["login", "graciela@schulist.co.uk"], ["password_salt", "tNPhBdMqA1wT3R5R4iTy"], ["updated_at", "2014-11-12 20:12:20.509743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:20.512430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:20.513834"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:12:20.513834"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R797302636' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R797302636%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R797302636' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XvUsALue0IprgGK_r1zAqQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:12:20.519450"], ["currency", "USD"], ["email", "graciela@schulist.co.uk"], ["guest_token", "XvUsALue0IprgGK_r1zAqQ"], ["number", "R797302636"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:20.519450"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'L6RQG6BA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:12:20.531644"], ["identifier", "L6RQG6BA"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:12:20.531644"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.534661' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-304450' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-304450"], ["updated_at", "2014-11-12 20:12:20.536050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ryleigh.morissette@price.co.uk' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231407313xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:20.557586"], ["email", "ryleigh.morissette@price.co.uk"], ["encrypted_password", "f107490eb8070503b797b54e0d26ae82ff920905e9b0fd60e6ae5843a77c566bcd4db1a9a5a9cf52d58ebdf44744c84661ba7cbffc50ca52f7dea4f9a0976323"], ["login", "ryleigh.morissette@price.co.uk"], ["password_salt", "exQkKJ33rit-PbRfbAe5"], ["updated_at", "2014-11-12 20:12:20.557586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:20.561836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:20.563132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:20.564557"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:20.564557"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R265088179' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R265088179%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R265088179' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'flCNkPqFXXYHucaH75AhIw' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:12:20.570205"], ["currency", "USD"], ["email", "ryleigh.morissette@price.co.uk"], ["guest_token", "flCNkPqFXXYHucaH75AhIw"], ["number", "R265088179"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:20.570205"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:20.578573"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:12:20.578573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 966382' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:20.581314"], ["description", "Distinctio minima omnis a animi molestiae voluptas."], ["name", "TaxCategory - 966382"], ["updated_at", "2014-11-12 20:12:20.581314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:20.584692"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:20.584692"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-3367' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-3367' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:20.577461"], ["created_at", "2014-11-12 20:12:20.588681"], ["description", "Autem illo quaerat voluptatum nam. Enim repudiandae quia ad laborum. Magni laudantium ipsam ab non rerum reiciendis ipsa. Voluptatem eius temporibus animi omnis dolor. Saepe reprehenderit rerum neque placeat.\nAut dolore est provident neque praesentium. Qui et quia at similique dolorum dolores. Temporibus ipsum ab consequuntur recusandae debitis voluptas. Corrupti aut rerum laboriosam reprehenderit. Dolorem est quae odio rerum optio.\nUt eum quis est numquam. Sed eligendi animi a nemo voluptatibus similique. Deserunt et autem illo cumque. Eum sed assumenda nihil tempore quia magnam dolor."], ["name", "Product #3 - 3367"], ["shipping_category_id", 1], ["slug", "product-3-3367"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.588681"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:12:20.593740"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.597185' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.598910' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.600739' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.601376' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:20.604856"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:20.604856"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.606081' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.606765' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.608075' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.608745' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.613243' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.613903' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.614504' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:20.616296"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.617054' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.617577' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.618149' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.618761' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.619247' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:20.624222"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.624222"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-3367' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.629075' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:20.633866' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2033' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2033' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:20.640675"], ["created_at", "2014-11-12 20:12:20.644509"], ["description", "Inventore rerum voluptatibus nulla accusantium repellat eveniet minus qui. Tempore est et praesentium nisi dolor itaque. Aut blanditiis tenetur sunt dignissimos eaque aut. Non sapiente dolor numquam et praesentium.\nCumque commodi iusto temporibus minima. Omnis accusantium vero aut nisi minima. Dolores excepturi qui ea porro et aut cupiditate. Id vero quae sunt eum aut perferendis omnis praesentium.\nDucimus labore sint et quibusdam. Perferendis ipsum quam officiis quasi qui cumque. Asperiores at voluptas odit non dicta commodi. Molestiae ad velit et sed qui.\nEst necessitatibus deleniti aut ipsam qui dolorem. Consectetur impedit omnis asperiores eligendi perferendis pariatur. Voluptatem alias vero voluptates rerum tenetur eos nihil.\nSit voluptatibus quis sapiente adipisci et fuga. Error facere odio placeat et et. Sed saepe sit doloribus molestiae. Hic dicta qui quae aliquid est enim qui ut."], ["name", "Product #4 - 2033"], ["shipping_category_id", 1], ["slug", "product-4-2033"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.644509"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:12:20.646737"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.648819' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.649917' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.651186' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.651732' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:20.655161"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:20.655161"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.656141' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.656646' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.657779' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.658257' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.662163' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.662747' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.663299' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:20.665092"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.665867' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.666379' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.666923' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.667546' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.668092' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:20.673003"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.673003"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2033' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.677304' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:20.681970' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:12:20.691055' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:20.694777"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:12:20.694777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:20.696913"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:12:20.696913"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'vickie.kunze@schuster.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231405154xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:20.699879"], ["email", "vickie.kunze@schuster.ca"], ["encrypted_password", "ed6f78f483f591c331ad7438f1d688f7953d5b9a45c85a74d7848e3f8cd160e142472ce04969ac391ae21957f4d7de6df4b0785c9bddda3f3b5a124760ab58d9"], ["login", "vickie.kunze@schuster.ca"], ["password_salt", "n1Drv6gZAVvgyjb3GKSx"], ["updated_at", "2014-11-12 20:12:20.699879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:20.702395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:20.703755"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:12:20.703755"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001355178' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R001355178%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001355178' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'N-rtjS-lWInRlxc-Wa7KSA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:12:20.709057"], ["currency", "USD"], ["email", "vickie.kunze@schuster.ca"], ["guest_token", "N-rtjS-lWInRlxc-Wa7KSA"], ["number", "R001355178"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:20.709057"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'F34PQ5C3' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:12:20.711919"], ["identifier", "F34PQ5C3"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:12:20.711919"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.714173' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-255244' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-255244"], ["updated_at", "2014-11-12 20:12:20.715395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'leatha@klocko.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231405885xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:20.728624"], ["email", "leatha@klocko.ca"], ["encrypted_password", "fc343abf59c12b69a0d1a0abbc48d47993a46c2038c561101566a0118aef47f4c03bbad0c9a8cb233c3b61e856a93d5f5d4da1cd9caf7d12c0be20037920e136"], ["login", "leatha@klocko.ca"], ["password_salt", "YEYWvzFUNBEsbx1Epsox"], ["updated_at", "2014-11-12 20:12:20.728624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:20.731628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:20.732979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:20.734575"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:20.734575"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R179749431' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R179749431%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R179749431' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'zu2Ch-MV7JzlZ08CJq7HhQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:12:20.740370"], ["currency", "USD"], ["email", "leatha@klocko.ca"], ["guest_token", "zu2Ch-MV7JzlZ08CJq7HhQ"], ["number", "R179749431"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:20.740370"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:20.752859"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:12:20.752859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 810945' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:20.756687"], ["description", "Qui hic quaerat quisquam eos nulla rerum qui magni."], ["name", "TaxCategory - 810945"], ["updated_at", "2014-11-12 20:12:20.756687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:20.760045"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:20.760045"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-6414' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-6414' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:20.751072"], ["created_at", "2014-11-12 20:12:20.764135"], ["description", "Omnis qui temporibus occaecati quidem. Harum accusamus non sed qui velit nihil. Nostrum asperiores quibusdam vitae ratione cupiditate quod odit debitis. Quis tempore possimus ut assumenda. Excepturi modi corrupti eos ipsa libero fugiat et vitae.\nIusto atque ullam eum ea animi quasi sed. Reiciendis qui est incidunt beatae quam est. Sint adipisci harum rerum dolorum nihil veniam est. Minima neque quam veritatis recusandae expedita voluptatem rerum occaecati."], ["name", "Product #5 - 6414"], ["shipping_category_id", 1], ["slug", "product-5-6414"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.764135"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:12:20.766379"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.768563' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.769731' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.771104' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.771668' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:20.775566"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:20.775566"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.776726' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.777328' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.778558' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.779100' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.783254' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.784859' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.786242' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:20.789352"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.790553' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.791296' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.792091' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.792985' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.793751' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:20.799277"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.799277"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-6414' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.803561' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:20.808105' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-2137' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-2137' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:20.815878"], ["created_at", "2014-11-12 20:12:20.819901"], ["description", "Accusantium est architecto fugit porro odio quasi. Est asperiores animi ea atque nulla dolorem dolore sequi. Nihil accusamus praesentium repellendus est vel et. Facilis dolor blanditiis quo voluptatum et doloremque excepturi.\nQuis et excepturi ratione aliquid. Quos in molestias quas voluptatum. Temporibus accusantium sint porro maiores. Cupiditate nihil animi ea eveniet quae debitis ab.\nQui velit eos sunt occaecati. Deserunt illum aut dolore ratione possimus dolores repellat. Cupiditate ut laudantium laborum animi et tempora voluptas similique. Quaerat fugit corporis quo iusto odit officiis vero consequatur.\nTotam voluptas et in quisquam. Beatae perspiciatis quis omnis facere expedita et aut impedit. Porro ea vel qui ullam qui magni iure.\nEum porro quasi qui animi omnis quos dolorem maxime. Aut at et esse officiis provident hic aperiam debitis. Id commodi enim ratione alias reiciendis. Eligendi et explicabo vero voluptas. Magni eligendi vero maiores doloremque non."], ["name", "Product #6 - 2137"], ["shipping_category_id", 1], ["slug", "product-6-2137"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.819901"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:12:20.822216"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.824466' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.825614' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.827049' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.827717' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:20.831048"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:20.831048"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.832004' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.832539' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.833669' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.834141' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.838131' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.839657' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.840922' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:20.844077"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.845227' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.845992' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.846772' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.847678' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.848477' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:20.853993"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.853993"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-2137' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.858241' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:20.862909' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:12:20.871804' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:20.875616"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:12:20.875616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:20.877836"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:12:20.877836"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hazle.hauck@towne.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231407556xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:20.880892"], ["email", "hazle.hauck@towne.co.uk"], ["encrypted_password", "8ec8604601ea30e6c21f8f5d89891679d0dca48843e8cf777d8ec964e8a4fd107552b66c02113455bd589b0e512f80eb3c46b9a16568f2549ad3c58a83dcf5b4"], ["login", "hazle.hauck@towne.co.uk"], ["password_salt", "hxMfML1eGJnBiY7xGsg1"], ["updated_at", "2014-11-12 20:12:20.880892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:20.883532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:20.884995"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:12:20.884995"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R625793971' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R625793971%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R625793971' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'g8GtrNV-I-Ua_5axVs9aEw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:12:20.890525"], ["currency", "USD"], ["email", "hazle.hauck@towne.co.uk"], ["guest_token", "g8GtrNV-I-Ua_5axVs9aEw"], ["number", "R625793971"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:20.890525"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '2B7A68ZU' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:12:20.893044"], ["identifier", "2B7A68ZU"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:12:20.893044"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.895451' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-534552' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-534552"], ["updated_at", "2014-11-12 20:12:20.896692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'eugenia_mckenzie@donnelly.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231404327xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:20.910089"], ["email", "eugenia_mckenzie@donnelly.ca"], ["encrypted_password", "f4bbbc223aa875737c5d373d07fa32ad0f5efcccb6e28907af4fb0cb4ba8de2768cd9313b3772aed61f599c0659cabc5c35a93ced4d92fff8df1b79e76ab4667"], ["login", "eugenia_mckenzie@donnelly.ca"], ["password_salt", "d4kBpUxBoNuwbCzU2iEQ"], ["updated_at", "2014-11-12 20:12:20.910089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:20.930960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:20.932391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:20.933817"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:20.933817"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R422756812' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R422756812%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R422756812' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'i9QWS9pvblrmdHXzdADpGw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:12:20.939327"], ["currency", "USD"], ["email", "eugenia_mckenzie@donnelly.ca"], ["guest_token", "i9QWS9pvblrmdHXzdADpGw"], ["number", "R422756812"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:20.939327"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:20.954230"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:12:20.954230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 713870' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:20.957071"], ["description", "Cum quo incidunt dignissimos ut ratione nemo enim."], ["name", "TaxCategory - 713870"], ["updated_at", "2014-11-12 20:12:20.957071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:20.960937"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:20.960937"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-4053' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-4053' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:20.952676"], ["created_at", "2014-11-12 20:12:20.964837"], ["description", "Unde odio explicabo eos hic nisi tempore occaecati. Quisquam magni mollitia laboriosam exercitationem qui delectus repellendus voluptatem. Veniam laudantium non beatae quia in.\nIncidunt nostrum nihil magni ut tempore ea pariatur. Quis eos et atque omnis voluptas consequuntur. Molestiae eligendi quibusdam numquam velit ut. Ut ab dolor ea consequuntur.\nDelectus velit est quaerat dicta corporis dignissimos sapiente molestiae. Quasi tenetur quod laudantium voluptatem aspernatur eveniet error. Ut eos animi voluptatem ea possimus. Consectetur et qui aut enim cumque voluptatem veritatis. Dolorem est qui officia dolorum perferendis veritatis inventore mollitia.\nQuaerat dolores quos non quo vel qui. Dolorem temporibus culpa rerum ullam eum aspernatur sit. Tenetur sed aut qui nesciunt voluptas impedit rerum commodi. Deleniti ut est minus sequi illo.\nEa quo facere beatae suscipit laboriosam. Ipsam id magnam tempora a qui voluptatem eligendi. Eius accusantium autem perspiciatis ut quibusdam atque repudiandae. Sint ipsa error doloribus voluptatum ut non repellat ut."], ["name", "Product #7 - 4053"], ["shipping_category_id", 1], ["slug", "product-7-4053"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.964837"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:12:20.967030"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.969047' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.970169' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.971475' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.972049' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:20.975354"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:20.975354"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.976278' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.976792' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.977913' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.978394' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.982314' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.982852' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.983373' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:20.987297"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.988672' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.989637' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.990583' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.991520' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:20.992255' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:20.998585"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:20.998585"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-4053' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.002915' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:21.007555' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-1519' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-1519' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:21.013956"], ["created_at", "2014-11-12 20:12:21.017698"], ["description", "Dolor unde qui fugiat corporis esse nemo ex. Asperiores illum iste animi est. Nisi distinctio sunt sit aliquam. Expedita quod reiciendis commodi voluptatum.\nSunt ea et optio rerum aperiam. Enim laboriosam expedita molestiae rerum est hic. Asperiores incidunt unde expedita quis quis. Sunt voluptatem rem ea libero harum et.\nNeque nihil temporibus in hic quod eos expedita ab. Enim ad nostrum iure dolorem aut. Impedit delectus culpa aut nobis et. Consequatur praesentium est repellendus repudiandae reprehenderit.\nSit nihil fugiat est quasi molestias. Sunt voluptatem fugiat dicta est aspernatur nemo. Odio aut reprehenderit expedita reiciendis placeat inventore tenetur. Quod sit delectus quidem aspernatur dolores accusantium. Quia recusandae fuga quaerat sed."], ["name", "Product #8 - 1519"], ["shipping_category_id", 1], ["slug", "product-8-1519"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:21.017698"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:12:21.019862"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.021952' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.023063' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.024336' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.024864' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:21.028196"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:21.028196"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.029130' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.029664' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.030775' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.031256' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.035164' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.035710' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.036254' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:21.038047"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.038776' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.039308' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.039835' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.040467' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.040975' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:21.045749"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:21.045749"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-1519' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.049919' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:21.054424' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:12:21.063163' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:21.066759"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:12:21.066759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:21.068741"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:12:21.068741"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'alena.auer@reynolds.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231419968xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:21.071630"], ["email", "alena.auer@reynolds.com"], ["encrypted_password", "533f72f0a04e6d9ef3169ede8a0c3d0b8be309b7b587483c02a5052c8dfeeb7acf263e7dea54688d72ab61b8f74d7216bba8982c0498fd6120749b35a4e394e4"], ["login", "alena.auer@reynolds.com"], ["password_salt", "B8cABpTV5wJssEnRHcux"], ["updated_at", "2014-11-12 20:12:21.071630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:21.074181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:21.075595"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:12:21.075595"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R303794237' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R303794237%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R303794237' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '1kWCrDxBOTdpmY-ZLNyV4g' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:12:21.080928"], ["currency", "USD"], ["email", "alena.auer@reynolds.com"], ["guest_token", "1kWCrDxBOTdpmY-ZLNyV4g"], ["number", "R303794237"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:21.080928"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '8DRFYACE' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:12:21.083280"], ["identifier", "8DRFYACE"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:12:21.083280"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.085401' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-352300' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-352300"], ["updated_at", "2014-11-12 20:12:21.086568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'gilberto_stokes@kohler.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415823141849xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:21.099869"], ["email", "gilberto_stokes@kohler.name"], ["encrypted_password", "bf2b5948815dd95046b9d7d19f8598fddc1ed6d7c4dad990c6bb987394e61bb4d6bb9c9128dec1dd77581f789820d55d7f2ab0b0fbfc2168a05e9b83f447d309"], ["login", "gilberto_stokes@kohler.name"], ["password_salt", "SYfsM9sbxYzow4N4Zv_Q"], ["updated_at", "2014-11-12 20:12:21.099869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:21.102896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:21.104219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:21.105762"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:21.105762"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R299146515' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R299146515%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R299146515' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XA55xx52tdyT6YYSnnAcWw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:12:21.111255"], ["currency", "USD"], ["email", "gilberto_stokes@kohler.name"], ["guest_token", "XA55xx52tdyT6YYSnnAcWw"], ["number", "R299146515"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:21.111255"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:21.118326"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:12:21.118326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 1181' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:21.121144"], ["description", "Deserunt officiis facilis sit voluptates."], ["name", "TaxCategory - 1181"], ["updated_at", "2014-11-12 20:12:21.121144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:21.124555"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:21.124555"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-7022' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-7022' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:21.117104"], ["created_at", "2014-11-12 20:12:21.128268"], ["description", "Dolores consequatur qui enim labore. Commodi ut sed doloribus dolor a rem eius omnis. Odit consectetur et minima voluptate excepturi soluta. Cumque necessitatibus ea aspernatur eaque voluptatem error eum quo."], ["name", "Product #9 - 7022"], ["shipping_category_id", 1], ["slug", "product-9-7022"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:21.128268"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:12:21.130440"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.132750' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.134030' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.135367' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.135935' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:21.139292"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:21.139292"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.140230' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.140748' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.141924' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.142519' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.147389' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.148040' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.148654' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:21.150433"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.151164' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.151676' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.152336' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.152919' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.153358' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:21.158207"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:21.158207"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-7022' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.162413' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:21.166981' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-3613' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-3613' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:21.171499"], ["created_at", "2014-11-12 20:12:21.175105"], ["description", "Odit alias ut dolorem dicta qui et veniam explicabo. Nobis expedita ea maxime consequuntur consequatur reprehenderit mollitia repellat. Quasi veritatis est aut maxime pariatur similique. Impedit dolorem nostrum quam aut."], ["name", "Product #10 - 3613"], ["shipping_category_id", 1], ["slug", "product-10-3613"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:21.175105"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:12:21.177215"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.179540' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.180590' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.181840' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.182372' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:21.185596"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:21.185596"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.186555' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.187061' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.188141' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.188620' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.192424' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.192944' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.193435' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:21.195206"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.195946' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.196450' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.196952' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.197572' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.198029' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:21.202622"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:21.202622"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-3613' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.206790' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:21.211473' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:12:21.220207' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:12:21.231415"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:12:21.231415"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:21.234834' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.235405' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:21.240116"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:12:21.240116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:21.242453"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:12:21.242453"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kailey@breitenberg.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582314175910xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:21.245403"], ["email", "kailey@breitenberg.biz"], ["encrypted_password", "58b166511311f5448deaae8ee396d4712b8e369c32fd95020a463cbe6ae7d7997be115b45bf0d666e5269bc7f46e9f5d422a0d7e9ad84caa7670f7d736201a1a"], ["login", "kailey@breitenberg.biz"], ["password_salt", "iGzN4bSWchrrhUxzPHoL"], ["updated_at", "2014-11-12 20:12:21.245403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:21.247991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:21.249449"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:12:21.249449"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R004152494' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R004152494%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R004152494' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'tUmqTeJZktKr4_ECu4dBHQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:12:21.254832"], ["currency", "USD"], ["email", "kailey@breitenberg.biz"], ["guest_token", "tUmqTeJZktKr4_ECu4dBHQ"], ["number", "R004152494"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:21.254832"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'P8FLAYJC' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:12:21.257228"], ["identifier", "P8FLAYJC"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:12:21.257228"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.259432' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-004220' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-004220"], ["updated_at", "2014-11-12 20:12:21.260575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kole.russel@zulaufrunolfsson.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582314193511xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:21.274604"], ["email", "kole.russel@zulaufrunolfsson.ca"], ["encrypted_password", "d53dfc3d45bd28ccff4ff499f1d164fbd5d747a96c2710cb312d57e09de769da4fb1a492a6453f62c804408725837e9ee7e9f13371964f16da7c55a29a45dada"], ["login", "kole.russel@zulaufrunolfsson.ca"], ["password_salt", "wNDx5tpt37CfVaW5soQ2"], ["updated_at", "2014-11-12 20:12:21.274604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:21.277730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:21.279064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:21.280612"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:21.280612"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R406966896' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R406966896%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R406966896' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '14HAIw1hyEryPl_Rxn3qPw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:12:21.286423"], ["currency", "USD"], ["email", "kole.russel@zulaufrunolfsson.ca"], ["guest_token", "14HAIw1hyEryPl_Rxn3qPw"], ["number", "R406966896"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:21.286423"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:21.294353"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:12:21.294353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 359179' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:21.297034"], ["description", "Pariatur consequuntur nostrum perferendis quas molestiae illo sint."], ["name", "TaxCategory - 359179"], ["updated_at", "2014-11-12 20:12:21.297034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:21.300374"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:21.300374"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-989' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-989' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:21.293189"], ["created_at", "2014-11-12 20:12:21.304009"], ["description", "Quae voluptatem quasi dolorum ab ipsum quos a. Beatae odit praesentium hic minus. Non eos perferendis a architecto nostrum in itaque ut. Qui maiores non quidem explicabo tempore. Velit laboriosam sunt eos voluptas eum.\nDeserunt sint quisquam similique quibusdam tempore. Aut rerum et ex id aspernatur labore enim nihil. Nulla voluptatem aliquid repudiandae voluptates impedit. Voluptas sequi sed modi accusamus nostrum."], ["name", "Product #11 - 989"], ["shipping_category_id", 1], ["slug", "product-11-989"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:21.304009"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:12:21.306219"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.308576' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.309783' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.311415' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.312133' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:21.315878"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:21.315878"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.316896' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.317441' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.318632' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.319131' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.323107' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.323644' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.325046' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:21.328708"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.330075' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.330961' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.331705' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.332649' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.333405' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:21.339429"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:21.339429"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-989' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.344020' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:21.348736' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-2339' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-2339' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:21.355216"], ["created_at", "2014-11-12 20:12:21.359007"], ["description", "Animi voluptatem voluptates aut dignissimos sed quibusdam. Aut distinctio temporibus nesciunt quia est labore alias laboriosam. Id vel non ratione dolor qui corrupti.\nAdipisci eius et hic dolorum illo voluptatem odio praesentium. Et et fugit distinctio voluptatem beatae velit excepturi. Molestias modi cupiditate cum minima. Praesentium voluptatem laudantium voluptatem molestiae. Sint tenetur numquam corporis quisquam ad.\nImpedit repellat corporis est quia nulla. Est ut voluptas et est eos et aut. Dolore necessitatibus quaerat deleniti omnis tempora occaecati sequi.\nQuidem ut vero porro qui exercitationem recusandae odio. Velit a accusantium consequatur tempore quia dolorum. Fugiat error facilis accusantium nihil optio adipisci tempore.\nImpedit fugit doloribus perspiciatis quis quasi perferendis. Perspiciatis totam velit ducimus enim corrupti ut tempora. Molestiae nesciunt magni eaque dolor et."], ["name", "Product #12 - 2339"], ["shipping_category_id", 1], ["slug", "product-12-2339"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:21.359007"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:12:21.361162"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.363191' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.364305' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.365583' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.366136' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:21.369507"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:21.369507"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.370448' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.370974' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.372104' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.372616' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.376544' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.377075' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.377613' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:21.379480"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.380225' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.380801' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.381356' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.382009' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:21.382469' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:21.387355"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:21.387355"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-2339' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.391627' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:21.396280' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:12:21.419550' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:12:21.421395"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:12:21.421395"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:21.424159' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.424691' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:21.428592"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:12:21.428592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:21.430615"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:12:21.430615"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'waylon@windler.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231418312xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:21.433650"], ["email", "waylon@windler.co.uk"], ["encrypted_password", "f8cf9c6886895e7fceb39bd9d41cb87e1bdd956a4bb00be40eb91c6743bd2d847458a1ab3b8644e48b51cd0469cd62a258c3aa7fab8fb1f4daf19a7b30830126"], ["login", "waylon@windler.co.uk"], ["password_salt", "uqeMv_VmGiqCTyXk2gsU"], ["updated_at", "2014-11-12 20:12:21.433650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:21.436196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:21.437612"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:12:21.437612"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R681465512' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R681465512%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R681465512' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'wQllASgvFyM17sqGOugiQw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:12:21.442888"], ["currency", "USD"], ["email", "waylon@windler.co.uk"], ["guest_token", "wQllASgvFyM17sqGOugiQw"], ["number", "R681465512"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:21.442888"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '8QQFZ2DC' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:12:21.445276"], ["identifier", "8QQFZ2DC"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:12:21.445276"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.447426' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-012142' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-012142"], ["updated_at", "2014-11-12 20:12:21.448605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'filiberto@kautzerrenner.biz' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231777381xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:57.381981"], ["email", "filiberto@kautzerrenner.biz"], ["encrypted_password", "686c5a07928f1ae0731ead5dceedf09a52756308de955234205f0ee1aa1d0549d2eecb17ea324b8d047d8b27ac0a0291233fa26db6863f7232dd6d76b75289ef"], ["login", "filiberto@kautzerrenner.biz"], ["password_salt", "KmeMiNZwXL_XUA41muZp"], ["updated_at", "2014-11-12 20:12:57.381981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:57.420643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:57.426065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:57.434098"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:57.434098"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:57.456109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:57.457569"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:12:57.457569"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R593363119' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R593363119%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R593363119' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'mrJDt2j97hftNbFMPa9_Lw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:12:57.474702"], ["currency", "USD"], ["email", "filiberto@kautzerrenner.biz"], ["guest_token", "mrJDt2j97hftNbFMPa9_Lw"], ["number", "R593363119"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 20:12:57.474702"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:57.525090"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:12:57.525090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 121475' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:57.534745"], ["description", "Reiciendis nobis in dolorem consequatur non ut."], ["name", "TaxCategory - 121475"], ["updated_at", "2014-11-12 20:12:57.534745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:57.558085"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:57.558085"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-6735' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-6735' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:57.521312"], ["created_at", "2014-11-12 20:12:57.563129"], ["description", "Nulla quo et sed quam nobis in voluptatum. Earum dolores expedita magni labore itaque. Molestiae vero ipsa quo natus ipsum aut ratione laboriosam. Quod ipsum repudiandae minus voluptatibus eum deleniti cumque ut. Facere dicta sit sed nulla."], ["name", "Product #1 - 6735"], ["shipping_category_id", 1], ["slug", "product-1-6735"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:57.563129"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:12:57.565785"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.573198' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.574490' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.588161' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.589322' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:57.611348"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:57.611348"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.612548' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.613121' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.614277' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.614757' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.624836' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.625421' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.625942' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:57.627622"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.628772' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.629240' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.629686' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.630224' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.630642' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:57.647308"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:57.647308"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-6735' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:57.662960' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:57.724054' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-9266' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-9266' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:57.729686"], ["created_at", "2014-11-12 20:12:57.733541"], ["description", "Tempore fugiat odit nihil itaque nisi dolores rerum. Eum ducimus nobis vel beatae at. Qui facere porro dicta sapiente. Magni fuga quis quos ut consequatur.\nCulpa alias quia amet perspiciatis mollitia. Harum aliquid est maxime tempora. Laudantium ut quasi quia rerum et.\nProvident ut dolorem corporis quod unde dolor ut iste. Ut laboriosam nemo earum officia facilis quia. Aliquid cupiditate veniam quod dolorum saepe. Et ut eius assumenda quis ratione."], ["name", "Product #2 - 9266"], ["shipping_category_id", 1], ["slug", "product-2-9266"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:57.733541"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:12:57.735621"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.737532' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.738601' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.739810' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.740401' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:57.743677"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:57.743677"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.744581' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.745078' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.746117' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.746570' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.750412' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.750974' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.751469' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:57.753195"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.753956' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.754456' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.754932' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.755522' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.755986' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:57.760617"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:57.760617"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-9266' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:57.765643' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:57.770929' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-9351' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-9351' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:57.775451"], ["created_at", "2014-11-12 20:12:57.779075"], ["description", "Sed placeat ratione minima voluptas qui. Eum adipisci perferendis sunt at. Beatae pariatur iusto eum suscipit eligendi incidunt. Qui consectetur quo et consequuntur sit et. Et est iste asperiores nobis rerum labore doloremque quaerat."], ["name", "Product #3 - 9351"], ["shipping_category_id", 1], ["slug", "product-3-9351"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:57.779075"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:12:57.781168"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.783030' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.784042' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.785264' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.785797' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:57.788619"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:57.788619"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.789499' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.789999' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.791035' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.791494' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.795218' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.795683' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.796179' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:57.797772"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.798403' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.798888' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.799325' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.799865' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.800311' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:57.804843"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:57.804843"], ["variant_id", 3]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-9351' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:57.814682' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:57.821495' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-9077' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-9077' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:57.825788"], ["created_at", "2014-11-12 20:12:57.829451"], ["description", "Aut laudantium sed quae vero illum quod maiores blanditiis. Voluptates sapiente vel ea consequuntur eveniet. Et amet dolorem ratione sunt sed dolor tempora vero."], ["name", "Product #4 - 9077"], ["shipping_category_id", 1], ["slug", "product-4-9077"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:57.829451"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:12:57.831522"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.833435' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.834483' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.835730' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.836282' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:57.839163"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:57.839163"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.840061' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.840556' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.841611' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.842100' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.845957' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.846468' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.847010' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:57.848545"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.849215' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.849675' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.850169' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.850715' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.851211' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:57.855970"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:57.855970"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-9077' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:57.861919' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:57.867527' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-9912' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-9912' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:57.872869"], ["created_at", "2014-11-12 20:12:57.876653"], ["description", "Aut ducimus deleniti dignissimos et magni sit. Ratione voluptas expedita hic recusandae veritatis tenetur. Debitis neque minus iste omnis nisi eligendi sint.\nNesciunt sed alias consectetur eum inventore. Odit cum quidem laudantium officiis minus odio inventore amet. Quia distinctio dicta quaerat eum. Excepturi harum repellendus eligendi molestias ex saepe. Atque eos aperiam quos et dolorem qui id."], ["name", "Product #5 - 9912"], ["shipping_category_id", 1], ["slug", "product-5-9912"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:57.876653"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:12:57.878877"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.881019' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.882339' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.883632' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.884215' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:57.887195"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:57.887195"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.888134' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.888708' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.889841' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.890321' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.894216' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.894712' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.895213' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:57.896852"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.897532' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.897985' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.898454' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.899004' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.899480' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:57.904905"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:57.904905"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-9912' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:57.910642' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:57.916612' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:57.934534"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:57.934534"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:57.938294"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:57.938294"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.939206' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.940410' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.941722' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.942279' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:57.945255"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:57.945255"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.946326' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.947358' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.948503' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.948993' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:57.951387"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:57.951387"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.952249' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.953257' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.954451' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.955028' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:57.958316"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:57.958316"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.959193' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.960241' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.961404' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.961889' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:57.964215"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:57.964215"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.965031' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.966211' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.967443' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:57.967995' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H01411134678%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 20:12:57.974432"], ["number", "H01411134678"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 20:12:57.974432"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:57.975579' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:57.981482' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.001215"], ["description", "Maiores fugit qui odio facilis sit autem sapiente."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 20:12:58.001215"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.004222"], ["updated_at", "2014-11-12 20:12:58.004222"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:58.046831"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 20:12:58.046831"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 20:12:58.047865"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 20:12:58.047865"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.049665"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 20:12:58.049665"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 20:12:58.064169"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 20:12:58.064169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.078430"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:58.078430"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.079587' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.080221' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.081696"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:58.081696"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.082343' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.082776' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.084114"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:58.084114"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.084777' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.085207' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.086576"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:58.086576"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.087425' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.087881' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.089217"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:58.089217"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.089880' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.090377' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 20:12:58.106567' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.127829"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:12:58.127829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.155499"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:12:58.155499"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kenyatta@berge.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231781462xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:58.159028"], ["email", "kenyatta@berge.com"], ["encrypted_password", "1b8050ed81ec396fa1aaf6997db5f6e5cd65de62083e8d6e00482d7aeaef449ae98a09b67f1b6c472d3db3a07cd7816e3c7d0125ea65344b0002874da8100e09"], ["login", "kenyatta@berge.com"], ["password_salt", "y3_RR5ys-AFWUF42nEQN"], ["updated_at", "2014-11-12 20:12:58.159028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:58.161596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:58.162955"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 20:12:58.162955"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R034234606' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R034234606%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R034234606' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'n9p0X5AXHDIFeu5xiuTEzA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 20:12:58.168219"], ["currency", "USD"], ["email", "kenyatta@berge.com"], ["guest_token", "n9p0X5AXHDIFeu5xiuTEzA"], ["number", "R034234606"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:58.168219"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'F7ZTCWMK' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:12:58.179739"], ["identifier", "F7ZTCWMK"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:12:58.179739"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.182664' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-222320' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-222320"], ["updated_at", "2014-11-12 20:12:58.183981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (173.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'joanie.schaefer@mcglynn.info' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231785973xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:58.376588"], ["email", "joanie.schaefer@mcglynn.info"], ["encrypted_password", "728376de1bd5262bd8346c32b6093eec9238f56e0b4df4462025520fd4c6d961002ce42f91084c9589a2bf952a85cb2f3cec2e5a2e5432c5296879207a98c2d7"], ["login", "joanie.schaefer@mcglynn.info"], ["password_salt", "yGZpXjbbcSP1WGYNrNTw"], ["updated_at", "2014-11-12 20:12:58.376588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:58.379832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:58.381208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:58.382589"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:58.382589"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:58.385084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:58.386359"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:12:58.386359"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R393662699' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R393662699%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R393662699' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NK49MOkSXGviSyeNr8EqfA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:12:58.392334"], ["currency", "USD"], ["email", "joanie.schaefer@mcglynn.info"], ["guest_token", "NK49MOkSXGviSyeNr8EqfA"], ["number", "R393662699"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 20:12:58.392334"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:58.400389"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:12:58.400389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 990466' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.402998"], ["description", "Tempore doloribus sit deserunt porro rerum nesciunt."], ["name", "TaxCategory - 990466"], ["updated_at", "2014-11-12 20:12:58.402998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:58.406198"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:58.406198"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-4317' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-4317' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:58.399332"], ["created_at", "2014-11-12 20:12:58.410173"], ["description", "Ullam sit optio cupiditate maxime qui vitae soluta autem. Saepe porro libero eveniet corrupti nisi. Aspernatur quis adipisci quis qui minima ducimus. Veritatis placeat sit eum aut voluptatum quasi quidem. Occaecati blanditiis ut repellat et adipisci laborum dolor temporibus.\nSint qui consectetur quisquam architecto quia et. Minima voluptatem veritatis dicta quia eligendi aliquam nihil rerum. Animi iusto sed mollitia omnis at et.\nSint commodi ut cum non aliquid. Ducimus dignissimos tenetur fuga et. Et repudiandae eos nostrum cum."], ["name", "Product #6 - 4317"], ["shipping_category_id", 1], ["slug", "product-6-4317"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.410173"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:12:58.412646"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.415195' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.416522' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.417876' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.418526' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.421546"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:58.421546"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.422530' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.423078' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.424189' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.424688' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.428860' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.429387' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.429888' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:58.431462"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.432126' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.432595' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.433051' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.433631' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.434139' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.4ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:58.438829"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.438829"], ["variant_id", 1]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-4317' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.449103' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:58.455484' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-1987' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-1987' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:58.460601"], ["created_at", "2014-11-12 20:12:58.464283"], ["description", "Aut deserunt sit voluptatem saepe eum. Id dolores pariatur ipsum quasi quam. Velit et error quis et recusandae. Ad quia sed temporibus nostrum mollitia cumque rem est.\nAsperiores dolorem quis quia nesciunt tempore. Quibusdam sed aliquid qui dignissimos autem voluptatem ducimus ipsam. Error animi eius dolor vel dicta. Id enim ipsa autem alias quo blanditiis occaecati. Atque sit porro placeat facere ullam ea non."], ["name", "Product #7 - 1987"], ["shipping_category_id", 1], ["slug", "product-7-1987"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.464283"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:12:58.466358"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.468291' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.469338' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.470517' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.471078' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.473871"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:58.473871"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.474793' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.475275' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.476334' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.476802' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.480571' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.481079' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.481572' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:58.483093"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.483761' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.484214' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.484682' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.485228' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.485662' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:58.490311"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.490311"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-1987' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.495860' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:58.501280' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-2368' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-2368' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:58.506397"], ["created_at", "2014-11-12 20:12:58.510042"], ["description", "Pariatur ad ipsam libero quia consequuntur id quasi quas. Quo blanditiis vitae dolor fugit qui. Voluptas necessitatibus et modi sapiente perferendis quasi amet. Asperiores omnis sint impedit ullam qui consequatur.\nAliquam ut nam sit eaque ea numquam. Est nihil quo quis quam architecto aut et praesentium. Quo accusantium eaque consequatur ratione. Explicabo labore consequatur nobis aut. Non iste nihil dolore nobis minus sit."], ["name", "Product #8 - 2368"], ["shipping_category_id", 1], ["slug", "product-8-2368"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.510042"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:12:58.512144"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.513939' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.514954' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.516131' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.516670' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.519454"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:58.519454"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.520375' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.520859' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.521924' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.522395' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.526119' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.526655' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.527194' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:58.528751"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.529375' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.529825' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.530307' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.530913' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.531342' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:58.536016"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.536016"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-2368' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.541791' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:58.547321' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-1670' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-1670' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:58.551682"], ["created_at", "2014-11-12 20:12:58.555297"], ["description", "Vel praesentium consectetur ex aut fuga officiis. Eaque quis ut qui veritatis qui vel. Eos sed quos distinctio quo qui. Incidunt ea rem dolore eos animi."], ["name", "Product #9 - 1670"], ["shipping_category_id", 1], ["slug", "product-9-1670"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.555297"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:12:58.557374"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.559261' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.560303' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.561468' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.562001' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.564812"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:58.564812"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.565690' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.566185' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.567224' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.567698' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.571474' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.571988' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.572487' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:58.574078"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.574690' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.575137' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.575612' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.576160' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.576597' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:58.581216"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.581216"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-1670' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.586819' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:58.592216' WHERE "spree_line_items"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-345' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-345' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:58.597415"], ["created_at", "2014-11-12 20:12:58.601678"], ["description", "Non odit ut rerum consequatur. Esse voluptatem id quo nesciunt reiciendis sunt illo earum. Fugit voluptates qui impedit harum magni fugiat minus. Molestiae vel dolor culpa voluptatem iusto modi. Magnam maiores ipsum quasi ab.\nAnimi vel ducimus tenetur sed amet. Minus voluptas accusamus tempora cupiditate ad facere. Quas eum fuga nam maxime ea. Voluptatem ad ullam earum omnis ipsum quas excepturi dolor."], ["name", "Product #10 - 345"], ["shipping_category_id", 1], ["slug", "product-10-345"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.601678"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:12:58.603873"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.605898' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.606932' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.608113' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.608648' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.611541"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:58.611541"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.612446' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.612937' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.614006' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.614476' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.618226' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.618808' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.619308' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:58.620898"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.621535' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.621993' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.622451' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.622992' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.623513' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:58.628095"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.628095"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-345' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.633778' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:58.639324' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:58.644263"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:58.644263"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.647817"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:58.647817"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.648710' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.649826' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.651104' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.651629' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.654336"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:58.654336"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.655190' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.656239' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.657359' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.657828' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.660197"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:58.660197"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.661056' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.662086' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.663225' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.663815' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.667298"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:58.667298"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.668236' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.669333' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.670497' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.671006' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.673390"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:58.673390"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.674237' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.675271' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.676996' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.677545' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H10643513318%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 20:12:58.680418"], ["number", "H10643513318"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 20:12:58.680418"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.681428' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:58.685128' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.688960"], ["description", "Ut dolores dicta sapiente natus impedit aut."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 20:12:58.688960"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.692551"], ["updated_at", "2014-11-12 20:12:58.692551"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:58.705686"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 20:12:58.705686"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 20:12:58.706503"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 20:12:58.706503"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.707860"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 20:12:58.707860"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 20:12:58.710748"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 20:12:58.710748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.714458"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:58.714458"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.715261' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.715856' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.717205"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:58.717205"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.717869' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.718327' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.719629"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:58.719629"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.720272' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.720708' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.722331"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:58.722331"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.722976' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.723435' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.724734"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:58.724734"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.725382' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.725826' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 20:12:58.733973' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.738004"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:12:58.738004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.740120"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:12:58.740120"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'valentin@considine.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231786054xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:58.743093"], ["email", "valentin@considine.co.uk"], ["encrypted_password", "a8273396bfb0349a22ec4b43a6d0addaf030116fc70ff9ae28c11a046323135c31bc00dbf2832883cee45efad28ab2cc97b2ddef5039e9cf9056f2d597e9a9a8"], ["login", "valentin@considine.co.uk"], ["password_salt", "dw5seEokdrjsx25hP-er"], ["updated_at", "2014-11-12 20:12:58.743093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:58.745722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:58.747135"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 20:12:58.747135"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R491218793' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R491218793%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R491218793' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Qy5tQ7bh4ztCydgdkkF9-Q' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 20:12:58.753113"], ["currency", "USD"], ["email", "valentin@considine.co.uk"], ["guest_token", "Qy5tQ7bh4ztCydgdkkF9-Q"], ["number", "R491218793"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:58.753113"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WBP3SMHC' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:12:58.755568"], ["identifier", "WBP3SMHC"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:12:58.755568"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.757879' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-413430' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-413430"], ["updated_at", "2014-11-12 20:12:58.759112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (14.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (5.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'alexanne_considine@grantsatterfield.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231788015xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:58.795017"], ["email", "alexanne_considine@grantsatterfield.us"], ["encrypted_password", "5bd36932b2f48d03f6a3e455a55e6d5e1c6980259511448113d1112a692059b51f8bcfd8fcc8bd5cc4def51d8bdfa5ebe91bb3ab1557de3eefaf033ec7c40c09"], ["login", "alexanne_considine@grantsatterfield.us"], ["password_salt", "AFWRZFcz8Q3UiZjDfcss"], ["updated_at", "2014-11-12 20:12:58.795017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:58.798249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:58.799636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:58.801537"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:58.801537"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:58.804047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:58.805346"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:12:58.805346"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R358976832' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R358976832%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R358976832' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'zwbG9dPpmotnVBkm_VYZHg' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:12:58.815674"], ["currency", "USD"], ["email", "alexanne_considine@grantsatterfield.us"], ["guest_token", "zwbG9dPpmotnVBkm_VYZHg"], ["number", "R358976832"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 20:12:58.815674"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:58.824429"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:12:58.824429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 323584' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:58.827301"], ["description", "Est repudiandae ex quaerat aut dolorem placeat dolorum quas."], ["name", "TaxCategory - 323584"], ["updated_at", "2014-11-12 20:12:58.827301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:58.830824"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:58.830824"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-7121' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-7121' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:58.823376"], ["created_at", "2014-11-12 20:12:58.835043"], ["description", "Perspiciatis quis sapiente eum at modi non. Earum reprehenderit itaque consequatur accusantium nihil vitae dignissimos aut. Voluptatem id et non quisquam fugit repudiandae facilis.\nDolorum voluptas autem qui culpa dicta. Et earum enim magni deleniti. Labore culpa ullam corporis repellendus fugiat.\nEx nihil similique voluptatum et. Debitis dolor rerum autem eligendi perspiciatis aut. Quidem accusamus in consequatur ab voluptas saepe itaque error."], ["name", "Product #11 - 7121"], ["shipping_category_id", 1], ["slug", "product-11-7121"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.835043"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:12:58.837622"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.839688' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.840791' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.842054' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.842612' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.845614"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:58.845614"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.846561' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.847045' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.848117' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.848594' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.852502' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.853029' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.853525' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:58.855159"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.855827' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.856321' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.856799' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.857374' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.857835' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:58.862509"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.862509"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-7121' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.868422' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:58.873913' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1605' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1605' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:58.878416"], ["created_at", "2014-11-12 20:12:58.882063"], ["description", "Aperiam ad est non autem nisi et. Dolorem voluptatem dolorem optio ratione sed consectetur qui hic. Consectetur reprehenderit ut quod eligendi. Sit nulla minus similique temporibus. Nihil consequatur sunt quia rerum sit quia odio."], ["name", "Product #12 - 1605"], ["shipping_category_id", 1], ["slug", "product-12-1605"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.882063"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:12:58.884158"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.886068' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.887127' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.888310' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.888905' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.891667"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:58.891667"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.892591' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.893103' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.894202' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.894675' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.898463' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.898999' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.899538' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:58.901145"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.901788' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.902257' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.902720' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.903270' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.903703' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:58.908598"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.908598"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1605' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.919119' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:58.925367' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-6272' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-6272' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:58.930913"], ["created_at", "2014-11-12 20:12:58.934492"], ["description", "Corrupti placeat error et sequi aliquid ad. Perspiciatis et placeat et nihil porro voluptates ratione eius. Dolores iste quidem ea ea dolorum doloremque quia. Excepturi nihil incidunt modi natus delectus quis quo.\nFacere id qui qui et maxime voluptates officia. Ex officia et explicabo officiis odit aspernatur modi et. Doloribus eum et inventore suscipit ab facere. Et molestiae qui est ex at ipsum distinctio voluptatibus.\nVoluptas deserunt enim qui sint quis. Tempore esse officiis perspiciatis ad placeat praesentium recusandae. Nihil voluptas facilis consectetur eaque id aut doloribus. Provident aut deleniti et impedit vero vitae."], ["name", "Product #13 - 6272"], ["shipping_category_id", 1], ["slug", "product-13-6272"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.934492"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-11-12 20:12:58.936571"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.938444' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.939503' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.940799' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.941386' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.944252"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:58.944252"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.945130' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.945629' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.946684' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.947144' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.950939' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.951443' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.951943' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-13' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:58.953503"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.954140' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.954590' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.955062' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.955607' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.956051' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:58.960588"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.960588"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-6272' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.966312' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:58.971761' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-3521' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-3521' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:58.979074"], ["created_at", "2014-11-12 20:12:58.982713"], ["description", "At modi ea ut dolores ipsam. Quo veritatis amet sit qui eos. Architecto cumque et consectetur fuga. Quasi occaecati voluptatem eum animi nobis doloribus. Consequatur et sit ab et omnis eligendi.\nAutem aliquam tempore praesentium ullam ut ipsum ex. Voluptatem sunt repellat ea quam porro. Debitis rerum repellendus quam qui quos. Voluptas expedita odit sed ipsum. Sapiente nulla sed dolores dolorem rerum deserunt consequatur.\nSint veniam nobis soluta cumque laboriosam aliquam. Exercitationem itaque saepe aut molestias corrupti non. Voluptates est sed ut at. Repudiandae cumque omnis quis numquam illum et. Adipisci occaecati sed omnis quia atque amet est.\nAspernatur nihil officia magnam magni. Aut non eum repellat beatae ut qui commodi. Et facere est expedita sunt error aut necessitatibus. Cumque autem omnis praesentium sunt enim iure odit occaecati.\nNumquam maxime et omnis minima distinctio et. Aut autem occaecati dicta repellat voluptatum. Laudantium reprehenderit aut qui ipsam doloremque occaecati quae inventore. Pariatur nihil vitae sit sint error. Voluptas dolore sapiente sed blanditiis laudantium vel corporis rerum."], ["name", "Product #14 - 3521"], ["shipping_category_id", 1], ["slug", "product-14-3521"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:58.982713"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-14"], ["updated_at", "2014-11-12 20:12:58.984851"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.986757' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.987775' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.988959' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.989494' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:58.992315"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:58.992315"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.993197' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.993695' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.994749' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:58.995220' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.998982' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.999493' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.000029' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-14' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.001642"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.002277' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.002730' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.003201' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.003763' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.004194' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:59.009453"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.009453"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-3521' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.015063' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.020491' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-8389' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-8389' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:59.027191"], ["created_at", "2014-11-12 20:12:59.030859"], ["description", "Quaerat eum laudantium quia at earum ipsa iure. Labore exercitationem deserunt eveniet maxime dolores in. Vel sunt corrupti consequatur velit minima est sed.\nError autem unde dolor a. Velit eos consectetur nulla commodi. Ea aut inventore voluptates tempora amet mollitia est. Impedit non id numquam vero. Doloribus earum sequi maxime non magnam.\nEum ab nulla consequatur ut reiciendis aut. Distinctio omnis autem facilis excepturi incidunt reiciendis assumenda voluptatem. Distinctio praesentium vero eos iste sed occaecati. Officia sed illum doloribus esse sit eos.\nSint veritatis nisi aut ut optio. Dolores est recusandae illum tempora. Vel culpa quo est voluptatem libero ut. Perferendis voluptatem sunt ea impedit est facilis quia.\nAsperiores non deleniti quasi pariatur repellendus recusandae impedit. Facilis sapiente aut quam ut non blanditiis. Occaecati dignissimos molestiae commodi eum velit. Molestiae aut est rerum ab ea ut nesciunt."], ["name", "Product #15 - 8389"], ["shipping_category_id", 1], ["slug", "product-15-8389"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.030859"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-11-12 20:12:59.033053"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.034890' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.035922' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.037111' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.037644' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.040460"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:59.040460"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.041329' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.041827' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.042886' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.043375' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.047083' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.047584' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.048102' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-15' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.049641"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.050266' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.050727' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.051196' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.051746' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.052172' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:59.056699"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.056699"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-8389' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.062364' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.067754' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:59.072442"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:59.072442"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.075769"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.075769"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.076686' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.077775' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.078990' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.079553' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.081885"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.081885"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.082708' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.083690' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.084747' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.085229' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.087464"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.087464"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.088264' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.089236' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.090314' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.090787' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.093283"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.093283"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.094161' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.095212' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.096334' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.096822' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.099056"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.099056"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.099871' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.100865' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.101960' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.102482' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H07461124175%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 20:12:59.105266"], ["number", "H07461124175"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 20:12:59.105266"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.106227' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.109149' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.113103"], ["description", "Repellat at odit quis mollitia dolores."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 20:12:59.113103"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.115719"], ["updated_at", "2014-11-12 20:12:59.115719"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:59.128863"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 20:12:59.128863"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 20:12:59.129653"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 20:12:59.129653"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.130937"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 20:12:59.130937"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 20:12:59.133604"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 20:12:59.133604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.137195"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.137195"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.137988' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.138607' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.139967"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.139967"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.140599' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.141049' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.142329"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.142329"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.142959' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.143410' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.144704"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.144704"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.145338' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.145798' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.147051"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.147051"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.147697' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.148151' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 20:12:59.156321' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.159948"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:12:59.159948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.161960"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:12:59.161960"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'garry.volkman@wuckertbecker.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415823179366xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:59.164980"], ["email", "garry.volkman@wuckertbecker.ca"], ["encrypted_password", "12c25100f087b73181b64782349a58f1c92d091f35e7f95567ce2f97514163f2ab9ddefd5ed2cb66dc46cdb85dbbf403107fd2fb2721c018a5f43643c23d4566"], ["login", "garry.volkman@wuckertbecker.ca"], ["password_salt", "SqYQdQohzZtbkyLQrnFc"], ["updated_at", "2014-11-12 20:12:59.164980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:59.167629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:59.169031"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 20:12:59.169031"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R710640951' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R710640951%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R710640951' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'd5NHfvzd7C7r7Sq7_ov3rA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 20:12:59.174427"], ["currency", "USD"], ["email", "garry.volkman@wuckertbecker.ca"], ["guest_token", "d5NHfvzd7C7r7Sq7_ov3rA"], ["number", "R710640951"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:59.174427"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'JYXP2LHA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:12:59.176938"], ["identifier", "JYXP2LHA"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:12:59.176938"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.179197' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-513232' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-513232"], ["updated_at", "2014-11-12 20:12:59.180406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (5.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sydni_emmerich@swaniawski.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231792457xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:59.204852"], ["email", "sydni_emmerich@swaniawski.us"], ["encrypted_password", "5584c6998adbab8eb02ecef80a817660b24c861f76e28b0e26b83a6fc1bdabf207f9bd2fbc7a3b6d39b5d9151f0ed5434b88ef8ae1fdffc20cff98ceef00bc18"], ["login", "sydni_emmerich@swaniawski.us"], ["password_salt", "R_UaRETggXmnQk61DQH5"], ["updated_at", "2014-11-12 20:12:59.204852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:59.208092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:59.209354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:59.210765"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:59.210765"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:59.213478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:59.214913"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:12:59.214913"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R771883232' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R771883232%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R771883232' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'AxyZ1skqC9h_87tOJPKu1w' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:12:59.221545"], ["currency", "USD"], ["email", "sydni_emmerich@swaniawski.us"], ["guest_token", "AxyZ1skqC9h_87tOJPKu1w"], ["number", "R771883232"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 20:12:59.221545"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:59.241123"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:12:59.241123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 945614' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.244098"], ["description", "Doloremque repellat nisi architecto quae qui."], ["name", "TaxCategory - 945614"], ["updated_at", "2014-11-12 20:12:59.244098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:59.247431"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:59.247431"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-2971' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-2971' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:59.227893"], ["created_at", "2014-11-12 20:12:59.251058"], ["description", "Aut nihil recusandae iste voluptatem consequatur sunt eum necessitatibus. Dolorum qui occaecati veritatis et magnam a labore est. Quis similique rerum repellendus odio molestiae voluptatem itaque.\nEst eius facilis at iste qui est. Tempora at incidunt non minima illo dolor vel. Velit minima beatae rerum ut ut. Facere vel autem sit maxime tempore. Deleniti laudantium omnis omnis dolores adipisci."], ["name", "Product #16 - 2971"], ["shipping_category_id", 1], ["slug", "product-16-2971"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.251058"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-16"], ["updated_at", "2014-11-12 20:12:59.253840"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.256109' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.257260' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.258529' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.259153' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.262118"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:59.262118"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.263102' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.263632' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.264698' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.265174' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.269199' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.269725' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.270254' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-16' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.271863"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.272523' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.272993' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.273473' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.274027' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.274490' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:59.279186"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.279186"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-2971' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.284993' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.290536' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-6714' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-6714' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:59.297472"], ["created_at", "2014-11-12 20:12:59.301158"], ["description", "Delectus hic voluptates tenetur deleniti molestiae ea repudiandae. Ratione dicta ullam at cupiditate. Totam eos quo consequatur expedita accusantium non vel. Ipsam facere omnis non molestias asperiores. Nostrum dicta exercitationem debitis aliquam consectetur quas eos fugit.\nAliquid dolores sit ad quia inventore eos. Asperiores doloremque enim dolores nihil voluptas aut veniam et. Tenetur corporis ex illo aut accusantium aut ut. Ipsam consectetur voluptates et voluptas autem. Molestiae at placeat atque minima omnis officiis commodi amet.\nCommodi consequatur mollitia ratione aut dolore. Ut dolore et corporis aut dolor necessitatibus quae expedita. Odit quas magnam omnis rerum.\nQuae autem eum maxime vel quis accusamus sint velit. Unde in ut facere alias. Aut ex distinctio qui qui aut voluptatem consequuntur nihil. Consequatur qui reiciendis temporibus rerum. Voluptates et eius asperiores earum.\nNam est et eaque natus. Enim debitis voluptates velit corporis qui aut. Doloribus iusto praesentium sint perspiciatis ut nostrum."], ["name", "Product #17 - 6714"], ["shipping_category_id", 1], ["slug", "product-17-6714"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.301158"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-17"], ["updated_at", "2014-11-12 20:12:59.303316"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.305269' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.306342' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.307559' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.308095' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.310892"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:59.310892"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.311805' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.312325' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.313434' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.313901' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.317714' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.318275' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.318790' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-17' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.320440"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.321125' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.321600' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.322081' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.322678' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.323113' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:59.327796"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.327796"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-6714' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.333554' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.339050' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-3427' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-3427' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:59.345814"], ["created_at", "2014-11-12 20:12:59.349487"], ["description", "Qui ab fugiat eum asperiores possimus impedit nemo eveniet. Iure unde voluptatum atque eum ipsam. Vero culpa fugiat voluptatem omnis. Nam debitis molestias et incidunt fugiat eius et.\nAt omnis et laboriosam voluptas magni. Qui quia pariatur minus ut. Dolores voluptatem aliquid praesentium ut dolor fugit consequatur. Voluptatem quos beatae quia porro nihil enim impedit. Ut minima veritatis labore harum ad.\nEum voluptatem sed consequatur aspernatur iste assumenda qui. Tempora deleniti voluptate sint totam ipsum qui. Mollitia repudiandae ab aut voluptatem.\nOccaecati eos unde error aspernatur tenetur. Dolorem aut quis beatae sed sit et. Libero nihil culpa rerum eius iure.\nSed rerum dignissimos qui et velit animi architecto. Quae voluptatem iure officia debitis minima. Quas quae delectus ullam aut omnis possimus ab sequi. Impedit nemo sit tenetur modi. Necessitatibus ut atque quo excepturi omnis qui in et."], ["name", "Product #18 - 3427"], ["shipping_category_id", 1], ["slug", "product-18-3427"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.349487"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-18"], ["updated_at", "2014-11-12 20:12:59.351561"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.353405' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.354468' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.355690' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.356220' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.359046"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:59.359046"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.359905' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.360413' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.361520' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.362004' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.365784' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.366284' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.366801' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-18' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.368469"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.369188' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.369674' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.370183' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.370759' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.371213' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:59.375962"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.375962"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-3427' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.381697' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.387142' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-5805' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-5805' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:59.391902"], ["created_at", "2014-11-12 20:12:59.395563"], ["description", "Et impedit eligendi id sed nam modi. Repellat itaque assumenda sint hic fugiat perferendis. Dolores odit soluta non sed est qui.\nMaiores voluptatum et quis mollitia aliquid magnam fugit. Voluptas libero voluptates illum perferendis dolore. Dignissimos optio occaecati atque illum ut quae laborum."], ["name", "Product #19 - 5805"], ["shipping_category_id", 1], ["slug", "product-19-5805"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.395563"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-19"], ["updated_at", "2014-11-12 20:12:59.397693"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.399585' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.400625' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.401798' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.402343' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.405155"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:59.405155"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.406010' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.406525' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.407617' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.408093' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.411967' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.412468' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.412976' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-19' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.414615"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.415251' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.415729' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.416213' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.416818' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.417299' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:59.422110"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.422110"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-5805' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.432127' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.438854' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-2413' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-2413' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:59.445542"], ["created_at", "2014-11-12 20:12:59.449383"], ["description", "Et in consequatur et expedita eos. Nihil modi voluptatum quae qui debitis ab. Et dolorem earum cupiditate enim atque architecto quia officiis.\nRerum ab consequatur ducimus ipsa fugiat similique. Qui quibusdam distinctio facere est similique quaerat aut est. Maiores veritatis aut perspiciatis aspernatur non. Minus eligendi est quisquam voluptas impedit. Neque debitis velit id voluptas quasi voluptatem eaque.\nQui aperiam tempora accusantium asperiores natus aliquam. Aperiam veritatis expedita quos nam et tenetur minus voluptas. Impedit dolore non necessitatibus ullam sit. Voluptatibus molestiae perspiciatis impedit natus dolor non odit exercitationem.\nAccusamus explicabo quam qui consequuntur recusandae. Eligendi debitis distinctio et est. Ut ad aliquid est voluptate nisi culpa rerum consequatur."], ["name", "Product #20 - 2413"], ["shipping_category_id", 1], ["slug", "product-20-2413"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.449383"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-20"], ["updated_at", "2014-11-12 20:12:59.451585"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.453472' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.454524' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.455716' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.456256' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.459044"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:59.459044"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.459916' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.460386' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.461472' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.461942' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.465760' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.466280' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.466774' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-20' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.468378"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.469025' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.469478' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.469984' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.470553' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.471021' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:59.475629"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.475629"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-2413' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.481298' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.486720' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:59.491512"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:59.491512"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.494901"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.494901"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.495751' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.496859' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.498021' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.498573' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.500967"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.500967"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.501819' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.502847' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.503941' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.504429' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.506726"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.506726"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.507542' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.508511' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.509612' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.510107' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.512667"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.512667"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.513596' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.514764' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.515977' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.516488' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.518824"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.518824"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.519709' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.520914' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.522097' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.522648' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H21047543385%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 20:12:59.525440"], ["number", "H21047543385"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 20:12:59.525440"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.526398' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.529334' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.532955"], ["description", "Dolores itaque explicabo commodi necessitatibus minus reprehenderit quod quia."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 20:12:59.532955"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.534318"], ["updated_at", "2014-11-12 20:12:59.534318"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:59.543003"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 20:12:59.543003"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 20:12:59.543758"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 20:12:59.543758"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.545073"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 20:12:59.545073"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 20:12:59.547811"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 20:12:59.547811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.551401"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.551401"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.552183' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.552763' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.554126"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.554126"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.554778' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.555210' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.556470"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.556470"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.557096' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.557520' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.558778"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.558778"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.559453' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.559886' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.561162"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.561162"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.561801' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.562234' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 20:12:59.570235' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.573814"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:12:59.573814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.575841"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:12:59.575841"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jamaal_ankunding@davis.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231798668xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:59.578774"], ["email", "jamaal_ankunding@davis.ca"], ["encrypted_password", "9bfa0cf9c0723e85b320b7fe97219c93566be159edb9f826465ae14fbc2343c11950ca5768ffb198db34c0b92e47dd26cfdad9faed1fdf3c882e53b024365469"], ["login", "jamaal_ankunding@davis.ca"], ["password_salt", "a3iNtE8XB3nusBAx9XYy"], ["updated_at", "2014-11-12 20:12:59.578774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:59.581307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:59.582670"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 20:12:59.582670"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R817122199' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R817122199%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R817122199' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'qW84O60SGWfuQeVHhNqI4Q' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 20:12:59.587961"], ["currency", "USD"], ["email", "jamaal_ankunding@davis.ca"], ["guest_token", "qW84O60SGWfuQeVHhNqI4Q"], ["number", "R817122199"], ["state", "cart"], ["updated_at", "2014-11-12 20:12:59.587961"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'P5QKHTGE' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:12:59.590352"], ["identifier", "P5QKHTGE"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:12:59.590352"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.592585' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-253001' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-253001"], ["updated_at", "2014-11-12 20:12:59.593773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (5.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hipolito@stanton.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158231796339xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:12:59.618751"], ["email", "hipolito@stanton.com"], ["encrypted_password", "04322f3f7a339d9141011c33557388c0fd49f157dddac2b2c9f7ba4611535102e0117a501255dd0db7589cf669fbd4b6df65ffa32fe32320acc250544d9abf39"], ["login", "hipolito@stanton.com"], ["password_salt", "noQX1DsiELcA9a4QouxM"], ["updated_at", "2014-11-12 20:12:59.618751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:59.622108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:59.623524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:59.624937"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:59.624937"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:59.627610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:12:59.628916"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:12:59.628916"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R624369886' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R624369886%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R624369886' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '3vKoYKYWCpycHu6o0z73Qg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:12:59.635069"], ["currency", "USD"], ["email", "hipolito@stanton.com"], ["guest_token", "3vKoYKYWCpycHu6o0z73Qg"], ["number", "R624369886"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 20:12:59.635069"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:59.644125"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:12:59.644125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 718677' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.646847"], ["description", "Odio laborum iste similique nihil placeat voluptates mollitia."], ["name", "TaxCategory - 718677"], ["updated_at", "2014-11-12 20:12:59.646847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:59.650472"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:59.650472"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-9604' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-9604' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:59.643003"], ["created_at", "2014-11-12 20:12:59.654403"], ["description", "Eum quisquam placeat ex illum. Ipsa voluptates sit excepturi ipsam aut molestias atque. Nostrum et maxime ea sint expedita sunt aliquam nihil. Quia ea doloribus repudiandae ut. Suscipit sed ipsum sint velit quisquam sunt nemo.\nConsequuntur nesciunt vel ea placeat ducimus. Necessitatibus incidunt quae dolorem assumenda earum dolores distinctio dolorum. Qui et accusamus similique ipsam. Et quasi rerum excepturi optio nam totam.\nQuia aut et similique aut totam labore voluptas. Quod et voluptas dignissimos nam natus ipsum tenetur dolore. Sed a aliquam earum numquam aut quos. Reiciendis consequatur esse nesciunt ea officiis quas. Sed et modi est ad mollitia facilis ullam veniam.\nTempore necessitatibus itaque officia ut. Sequi eum sed voluptas quis et ut eligendi. Ut illo itaque et quo. Reprehenderit repellat itaque doloremque quia corporis. Asperiores dolor rem sunt tempore commodi aut omnis."], ["name", "Product #21 - 9604"], ["shipping_category_id", 1], ["slug", "product-21-9604"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.654403"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-21"], ["updated_at", "2014-11-12 20:12:59.657330"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.659685' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.660943' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.662231' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.662829' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.665855"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:59.665855"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.666837' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.667401' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.668579' WHERE 1=0 SQL (12.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.669086' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.685632' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.686244' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.686801' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-21' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.688476"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.689151' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.689619' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.690092' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.690658' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.691111' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:59.695814"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.695814"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-9604' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.701615' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.707194' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-9132' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-9132' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:59.713519"], ["created_at", "2014-11-12 20:12:59.717140"], ["description", "Aut cumque tenetur voluptatum fuga. At autem corporis rerum qui. Eius velit voluptates soluta similique. Sunt magnam sint consequatur soluta aspernatur corporis. Voluptates neque et esse et facilis ut est.\nQuas culpa quae atque esse eum voluptatem et. Quo odit ut dolores optio vel vel sed. Sapiente quaerat non vel delectus vitae ut.\nEt quis ipsam iusto ex voluptatibus. Nisi et officiis quia accusantium ipsum qui culpa. Maiores et magni veritatis illum. Vel veniam eum quam voluptas molestiae nihil minus. Et sit quod et possimus laudantium omnis impedit est.\nBlanditiis fugit iste harum ut. Facere est est nulla explicabo vitae. Quae necessitatibus et cupiditate vel corrupti. Earum sed distinctio aperiam deserunt."], ["name", "Product #22 - 9132"], ["shipping_category_id", 1], ["slug", "product-22-9132"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.717140"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-22"], ["updated_at", "2014-11-12 20:12:59.719291"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.721247' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.722310' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.723534' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.724132' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.726917"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:59.726917"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.727898' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.728434' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.729543' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.730033' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.733870' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.734394' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.734956' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-22' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.736533"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.737207' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.737699' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.738170' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.738731' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.739182' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:59.743733"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.743733"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-9132' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.749380' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.754815' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-6382' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-6382' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:59.759770"], ["created_at", "2014-11-12 20:12:59.763420"], ["description", "Deserunt dolorem asperiores reprehenderit voluptate tempora ut qui ut. Sint exercitationem odio quisquam delectus eum distinctio non dolor. Dignissimos vitae omnis non consequatur. Doloremque aliquam ut magnam consequatur veniam harum.\nRerum quia eos maxime tenetur. Et quia explicabo possimus similique molestiae saepe itaque. Molestiae possimus dolor molestias labore. Repudiandae dignissimos eum repellat ea aspernatur doloribus consequatur."], ["name", "Product #23 - 6382"], ["shipping_category_id", 1], ["slug", "product-23-6382"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.763420"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-23"], ["updated_at", "2014-11-12 20:12:59.765541"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.767384' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.768424' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.769598' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.770133' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.772952"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:59.772952"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.773805' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.774309' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.775377' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.775847' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.779743' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.780266' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.780769' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-23' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.782325"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.783004' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.783443' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.783926' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.784468' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.784917' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:59.789504"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.789504"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-6382' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.795125' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.800606' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-9383' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-9383' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:59.806869"], ["created_at", "2014-11-12 20:12:59.810513"], ["description", "Enim ad necessitatibus aperiam quisquam rerum. Porro corporis voluptate quas et suscipit dolorum est. Nobis sunt omnis consequuntur error voluptatem ut at. Dolores beatae quos repellat quae aut.\nEa hic aut in dolor. Debitis non sed sit magnam voluptatibus delectus voluptatum possimus. Sit delectus eum qui sunt et. Suscipit a ad aspernatur nobis omnis pariatur.\nOccaecati incidunt error fuga quos facilis reiciendis doloribus sint. Laboriosam hic molestias ducimus sunt quaerat corrupti dolores quidem. Dicta eos similique ratione assumenda reprehenderit aut molestiae. Voluptate consequuntur adipisci dicta earum.\nDolorem quod corrupti ea sint. Quisquam sit inventore reprehenderit dolores. Iusto laborum rem eum et at veritatis earum."], ["name", "Product #24 - 9383"], ["shipping_category_id", 1], ["slug", "product-24-9383"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.810513"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-24"], ["updated_at", "2014-11-12 20:12:59.812593"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.814424' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.815466' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.816643' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.817184' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.819965"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:59.819965"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.820815' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.821309' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.822339' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.822823' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.826760' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.827283' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.827806' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-24' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.829428"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.830094' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.830555' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.831007' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.831574' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.832043' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:59.836674"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.836674"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-9383' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.842330' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.847779' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-2736' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-2736' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:12:59.854259"], ["created_at", "2014-11-12 20:12:59.857935"], ["description", "Quis aliquam a distinctio sit doloremque quo ut. Dignissimos dolor et cum nihil. Asperiores neque assumenda sunt modi incidunt ipsum. Qui dolorem similique voluptas consequatur a ratione vel quis. Vero adipisci et impedit quo.\nAssumenda non id quia unde quis. Iusto ut ex deserunt nam architecto voluptatem illo. Est aperiam sint voluptatibus facilis quia suscipit nam porro.\nEos voluptatem voluptatibus neque sunt vel. Quis quo aspernatur adipisci a ad in. Ullam quisquam est fugit illum quis dolorem voluptatibus. Quis autem dolores omnis in voluptates. Molestiae officia eligendi ut voluptatem sed fuga dicta voluptatum.\nVeritatis dolor omnis delectus eum voluptates aliquid. Laudantium officia odit atque nobis. Officiis id sapiente consequatur minus omnis iste id. Ipsa accusamus ut autem voluptatem sunt veniam."], ["name", "Product #25 - 2736"], ["shipping_category_id", 1], ["slug", "product-25-2736"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.857935"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-25"], ["updated_at", "2014-11-12 20:12:59.860080"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.861928' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.862994' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.864153' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.864711' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.867521"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:12:59.867521"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.868369' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.868844' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.869923' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.870398' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.874252' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.874769' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.875289' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-25' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.876881"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.877516' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.877968' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.878434' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.878973' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.879433' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:12:59.884014"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:12:59.884014"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-2736' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.893887' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.900657' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:12:59.905494"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:12:59.905494"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.908954"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.908954"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.909818' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.910928' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.912141' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.912689' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.915103"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.915103"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.915919' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.916931' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.918045' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.918525' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.920959"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.920959"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.921807' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.922875' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.924051' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.924626' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.927252"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.927252"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.928202' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.929317' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.930449' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.930964' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:12:59.933374"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:12:59.933374"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.934241' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.935300' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.936497' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:12:59.937038' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H85854128737%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 20:12:59.939874"], ["number", "H85854128737"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 20:12:59.939874"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.940866' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:12:59.943928' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.947757"], ["description", "Est voluptatem magnam consequatur necessitatibus."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 20:12:59.947757"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.950558"], ["updated_at", "2014-11-12 20:12:59.950558"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:12:59.961229"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 20:12:59.961229"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 20:12:59.962003"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 20:12:59.962003"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.963328"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 20:12:59.963328"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 20:12:59.966046"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 20:12:59.966046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.969666"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.969666"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.970447' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.971037' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.972416"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.972416"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.973048' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.973515' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.974818"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.974818"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.975448' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.975881' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.977178"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.977178"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.977844' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.978289' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:12:59.979595"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:12:59.979595"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.980241' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.980701' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 20:12:59.988774' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:12:59.999861"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:12:59.999861"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:13:00.004041' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.004703' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:13:00.008768"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:13:00.008768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:13:00.010998"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:13:00.010998"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sim@wehner.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582318052710xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:13:00.014062"], ["email", "sim@wehner.biz"], ["encrypted_password", "d37c976c4ae20c441c3f3403bad86c5a4f72b90873968388b3453b1ae3a38dfab758d3307c94d6cad4ed041ff251a264bd690b9c7bfbfb2f7b396887c6416f0e"], ["login", "sim@wehner.biz"], ["password_salt", "5ER6PQXdbjeMcWwacNqf"], ["updated_at", "2014-11-12 20:13:00.014062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:13:00.016681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:13:00.018100"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 20:13:00.018100"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R139051856' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R139051856%') Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R139051856' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QS4lKIXdqESZt-tScrtigw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 20:13:00.023676"], ["currency", "USD"], ["email", "sim@wehner.biz"], ["guest_token", "QS4lKIXdqESZt-tScrtigw"], ["number", "R139051856"], ["state", "cart"], ["updated_at", "2014-11-12 20:13:00.023676"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'CC7TMKUQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:13:00.026062"], ["identifier", "CC7TMKUQ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:13:00.026062"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.028229' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-153101' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-153101"], ["updated_at", "2014-11-12 20:13:00.029438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (5.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'katlynn@wolfgibson.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582318083211xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:13:00.054505"], ["email", "katlynn@wolfgibson.us"], ["encrypted_password", "94fc5c28b8c5aea2ff7dd89c2b9497146ebe7d7c1eab0c229780bb0835ffabb9c3c61c610b137b669a0940fc0aac3e3a4a4e22c2429b71f7fcd455f544d31a71"], ["login", "katlynn@wolfgibson.us"], ["password_salt", "E4XeZwrehs6sbQQXxX4K"], ["updated_at", "2014-11-12 20:13:00.054505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:13:00.057850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:13:00.059100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:13:00.060548"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:13:00.060548"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:13:00.063121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:13:00.064431"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:13:00.064431"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R234080015' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R234080015%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R234080015' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'MEv2Wdq2BH0l51UDQKVnCw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:13:00.070678"], ["currency", "USD"], ["email", "katlynn@wolfgibson.us"], ["guest_token", "MEv2Wdq2BH0l51UDQKVnCw"], ["number", "R234080015"], ["ship_address_id", 2], ["state", "cart"], ["updated_at", "2014-11-12 20:13:00.070678"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:13:00.077500"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:13:00.077500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 329982' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:13:00.080234"], ["description", "Fuga suscipit voluptate rerum nesciunt exercitationem nihil quos repellendus."], ["name", "TaxCategory - 329982"], ["updated_at", "2014-11-12 20:13:00.080234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:13:00.083588"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:13:00.083588"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-31' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-31' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:13:00.076416"], ["created_at", "2014-11-12 20:13:00.087635"], ["description", "Voluptates itaque tenetur qui voluptas dolor aperiam quae. Et velit laudantium vel voluptatibus. Sint veritatis rerum dolores nemo. Nisi repellat consequatur quisquam blanditiis."], ["name", "Product #26 - 31"], ["shipping_category_id", 1], ["slug", "product-26-31"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:13:00.087635"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-26"], ["updated_at", "2014-11-12 20:13:00.090009"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.092418' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.093756' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.095085' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.110374' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:13:00.113788"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:13:00.113788"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.114881' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.115400' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.116520' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.116998' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.120903' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.121487' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.122019' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-26' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:13:00.123691"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.124368' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.124831' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.125320' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.125872' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.126313' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:13:00.131006"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:13:00.131006"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-31' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.136893' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:13:00.142587' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-7675' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-7675' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:13:00.149210"], ["created_at", "2014-11-12 20:13:00.152899"], ["description", "Officia ex eaque delectus dolorem dolores earum. Nihil eum et aliquam eos aut eum dolor. In eum reiciendis nostrum nobis.\nEos quidem et itaque ullam delectus. Doloremque id et aut quis id dolores eos eum. Alias debitis et vel voluptas consequatur blanditiis. Modi quae qui repellendus expedita.\nAd rerum possimus laboriosam dolor. Qui perspiciatis quaerat unde nobis omnis modi autem. Qui non autem quia quaerat et. Aut labore officiis ad qui est consequatur. Vero praesentium impedit voluptas debitis.\nAssumenda non aperiam ut dolorem. Delectus at et omnis voluptate ut vel. Animi natus ea eum corrupti nesciunt officiis. Maiores aut nemo asperiores nihil consequuntur similique et.\nEst necessitatibus dolores unde quos enim autem vel. Perspiciatis iste delectus itaque dicta aut. Omnis voluptatem nulla aut rerum unde ducimus qui laborum."], ["name", "Product #27 - 7675"], ["shipping_category_id", 1], ["slug", "product-27-7675"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:13:00.152899"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-27"], ["updated_at", "2014-11-12 20:13:00.155058"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.157011' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.158075' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.159268' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.159817' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:13:00.162705"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:13:00.162705"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.163615' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.164125' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.165198' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.165668' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.169432' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.169950' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.170464' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-27' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:13:00.172105"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.172763' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.173226' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.173681' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.174243' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.174706' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:13:00.179279"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:13:00.179279"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-7675' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.184892' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:13:00.190539' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-5966' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-5966' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:13:00.194996"], ["created_at", "2014-11-12 20:13:00.198600"], ["description", "Ipsam a et rerum iste. Dolorum ipsam dolor harum consequatur. Quas sint cum deleniti a voluptas magni commodi distinctio. Dolorem consectetur dolor omnis reprehenderit aut autem."], ["name", "Product #28 - 5966"], ["shipping_category_id", 1], ["slug", "product-28-5966"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:13:00.198600"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-28"], ["updated_at", "2014-11-12 20:13:00.200700"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.202532' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.203575' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.204750' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.205280' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:13:00.208127"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:13:00.208127"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.208973' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.209456' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.210498' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.210966' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.214756' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.215261' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.215777' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-28' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-11-12 20:13:00.217313"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.217928' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.218370' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.218823' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.219371' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.219802' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:13:00.224327"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:13:00.224327"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-5966' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.229889' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:13:00.235809' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-5159' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-5159' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:13:00.242074"], ["created_at", "2014-11-12 20:13:00.245699"], ["description", "Quia tempore vitae itaque qui corrupti. Illo sed iure laborum autem enim voluptas. Sit non aut unde animi. A commodi ea maxime et voluptate fuga.\nTempora repudiandae aut cumque quia. Quia at et quasi aspernatur ea architecto voluptatem suscipit. Quasi corporis molestiae ut perferendis distinctio. Voluptatem debitis et corrupti ex exercitationem dignissimos dolorem.\nTenetur sed voluptas nostrum ea ab. Aliquam est quisquam aut est nisi officia ut. Expedita ab aut dolor deleniti odit aut.\nEt atque est autem odit ut eius facilis tenetur. Temporibus in fugiat ut sit porro. Non consequatur culpa id fuga et vel earum. Omnis esse possimus modi cupiditate praesentium ab."], ["name", "Product #29 - 5159"], ["shipping_category_id", 1], ["slug", "product-29-5159"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:13:00.245699"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-29"], ["updated_at", "2014-11-12 20:13:00.247795"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.249650' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.250699' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.251850' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.252388' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:13:00.255221"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:13:00.255221"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.256058' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.256536' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.257581' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.258058' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.261785' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.262278' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.262831' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-29' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-11-12 20:13:00.264439"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.265070' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.265525' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.266007' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.266558' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.266996' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:13:00.271498"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:13:00.271498"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-5159' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.277102' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:13:00.282732' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-9774' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-9774' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:13:00.287257"], ["created_at", "2014-11-12 20:13:00.290885"], ["description", "Et dignissimos libero aut cumque. Et reiciendis porro rerum explicabo recusandae cum. Voluptatum reiciendis quo assumenda culpa impedit mollitia. Ipsa corrupti illo vel et quasi. Facere quisquam neque hic voluptatem."], ["name", "Product #30 - 9774"], ["shipping_category_id", 1], ["slug", "product-30-9774"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:13:00.290885"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-30"], ["updated_at", "2014-11-12 20:13:00.292978"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.294872' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.295914' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.297151' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.297778' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:13:00.300608"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:13:00.300608"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.301646' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.302140' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.303198' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.303671' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.307386' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.307877' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.308406' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-30' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-11-12 20:13:00.309950"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.310597' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.311038' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.311497' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.312030' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.312468' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:13:00.317013"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:13:00.317013"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-9774' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.322522' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:13:00.327950' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:13:00.332745"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:13:00.332745"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:13:00.336101"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:13:00.336101"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.336990' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.338106' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.339534' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.340056' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:13:00.342507"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:13:00.342507"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.343348' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.344402' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.345508' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.345969' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:13:00.348267"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:13:00.348267"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.349081' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.350087' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.351311' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.351874' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:13:00.354554"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:13:00.354554"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.355518' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.356567' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.357703' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.358173' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:13:00.360469"], ["stock_location_id", 2], ["updated_at", "2014-11-12 20:13:00.360469"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.361297' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.362318' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.363579' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:13:00.364105' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H45742287234%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 20:13:00.366908"], ["number", "H45742287234"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-11-12 20:13:00.366908"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.367837' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:13:00.370727' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:13:00.374370"], ["description", "Ea vitae accusantium in consequatur soluta non tempora autem."], ["name", "GlobalZone"], ["updated_at", "2014-11-12 20:13:00.374370"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.3ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:13:00.376119"], ["updated_at", "2014-11-12 20:13:00.376119"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:13:00.389631"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 20:13:00.389631"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-11-12 20:13:00.390405"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-11-12 20:13:00.390405"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:13:00.391728"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 20:13:00.391728"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-11-12 20:13:00.394435"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-11-12 20:13:00.394435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:13:00.398051"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:13:00.398051"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:13:00.398847' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.399419' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:13:00.400774"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:13:00.400774"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:13:00.401429' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.401874' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:13:00.403121"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:13:00.403121"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:13:00.403740' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.404172' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:13:00.405422"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:13:00.405422"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:13:00.406064' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.406475' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:13:00.407725"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-11-12 20:13:00.407725"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:13:00.408403' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.408839' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-11-12 20:13:00.416943' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:13:00.418551"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:13:00.418551"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:13:00.421317' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.421824' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:13:00.425447"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:13:00.425447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:13:00.427426"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:13:00.427426"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'bobby@jacobsonkessler.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582318094812xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:13:00.430335"], ["email", "bobby@jacobsonkessler.biz"], ["encrypted_password", "39b1dd0e741bbd51d6d903e6f9ff427b01854093ad3c55a3b6f9a72c59f006a1779a9a12bd073c19f0579126557d22708bfc4c97e99b907f9a2df278d5951b77"], ["login", "bobby@jacobsonkessler.biz"], ["password_salt", "UssCBa1kspoDV3jCmt7M"], ["updated_at", "2014-11-12 20:13:00.430335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:13:00.432868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:13:00.434222"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 3], ["updated_at", "2014-11-12 20:13:00.434222"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R869480622' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R869480622%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R869480622' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'sfTbrhvW8y9y_LHqg6WJiQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 3], ["created_at", "2014-11-12 20:13:00.439492"], ["currency", "USD"], ["email", "bobby@jacobsonkessler.biz"], ["guest_token", "sfTbrhvW8y9y_LHqg6WJiQ"], ["number", "R869480622"], ["state", "cart"], ["updated_at", "2014-11-12 20:13:00.439492"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XX8WR6BG' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:13:00.441872"], ["identifier", "XX8WR6BG"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:13:00.441872"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.444075' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-300302' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-300302"], ["updated_at", "2014-11-12 20:13:00.445487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ozella.moore@johnson.name' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158234222231xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:17:02.173343"], ["email", "ozella.moore@johnson.name"], ["encrypted_password", "0933db8ae29af3c0922c50ca0861db80fe36732d777c6304beed5aebeaeddb6d5cbf585855570338ae769bcc70033119eb5463a24f8ebc76d8bd04f4953f1d1b"], ["login", "ozella.moore@johnson.name"], ["password_salt", "dB8h869ySizMa5k_Hnq2"], ["updated_at", "2014-11-12 20:17:02.173343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:17:02.206537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:02.216277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:17:02.226011"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:17:02.226011"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R380655459' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R380655459%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R380655459' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'dVGtf4oUD09QEKKNsS06EA' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:17:02.258438"], ["currency", "USD"], ["email", "ozella.moore@johnson.name"], ["guest_token", "dVGtf4oUD09QEKKNsS06EA"], ["number", "R380655459"], ["state", "cart"], ["updated_at", "2014-11-12 20:17:02.258438"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:17:02.310422"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:17:02.310422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 500750' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:17:02.320021"], ["description", "Et laboriosam aut rerum possimus aut."], ["name", "TaxCategory - 500750"], ["updated_at", "2014-11-12 20:17:02.320021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:17:02.342023"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:17:02.342023"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-2720' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-2720' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:17:02.306398"], ["created_at", "2014-11-12 20:17:02.347099"], ["description", "Suscipit provident molestias fuga est velit et. Consequuntur rerum officia iusto eum occaecati est. Quasi nihil aliquid voluptate ducimus qui.\nEnim harum pariatur quidem dignissimos tempora. Soluta fugiat facilis veniam qui. Ab alias ea eveniet consequatur tempora et doloribus ut. Aliquid quibusdam enim ea voluptatem fugit voluptatibus. Rerum sequi corporis debitis amet et ut saepe repellat.\nAutem quas quae enim optio reiciendis provident aut ut. Sed necessitatibus quia tenetur unde quia doloribus perspiciatis consequuntur. Molestiae at suscipit et asperiores.\nQuod praesentium quae voluptas mollitia delectus. Quaerat illo dolorem aut nobis libero nulla expedita dignissimos. Cumque vel ut praesentium voluptatem doloremque et temporibus. Exercitationem voluptatem ipsum sint hic ut.\nEt nemo dolores possimus et nobis. Sunt odio quibusdam assumenda consectetur expedita atque cumque. Sed autem eos quia ea quaerat quidem praesentium. Ducimus dignissimos suscipit provident explicabo est rerum."], ["name", "Product #1 - 2720"], ["shipping_category_id", 1], ["slug", "product-1-2720"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:02.347099"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:17:02.349775"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.357010' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.358303' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.371595' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.372776' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:17:02.393185"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:17:02.393185"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.394364' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.394969' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.396119' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.396610' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.406388' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.407026' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.407555' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:17:02.409189"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.410346' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.410817' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.411272' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.411837' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.412317' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:17:02.428094"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:02.428094"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-2720' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.436711' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:02.445697' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-4791' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-4791' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:17:02.451880"], ["created_at", "2014-11-12 20:17:02.455900"], ["description", "Asperiores saepe laboriosam ut non est quidem odit inventore. Aperiam consectetur qui tempora amet. Totam consequuntur quaerat fuga esse reiciendis minima impedit dicta. Nesciunt ex vel non tenetur alias ea. Sed sit consectetur et nulla veritatis qui.\nCorporis quibusdam aliquam omnis accusamus. Sit velit saepe minus illum. Omnis molestiae et et dolor expedita. Impedit totam id rerum et.\nMolestiae ducimus ut ut nam ut. Sed maiores voluptas fugiat vitae quod facere molestiae sit. Ad quam et et sapiente. Vitae sed cumque ut ducimus soluta impedit."], ["name", "Product #2 - 4791"], ["shipping_category_id", 1], ["slug", "product-2-4791"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:02.455900"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:17:02.457994"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.459902' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.460950' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.462162' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.462693' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:17:02.517202"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:17:02.517202"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.518329' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.518920' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.520125' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.520634' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.524572' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.525133' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.525639' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:17:02.527193"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.527892' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.528364' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.528813' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.529351' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.529778' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:17:02.534359"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:02.534359"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-4791' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.538908' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:02.543378' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:17:02.565751' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:17:02.586605"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:17:02.586605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:17:02.599396"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:17:02.599396"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'patsy.hackett@hansen.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415823422532xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:17:02.603947"], ["email", "patsy.hackett@hansen.biz"], ["encrypted_password", "a45d6ec18f8815505542d7f34f1411dd11d2fc7982c3161f60d965603c4cadc80692161e150f1b20186d00830bd1c566033d7ff9524b245dd57f8f9c7823ab52"], ["login", "patsy.hackett@hansen.biz"], ["password_salt", "XUWWs_9_LHgQ7i5NCtLg"], ["updated_at", "2014-11-12 20:17:02.603947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:02.606542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:17:02.607913"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:17:02.607913"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R736999711' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R736999711%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R736999711' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'IJkcqFhyqxu10uCHSNctQw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:17:02.613340"], ["currency", "USD"], ["email", "patsy.hackett@hansen.biz"], ["guest_token", "IJkcqFhyqxu10uCHSNctQw"], ["number", "R736999711"], ["state", "cart"], ["updated_at", "2014-11-12 20:17:02.613340"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'K6CES74K' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:17:02.625465"], ["identifier", "K6CES74K"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:17:02.625465"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.628508' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-415435' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-415435"], ["updated_at", "2014-11-12 20:17:02.629842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cordelia_oga@kuhlman.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158234225613xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:17:02.651547"], ["email", "cordelia_oga@kuhlman.name"], ["encrypted_password", "416b2f2ef5e703411f15c290b5edf509c1573747d5f1992b2424320c349600dacab6a7699365e79d9fd309c62fe9a80dab6a9f18606e100b649285d06b8b6b9c"], ["login", "cordelia_oga@kuhlman.name"], ["password_salt", "Qz3x_P6mWxtdbZaatsMx"], ["updated_at", "2014-11-12 20:17:02.651547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:17:02.655507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:02.656754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:17:02.658194"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:17:02.658194"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R234853791' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R234853791%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R234853791' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Sh6fGp7d7YBKwBh7HFonog' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:17:02.663622"], ["currency", "USD"], ["email", "cordelia_oga@kuhlman.name"], ["guest_token", "Sh6fGp7d7YBKwBh7HFonog"], ["number", "R234853791"], ["state", "cart"], ["updated_at", "2014-11-12 20:17:02.663622"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:17:02.671178"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:17:02.671178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 386777' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:17:02.673824"], ["description", "A et sed labore accusantium."], ["name", "TaxCategory - 386777"], ["updated_at", "2014-11-12 20:17:02.673824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:17:02.677127"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:17:02.677127"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-6931' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-6931' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:17:02.670108"], ["created_at", "2014-11-12 20:17:02.680750"], ["description", "Dolor velit consequuntur rem sed. Maiores quis a eveniet sit est sed rerum magnam. Neque qui nesciunt hic expedita. Pariatur totam voluptatem non quas laboriosam.\nUt aliquid illum vero quibusdam dolore voluptatem qui porro. Quia incidunt totam sunt alias in. Exercitationem doloremque unde reiciendis facilis neque quisquam."], ["name", "Product #3 - 6931"], ["shipping_category_id", 1], ["slug", "product-3-6931"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:02.680750"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:17:02.683349"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.685749' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.687061' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.688432' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.689054' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:17:02.692508"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:17:02.692508"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.693427' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.693975' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.695130' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.695611' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.699569' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.700163' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.700836' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:17:02.704840"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.706198' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.707131' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.707987' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.708929' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.709638' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:17:02.715801"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:02.715801"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-6931' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.720161' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:02.724980' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-9596' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-9596' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:17:02.732054"], ["created_at", "2014-11-12 20:17:02.735764"], ["description", "Laudantium aliquam aut et explicabo error eum. Consequatur nostrum quo vel est sapiente itaque ut eum. Tenetur eum expedita enim delectus eius dolorem qui. Omnis ut enim magnam porro.\nQuod corporis in accusamus maiores sit reiciendis vel numquam. Veritatis ut commodi dolore repellendus. Repellat omnis illo omnis possimus. Ipsam qui accusantium non consectetur modi qui ut. Necessitatibus corrupti reprehenderit et eum.\nAliquid perspiciatis dolores voluptatibus temporibus. Facilis qui aut voluptatum unde illum. Aut perferendis aut dolorem magni qui rem omnis. Ipsum architecto quia eum dignissimos aut amet.\nRecusandae sit vel sed saepe ut. Molestias doloribus nobis laudantium rerum delectus. Qui aut possimus sit quos perferendis. Provident eum ipsa accusamus nesciunt voluptatem consequuntur quo.\nRem deleniti ratione quod atque commodi. Error mollitia asperiores corporis quo qui. Vitae incidunt sed quisquam tempora quo nostrum in placeat. Eveniet ut et et eum rem quia et dolores."], ["name", "Product #4 - 9596"], ["shipping_category_id", 1], ["slug", "product-4-9596"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:02.735764"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:17:02.737942"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.739979' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.741053' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.742321' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.742859' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:17:02.746247"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:17:02.746247"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.747183' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.747744' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.748932' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.749413' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.753212' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.753759' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.754276' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:17:02.758235"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.759610' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.760663' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.761551' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.762452' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.763176' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:17:02.769443"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:02.769443"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-9596' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.773656' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:02.778638' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:17:02.787892' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:17:02.791575"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:17:02.791575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:17:02.793721"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:17:02.793721"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'adaline@langoshfeest.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158234221074xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:17:02.796658"], ["email", "adaline@langoshfeest.info"], ["encrypted_password", "83e50d0d4ac723aa543f3d1f24200ab363c71a43d8e2e34239695048ff5e0e01263fec089925a13d93e6ac69ff16c27d255ca8a384bceeb5b1ce687ded788d87"], ["login", "adaline@langoshfeest.info"], ["password_salt", "gi9YBv9hesGFKyXMV99a"], ["updated_at", "2014-11-12 20:17:02.796658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:02.799300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:17:02.800704"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:17:02.800704"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R082440884' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R082440884%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R082440884' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'OM8ODzkU4hN8dFYfIcdzZg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:17:02.806063"], ["currency", "USD"], ["email", "adaline@langoshfeest.info"], ["guest_token", "OM8ODzkU4hN8dFYfIcdzZg"], ["number", "R082440884"], ["state", "cart"], ["updated_at", "2014-11-12 20:17:02.806063"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'GEKWLLQX' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:17:02.808490"], ["identifier", "GEKWLLQX"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:17:02.808490"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.810651' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-511042' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-511042"], ["updated_at", "2014-11-12 20:17:02.811824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'koby_lynch@batz.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158234221935xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:17:02.824647"], ["email", "koby_lynch@batz.com"], ["encrypted_password", "78e76af0a131055e36bf0123434c85598f3c92a3bd1c20c20b4b7638ce553a19bc865c5f53f557a6d6d03710cf574cf568b36bccfe44c28c152ecfdffb76d302"], ["login", "koby_lynch@batz.com"], ["password_salt", "9-GL81o3VXKs-MJNvMRV"], ["updated_at", "2014-11-12 20:17:02.824647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:17:02.827982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:02.829304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:17:02.830803"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:17:02.830803"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R571620433' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R571620433%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R571620433' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QcIp_z8XS7xV6dkaSb8JaA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:17:02.836285"], ["currency", "USD"], ["email", "koby_lynch@batz.com"], ["guest_token", "QcIp_z8XS7xV6dkaSb8JaA"], ["number", "R571620433"], ["state", "cart"], ["updated_at", "2014-11-12 20:17:02.836285"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:17:02.846400"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:17:02.846400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 329558' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:17:02.849546"], ["description", "Minima sed consequatur et fugiat consequatur."], ["name", "TaxCategory - 329558"], ["updated_at", "2014-11-12 20:17:02.849546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:17:02.853215"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:17:02.853215"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8198' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8198' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:17:02.845028"], ["created_at", "2014-11-12 20:17:02.857294"], ["description", "Quo nam qui dolore accusamus deserunt. Sunt distinctio facere officiis reiciendis provident voluptas. Ea ipsa sit vitae enim sit. Vero ipsum quo et corrupti praesentium animi.\nId aliquid voluptas eum alias consequatur molestias veniam. Ea laudantium eum sed qui voluptatem est voluptate. Ipsum molestiae impedit et assumenda. Qui iusto necessitatibus dignissimos dolor dolor cum. Odio vero quo tenetur voluptate voluptas.\nEos repudiandae iste ipsum eum laboriosam corrupti enim sed. Ab tempore explicabo quia voluptatem molestiae. Sit ullam illum hic et a vel omnis laborum. Magni deleniti autem praesentium voluptatem aut.\nModi et totam facilis doloremque. Esse voluptas odio at quas doloribus adipisci et ipsum. Voluptas recusandae modi placeat omnis inventore doloribus.\nVoluptatem aut eius quos repudiandae voluptatem tempora. Deleniti cumque non consequatur rerum nisi debitis quos qui. Ut quae quasi modi vel nam dolores qui."], ["name", "Product #5 - 8198"], ["shipping_category_id", 1], ["slug", "product-5-8198"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:02.857294"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:17:02.859978"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.862248' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.863504' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.864883' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.865542' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:17:02.869470"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:17:02.869470"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.870636' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.871363' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.872710' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.873310' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.878508' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.879362' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.880023' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:17:02.881956"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.882753' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.883377' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.883936' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.884677' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.885196' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:17:02.891883"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:02.891883"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8198' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.897137' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:02.902465' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9074' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9074' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:17:02.910805"], ["created_at", "2014-11-12 20:17:02.915465"], ["description", "Qui magni porro suscipit quo beatae accusamus dolores libero. Deserunt aperiam tempora debitis nobis maiores ut et pariatur. Rerum eos animi error ad quae. Nobis minima architecto veniam sunt id et enim ut. Minima aliquid nostrum esse voluptatem hic odit.\nLaboriosam ut sint nemo ut. Sit vitae et aspernatur deserunt qui. Aut est sed eum ut. Quam aut cum quasi et sed id assumenda numquam. Quo autem quisquam natus placeat iusto similique excepturi.\nIn explicabo quis consequatur aut. Debitis ut quia reiciendis minima omnis soluta ut laborum. Et officia reprehenderit mollitia porro. Sit accusamus vero aut magni.\nVelit consequatur ipsum neque sapiente aut exercitationem dolorum quia. Debitis harum blanditiis ipsa ad eaque a. Ducimus dolorum nulla enim impedit. Eum sint quod saepe aliquid tempora dolores provident. Id molestias ab omnis modi ut.\nEt ea ad aut ex asperiores quia aspernatur. Atque excepturi suscipit qui provident repudiandae debitis ut at. Nihil unde sit sunt velit optio voluptatem totam consequatur."], ["name", "Product #6 - 9074"], ["shipping_category_id", 1], ["slug", "product-6-9074"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:02.915465"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:17:02.918129"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.920432' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.921767' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.923267' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.923956' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:17:02.928165"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:17:02.928165"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.929668' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.930403' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.931772' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.932444' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.937209' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.937912' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.938532' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:17:02.940252"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.940971' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.941484' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.941979' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.942556' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:02.943031' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:17:02.948028"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:02.948028"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9074' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.952704' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:02.958243' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:17:02.968957' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:17:02.972781"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:17:02.972781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:17:02.974861"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:17:02.974861"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lauriane@muraziktrantow.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158234228066xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:17:02.978040"], ["email", "lauriane@muraziktrantow.info"], ["encrypted_password", "22842cb0ca3d35fc73703c5646a583c5d461d0fbf1fe4b32a2e6116547c5593d9119f3f9f57ddd3cbc920daa21f21957060ee5f7f014c073ea5c900fe5fd1233"], ["login", "lauriane@muraziktrantow.info"], ["password_salt", "8msPACyhq7tFKUCdW44y"], ["updated_at", "2014-11-12 20:17:02.978040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:02.981042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:17:02.982600"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:17:02.982600"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R996563119' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R996563119%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R996563119' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Jh1NTU8E_SsOdPMWz3zKmw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:17:02.988066"], ["currency", "USD"], ["email", "lauriane@muraziktrantow.info"], ["guest_token", "Jh1NTU8E_SsOdPMWz3zKmw"], ["number", "R996563119"], ["state", "cart"], ["updated_at", "2014-11-12 20:17:02.988066"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'GT7B357F' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:17:02.990543"], ["identifier", "GT7B357F"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:17:02.990543"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.992945' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-222310' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-222310"], ["updated_at", "2014-11-12 20:17:02.994178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cale.hoppe@littel.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158234237487xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:17:03.011402"], ["email", "cale.hoppe@littel.us"], ["encrypted_password", "c01674135b6790cd64aa266af02e3c2f3c27ae20585571f822aa0d226f534d833c1e6f03712dc37e2b857a6fedbb5f2a6a8002232f13356f69ed8ce4afd9836a"], ["login", "cale.hoppe@littel.us"], ["password_salt", "zQrFv2tev4ARaiqg5Y6o"], ["updated_at", "2014-11-12 20:17:03.011402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:17:03.030041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:03.031472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:17:03.032986"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:17:03.032986"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R785808796' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R785808796%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R785808796' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'UZsRfsvrDdNmCXXE-QzzBw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:17:03.038451"], ["currency", "USD"], ["email", "cale.hoppe@littel.us"], ["guest_token", "UZsRfsvrDdNmCXXE-QzzBw"], ["number", "R785808796"], ["state", "cart"], ["updated_at", "2014-11-12 20:17:03.038451"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:17:03.052043"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:17:03.052043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 946475' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:17:03.055555"], ["description", "Doloremque aut et architecto deserunt est iusto id."], ["name", "TaxCategory - 946475"], ["updated_at", "2014-11-12 20:17:03.055555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:17:03.058855"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:17:03.058855"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-1162' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-1162' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:17:03.050246"], ["created_at", "2014-11-12 20:17:03.062484"], ["description", "Aliquam laudantium fugit rerum aspernatur at. Et voluptas eum rerum repellat. Amet assumenda nostrum suscipit omnis enim perferendis. Laboriosam consequatur sint voluptatum voluptatem dignissimos laudantium rerum. Aut et quod atque recusandae adipisci.\nId ea mollitia porro atque. Hic id et ut enim at commodi optio. Aut repellat ab cumque rerum est facere ullam a. Optio porro eveniet exercitationem possimus aut voluptatem libero.\nPossimus praesentium fugit asperiores rerum qui ut autem minus. Placeat labore sunt est voluptatem laboriosam et. Aut qui reiciendis doloribus voluptatum eveniet similique corrupti nihil. Fuga illo atque autem quidem ab ut. Occaecati ipsum velit tempora illo illum et."], ["name", "Product #7 - 1162"], ["shipping_category_id", 1], ["slug", "product-7-1162"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:03.062484"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:17:03.064626"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.066651' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.067744' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.068975' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.069570' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:17:03.072834"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:17:03.072834"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.073770' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.074294' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.075424' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.075905' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.079887' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.080446' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.080951' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:17:03.084809"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.086210' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.087201' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.088152' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.089073' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.089779' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:17:03.096154"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:03.096154"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-1162' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.100443' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:03.105068' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-2472' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-2472' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:17:03.111767"], ["created_at", "2014-11-12 20:17:03.115447"], ["description", "Quis libero sed minima dolor impedit est est quia. Accusamus molestiae et repellat necessitatibus. Vel illum sit animi natus illo a sed vero. Error incidunt mollitia omnis numquam voluptatum iste cum modi.\nEos id enim aut beatae dolores labore. Inventore deleniti quidem iure consequatur sapiente. Numquam dolor laborum labore quasi inventore dolorum porro tempore. Molestias dolor sit dolor quam vitae rerum quos. Quia accusamus omnis quia dolorum.\nId incidunt alias est sequi et ipsam nihil. Perferendis porro aperiam nisi quidem doloribus dolor at. Non et voluptatibus modi aperiam. Iste ut aut distinctio nihil aut dolor iure. Officia quaerat et explicabo ex reiciendis aspernatur dignissimos.\nAliquid neque nam asperiores voluptatibus ex non. Sit qui tempore consequatur et rerum. Cupiditate ea enim est sit. Et in blanditiis quas suscipit iure sint quibusdam magnam. Quia est tempora harum molestias."], ["name", "Product #8 - 2472"], ["shipping_category_id", 1], ["slug", "product-8-2472"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:03.115447"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:17:03.117600"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.119566' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.120640' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.121937' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.122460' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:17:03.125807"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:17:03.125807"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.126729' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.127262' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.128359' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.128905' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.132831' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.133402' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.134048' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:17:03.137937"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.139273' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.140193' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.141093' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.141826' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.142290' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:17:03.148790"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:03.148790"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-2472' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.152922' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:03.157663' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:17:03.166362' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:17:03.170013"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:17:03.170013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:17:03.171999"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:17:03.171999"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'claudia@schummblanda.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158234237458xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:17:03.174842"], ["email", "claudia@schummblanda.co.uk"], ["encrypted_password", "5adf2750638cd49e599c098c97cbc1502b6246be7fd87ff84a0740b1b8ad5cabc5f55094e83655c0e3c310564dd51e8224bf98e887da77884e0a4fb7c13401ed"], ["login", "claudia@schummblanda.co.uk"], ["password_salt", "ddCx_LrWvFyxrHW4itxn"], ["updated_at", "2014-11-12 20:17:03.174842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:03.177382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:17:03.178756"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:17:03.178756"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R629788265' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R629788265%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R629788265' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '4QTwm42CGt9bxruood-TcA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:17:03.184104"], ["currency", "USD"], ["email", "claudia@schummblanda.co.uk"], ["guest_token", "4QTwm42CGt9bxruood-TcA"], ["number", "R629788265"], ["state", "cart"], ["updated_at", "2014-11-12 20:17:03.184104"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'SWMEPSUK' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:17:03.186529"], ["identifier", "SWMEPSUK"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:17:03.186529"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.188745' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-404512' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-404512"], ["updated_at", "2014-11-12 20:17:03.189957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'freeman@rippin.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158234239099xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:17:03.207190"], ["email", "freeman@rippin.name"], ["encrypted_password", "ae640f827ca2bf5ad86097b60444533f7c0e65c8b3cbf3367a8944338d4c439f39e77333baf48e17698fb3beb46afbd8ff67bf9a1c8702e05039ee17dcee21bb"], ["login", "freeman@rippin.name"], ["password_salt", "-Bwe5atGygoNDWBLRYek"], ["updated_at", "2014-11-12 20:17:03.207190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:17:03.211470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:03.212870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:17:03.214260"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:17:03.214260"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153007749' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R153007749%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153007749' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ibRKnLZ-4kzm3621FM6k7w' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:17:03.219776"], ["currency", "USD"], ["email", "freeman@rippin.name"], ["guest_token", "ibRKnLZ-4kzm3621FM6k7w"], ["number", "R153007749"], ["state", "cart"], ["updated_at", "2014-11-12 20:17:03.219776"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:17:03.227941"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:17:03.227941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 172991' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:17:03.230841"], ["description", "Numquam est dolorem laborum ratione quia iure."], ["name", "TaxCategory - 172991"], ["updated_at", "2014-11-12 20:17:03.230841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:17:03.234326"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:17:03.234326"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-6617' LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-6617' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:17:03.226880"], ["created_at", "2014-11-12 20:17:03.239096"], ["description", "At dolor iure itaque ipsam aliquam facilis. Aliquam dolores ut iste qui debitis modi et atque. Autem accusamus minus excepturi assumenda unde. Optio nulla omnis laboriosam nobis. Aut placeat ipsum accusantium nobis mollitia impedit ad et.\nUt rerum nam porro esse qui asperiores. Minima dolores aut dignissimos corrupti harum. Molestiae debitis non reprehenderit voluptatum. Omnis est voluptas doloribus eligendi nostrum optio. Qui ea quos libero ipsam quia dicta molestiae.\nSint est et nihil et possimus id nisi perspiciatis. Quam quis et eius doloremque quis vel dolorem. Dicta velit quas aliquam enim natus. Nemo eum illum hic quaerat."], ["name", "Product #9 - 6617"], ["shipping_category_id", 1], ["slug", "product-9-6617"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:03.239096"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:17:03.243750"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.246994' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.248607' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.250273' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.250825' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:17:03.254160"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:17:03.254160"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.255487' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.256274' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.257612' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.258194' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.262659' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.263288' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.263895' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:17:03.265635"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.266370' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.266860' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.267357' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.268255' WHERE 1=0 SQL (0.5ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.268693' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:17:03.275092"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:03.275092"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-6617' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.280191' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:03.284993' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2755' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2755' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:17:03.292428"], ["created_at", "2014-11-12 20:17:03.296511"], ["description", "Adipisci laboriosam pariatur porro veniam voluptates. Ipsam amet maxime iste illum ad sapiente et. Cumque temporibus provident qui illum doloremque ipsa.\nRem unde et voluptates odio ut. Sint et hic ut sit. Id repellat voluptatem neque dolores aliquid et. Commodi cupiditate nobis sit possimus omnis nam quas ipsum.\nQui non qui ex fuga nemo. Velit asperiores neque assumenda earum quis quidem. Distinctio ea animi tempore dolorem. Sit quibusdam suscipit dignissimos itaque laborum optio sunt.\nIllo aliquam consequatur nostrum beatae veritatis. Voluptatem ratione ipsam sit beatae et nesciunt. Aut atque et harum vel qui. Dicta sed ab beatae quis sed sed consequuntur voluptas.\nEt deleniti ut dolorem aperiam. Doloremque ut suscipit sint quia recusandae. Dolor dolor esse deleniti inventore non ex illo odio. Sed libero expedita optio molestiae alias minus in. Velit necessitatibus voluptates id omnis qui est."], ["name", "Product #10 - 2755"], ["shipping_category_id", 1], ["slug", "product-10-2755"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:03.296511"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:17:03.298774"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.300751' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.301815' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.303078' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.303610' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:17:03.307301"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:17:03.307301"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.308357' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.308965' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.310156' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.310667' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.314678' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.316273' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.317492' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:17:03.320585"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.321732' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.322484' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.323241' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.324106' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.324822' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:17:03.330565"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:03.330565"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2755' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.334919' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:03.339707' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:17:03.348409' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:17:03.359482"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:17:03.359482"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:03.362962' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.363548' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:17:03.367291"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:17:03.367291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:17:03.369321"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:17:03.369321"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'michael@wintheiser.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582342351410xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:17:03.372368"], ["email", "michael@wintheiser.info"], ["encrypted_password", "000c09309dfedaeea46aecf8214a33cbf409f478c24eceeb00b75843184ceb0a5a1f1257fb6056b01e62f4fb375696c8c2dfca680863c166b4b505144e10ef6a"], ["login", "michael@wintheiser.info"], ["password_salt", "sy5EZHx-HzPQMuU1AXwX"], ["updated_at", "2014-11-12 20:17:03.372368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:03.374957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:17:03.376383"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:17:03.376383"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R579283496' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R579283496%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R579283496' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '_Fg-kjqBwQv4pdffG4TukQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:17:03.381669"], ["currency", "USD"], ["email", "michael@wintheiser.info"], ["guest_token", "_Fg-kjqBwQv4pdffG4TukQ"], ["number", "R579283496"], ["state", "cart"], ["updated_at", "2014-11-12 20:17:03.381669"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '6LVDFULL' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:17:03.384092"], ["identifier", "6LVDFULL"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:17:03.384092"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.386293' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-453202' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-453202"], ["updated_at", "2014-11-12 20:17:03.387503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'darrick@kiehn.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158234238811xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:17:03.405061"], ["email", "darrick@kiehn.name"], ["encrypted_password", "90cd1732f7685083f2bd262ea666bee496f20e19d6af8eeb0f7fa75b68c450c261e774ba4f287c2289b24d3e852346096f63f51cedd7daffb5de0dd845921a23"], ["login", "darrick@kiehn.name"], ["password_salt", "M3R993TSoFJr9iUsy4_q"], ["updated_at", "2014-11-12 20:17:03.405061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:17:03.409258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:03.410565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:17:03.411967"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:17:03.411967"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R156766689' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R156766689%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R156766689' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xPUQMEnMugT2TLJyiuf-3g' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:17:03.417458"], ["currency", "USD"], ["email", "darrick@kiehn.name"], ["guest_token", "xPUQMEnMugT2TLJyiuf-3g"], ["number", "R156766689"], ["state", "cart"], ["updated_at", "2014-11-12 20:17:03.417458"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:17:03.424585"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:17:03.424585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 30509' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:17:03.427267"], ["description", "Commodi suscipit accusantium consequatur ad quaerat ipsam eos tempora."], ["name", "TaxCategory - 30509"], ["updated_at", "2014-11-12 20:17:03.427267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:17:03.430572"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:17:03.430572"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-9818' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-9818' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:17:03.423534"], ["created_at", "2014-11-12 20:17:03.434093"], ["description", "Veritatis eum maxime et blanditiis assumenda facilis dolor. Consequatur nobis nisi pariatur aspernatur adipisci cum porro. Sequi error dignissimos et sed deleniti inventore modi repellat. Iste ab nostrum neque rerum provident nulla. Illum magni quo tempore possimus quia soluta."], ["name", "Product #11 - 9818"], ["shipping_category_id", 1], ["slug", "product-11-9818"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:03.434093"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:17:03.436589"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.438799' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.440133' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.443539' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.444271' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:17:03.450212"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:17:03.450212"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.451648' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.452419' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.453744' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.454245' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.458767' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.459419' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.459991' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:17:03.461787"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.462488' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.462944' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.463407' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.463967' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.464414' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:17:03.469276"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:03.469276"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-9818' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.473940' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:03.478501' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1696' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1696' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:17:03.485392"], ["created_at", "2014-11-12 20:17:03.489117"], ["description", "Accusamus qui modi et numquam. Odio hic eum nihil quis natus architecto ut. Voluptas dolor et aliquam consectetur. Occaecati atque rerum dolores accusantium eum minus nobis. Pariatur ullam ratione blanditiis dignissimos quae dolorum at.\nEt dolorem rerum quaerat iure repudiandae magnam. Esse eum excepturi quo ut asperiores et. Quas laboriosam impedit eius cumque rem nihil. Totam ut nemo dolor et nostrum reprehenderit voluptatibus.\nRem dolor vel ipsum atque consectetur omnis quia dolorem. Totam sed quia blanditiis velit impedit maiores molestias. Consequuntur minus doloribus et qui.\nExercitationem ea voluptatem eius et omnis explicabo. Et in ea in reiciendis. Ducimus omnis porro dolores pariatur. Voluptatem non perferendis ipsa laborum inventore. Non dolor quo amet impedit nemo velit accusantium dolor.\nAt cum fugit quis perspiciatis. Voluptas ut eveniet numquam itaque molestiae asperiores veniam facilis. Ab labore sit et cumque vel perferendis rerum."], ["name", "Product #12 - 1696"], ["shipping_category_id", 1], ["slug", "product-12-1696"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:03.489117"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:17:03.491238"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.493186' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.494241' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.495488' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.496029' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:17:03.499378"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:17:03.499378"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.500340' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.500869' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.502039' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.502529' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.506364' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.506910' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.507428' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:17:03.509232"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.510016' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.510562' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.511078' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.511704' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:17:03.512170' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:17:03.516919"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:17:03.516919"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1696' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.521087' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:03.525592' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:17:03.549584' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:17:03.551460"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:17:03.551460"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:17:03.554407' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.554930' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:17:03.558520"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:17:03.558520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:17:03.560468"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:17:03.560468"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'horacio.torp@hermann.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582342329212xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:17:03.563352"], ["email", "horacio.torp@hermann.co.uk"], ["encrypted_password", "7bc369aff0d175fa9a5e2ca437458e3879c4988ef4104c3c1d25daa590bb941e00cecced556850f3cb74d1b4efa358072fab261a98e80e7fd34b03a3078a3e9e"], ["login", "horacio.torp@hermann.co.uk"], ["password_salt", "-zyrkVMyZkpYwmJJLU1c"], ["updated_at", "2014-11-12 20:17:03.563352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:03.565854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:17:03.567224"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:17:03.567224"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R098841283' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R098841283%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R098841283' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'A-KNqjRaXQzvDyn0KR97cw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:17:03.572354"], ["currency", "USD"], ["email", "horacio.torp@hermann.co.uk"], ["guest_token", "A-KNqjRaXQzvDyn0KR97cw"], ["number", "R098841283"], ["state", "cart"], ["updated_at", "2014-11-12 20:17:03.572354"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WVQR3XFE' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:17:03.574726"], ["identifier", "WVQR3XFE"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:17:03.574726"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.576891' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-334453' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-334453"], ["updated_at", "2014-11-12 20:17:03.578070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dasia.hamill@kuhn.info' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158235699061xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:19:29.572731"], ["email", "dasia.hamill@kuhn.info"], ["encrypted_password", "f24b7884bdf982d37aacb7323fa43d17355dfdfb23e39246a1fa90040f235b78e27363349479739de231235de4c9b5fef87c9fbc60c843a25da766c1eadbcb78"], ["login", "dasia.hamill@kuhn.info"], ["password_salt", "mcdn4eKmrY2hY3rn39SR"], ["updated_at", "2014-11-12 20:19:29.572731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:19:29.606182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:29.612416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:19:29.620717"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:19:29.620717"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R707195561' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R707195561%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R707195561' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'DPr0rCei1ZFJN11Y3ZT35A' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:19:29.653943"], ["currency", "USD"], ["email", "dasia.hamill@kuhn.info"], ["guest_token", "DPr0rCei1ZFJN11Y3ZT35A"], ["number", "R707195561"], ["state", "cart"], ["updated_at", "2014-11-12 20:19:29.653943"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:19:29.706323"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:19:29.706323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 550609' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:19:29.715984"], ["description", "Aut dolorum ut molestiae quia earum aut dignissimos."], ["name", "TaxCategory - 550609"], ["updated_at", "2014-11-12 20:19:29.715984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:19:29.738408"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:19:29.738408"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-6299' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-6299' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:19:29.702305"], ["created_at", "2014-11-12 20:19:29.743451"], ["description", "In omnis explicabo velit vero vel. Sunt eaque dicta non amet sint cumque voluptas voluptatum. Rerum qui quis recusandae sit et.\nQuis architecto pariatur suscipit ab culpa laborum et aut. Enim veniam dolor animi possimus. Non sed ipsam et maiores. Nobis aut sint est inventore et. Quia sed debitis optio magnam deleniti.\nPraesentium est qui numquam non voluptas. Ipsa qui sint tempora harum et soluta impedit. Eum qui mollitia optio neque sit.\nEt minus neque quis et corrupti delectus. Nemo officia quo voluptatem dolor eos consectetur est voluptatem. Sit id ut harum eligendi voluptatem."], ["name", "Product #1 - 6299"], ["shipping_category_id", 1], ["slug", "product-1-6299"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:29.743451"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:19:29.746122"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:29.753227' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.754505' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.767948' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:29.769178' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:19:29.868520"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:19:29.868520"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:29.869794' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.870407' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.871617' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:29.872132' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.882572' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.883166' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:29.883702' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:19:29.885417"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.886588' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.887046' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:29.887509' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.888045' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:29.888471' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:19:29.904455"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:29.904455"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-6299' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:29.912500' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:29.920605' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-5150' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-5150' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:19:29.927414"], ["created_at", "2014-11-12 20:19:29.931008"], ["description", "Temporibus aut ratione sit dolorum excepturi ut non. Sapiente animi ut mollitia et. Et ut consequatur rerum dolorum dolores. At perferendis ex provident animi repudiandae aut dolores consequatur. In laborum facere omnis consequatur atque ratione iste voluptatem.\nEa repellat omnis sit quisquam qui. Qui magnam nihil veniam dignissimos. Quis doloremque deleniti laudantium molestiae consequuntur maxime dolorum et.\nEa voluptates quis repudiandae in est cumque. Qui excepturi expedita asperiores sit molestias doloribus eius. Atque autem dolor porro quia rerum blanditiis quia. Non sed quia nisi voluptas laudantium.\nLibero fugit alias consequuntur architecto occaecati. Qui voluptatem consequatur dolorem in rerum incidunt. Nostrum consequatur velit iste ea exercitationem. Doloremque suscipit neque reprehenderit eum voluptatem quisquam.\nRepellendus voluptatem et animi voluptatem quaerat sunt. Quis delectus necessitatibus et eius quo non. Natus aut fugiat minus asperiores. Vel dolorem corrupti dignissimos qui id cupiditate officia."], ["name", "Product #2 - 5150"], ["shipping_category_id", 1], ["slug", "product-2-5150"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:29.931008"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:19:29.933070"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:29.934935' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.935940' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.937140' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:29.937653' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:19:29.940778"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:19:29.940778"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:29.941662' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.942161' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.943203' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:29.943654' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.947607' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.948085' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:29.948666' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:19:29.950393"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.951123' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.951603' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:29.952090' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.952615' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:29.953029' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:19:29.957447"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:29.957447"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-5150' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:29.961364' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:29.965536' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:19:29.982209' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.001739"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:19:30.001739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.013642"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:19:30.013642"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lavon_hintz@bradtkeadams.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158235704252xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:19:30.017995"], ["email", "lavon_hintz@bradtkeadams.co.uk"], ["encrypted_password", "d633d52e01e733941099189bacd4fcb914dc7fc3ab782bb4a5ea8a9f5c3a208099b42414d4fbd0e7d24f599851cc86dee10a5c4ec95b2464a72f4c9a90b86c33"], ["login", "lavon_hintz@bradtkeadams.co.uk"], ["password_salt", "Nqqdeufiqe46iTzuPxSx"], ["updated_at", "2014-11-12 20:19:30.017995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.020496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.021812"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:19:30.021812"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R675628303' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R675628303%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R675628303' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'smNKumzIiAeu4YtNmnvaEg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:19:30.026938"], ["currency", "USD"], ["email", "lavon_hintz@bradtkeadams.co.uk"], ["guest_token", "smNKumzIiAeu4YtNmnvaEg"], ["number", "R675628303"], ["state", "cart"], ["updated_at", "2014-11-12 20:19:30.026938"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'RXR9N93L' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:19:30.037888"], ["identifier", "RXR9N93L"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:19:30.037888"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.040614' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-125153' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-125153"], ["updated_at", "2014-11-12 20:19:30.041876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'audreanne@schroederlang.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158235707043xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:19:30.062156"], ["email", "audreanne@schroederlang.co.uk"], ["encrypted_password", "ed69420ce9f3381a87f3b5d7d679b3343b20cf477bec355f279dad6cee5774a30f9380ec98a7b79e42a70f43453199335c8d545a97f7cb365bbdaec06db1de9c"], ["login", "audreanne@schroederlang.co.uk"], ["password_salt", "LHtiHpU4vhbEASvx49tg"], ["updated_at", "2014-11-12 20:19:30.062156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:19:30.066249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.067621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.068982"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:19:30.068982"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R827973840' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R827973840%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R827973840' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NXx8W6pQkzQKjt3T3-WehQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:19:30.074304"], ["currency", "USD"], ["email", "audreanne@schroederlang.co.uk"], ["guest_token", "NXx8W6pQkzQKjt3T3-WehQ"], ["number", "R827973840"], ["state", "cart"], ["updated_at", "2014-11-12 20:19:30.074304"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:19:30.080692"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:19:30.080692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 84061' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.083204"], ["description", "Adipisci expedita consequatur ab id veritatis reprehenderit atque."], ["name", "TaxCategory - 84061"], ["updated_at", "2014-11-12 20:19:30.083204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.086356"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:19:30.086356"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-6432' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-6432' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:19:30.079672"], ["created_at", "2014-11-12 20:19:30.089742"], ["description", "Neque suscipit nulla enim quis. Esse nulla cupiditate et eum quis voluptas ab quibusdam. In odit ad ipsam voluptatem."], ["name", "Product #3 - 6432"], ["shipping_category_id", 1], ["slug", "product-3-6432"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.089742"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:19:30.091812"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.094069' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.095355' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.096874' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.097463' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:19:30.100799"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:19:30.100799"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.101746' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.102282' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.103359' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.103833' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.107596' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.108077' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.108565' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.110262"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.110923' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.111405' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.111901' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.112479' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.112946' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:19:30.117631"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.117631"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-6432' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.121634' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:30.125882' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2866' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2866' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:19:30.130580"], ["created_at", "2014-11-12 20:19:30.134009"], ["description", "Sit sit harum enim dolore. Ducimus libero voluptatem iusto et ipsum. Aut rerum nesciunt et ut corrupti libero laborum optio. At assumenda quasi et beatae quia velit vero. Quos inventore eum rerum doloribus qui fuga sint ipsa.\nFacilis ut vel cum rem aperiam consequatur enim qui. Saepe earum dignissimos fuga iste voluptatem a voluptatem. Libero aut quo explicabo vero et aut occaecati iste."], ["name", "Product #4 - 2866"], ["shipping_category_id", 1], ["slug", "product-4-2866"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.134009"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:19:30.135985"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.137831' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.138828' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.139989' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.140502' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:19:30.143592"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:19:30.143592"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.144476' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.144963' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.145999' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.146455' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.150062' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.150533' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.151006' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.152605"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.153274' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.153768' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.154264' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.154820' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.155287' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:19:30.159851"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.159851"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2866' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.163725' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:30.167865' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:19:30.175953' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.179633"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:19:30.179633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.181623"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:19:30.181623"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hayden_conn@kubabernathy.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158235708504xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:19:30.184418"], ["email", "hayden_conn@kubabernathy.co.uk"], ["encrypted_password", "022697e90b1844a22e6921bdfe817e6bc150fe1bcedb3b179cacc7b1a7890cd9ca5dc427b284523b34ef8fa9664cfe8a35dd35518532e25699578407bc70c957"], ["login", "hayden_conn@kubabernathy.co.uk"], ["password_salt", "nvvYXTUQnFyJEN3F4kE4"], ["updated_at", "2014-11-12 20:19:30.184418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.186825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.188125"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:19:30.188125"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R844340965' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R844340965%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R844340965' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'YtSIhFKRwkrX3GJUw3VOGw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:19:30.193007"], ["currency", "USD"], ["email", "hayden_conn@kubabernathy.co.uk"], ["guest_token", "YtSIhFKRwkrX3GJUw3VOGw"], ["number", "R844340965"], ["state", "cart"], ["updated_at", "2014-11-12 20:19:30.193007"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'FBPRPQ3X' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:19:30.195251"], ["identifier", "FBPRPQ3X"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:19:30.195251"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.197264' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-200531' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-200531"], ["updated_at", "2014-11-12 20:19:30.198412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carmelo_dibbert@koepp.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158235707695xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:19:30.215077"], ["email", "carmelo_dibbert@koepp.biz"], ["encrypted_password", "7e25e13b92824e47e9c6f73a5f72dedb32f2d15cac8c2f8dac33250c3fcb2f8f0a9fbe2301b488ee2d96486fd3db84d5515db33a598ab293d68a39e4258ecf54"], ["login", "carmelo_dibbert@koepp.biz"], ["password_salt", "bW-PSW6dz9ivszGx2pv8"], ["updated_at", "2014-11-12 20:19:30.215077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:19:30.219262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.220641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.222005"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:19:30.222005"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R890243087' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R890243087%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R890243087' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'lJ_q4J6hMDY4GsRB9whFmQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:19:30.227180"], ["currency", "USD"], ["email", "carmelo_dibbert@koepp.biz"], ["guest_token", "lJ_q4J6hMDY4GsRB9whFmQ"], ["number", "R890243087"], ["state", "cart"], ["updated_at", "2014-11-12 20:19:30.227180"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:19:30.236433"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:19:30.236433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 579274' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.238994"], ["description", "Temporibus accusamus deserunt quasi deleniti."], ["name", "TaxCategory - 579274"], ["updated_at", "2014-11-12 20:19:30.238994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.242146"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:19:30.242146"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-1676' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-1676' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:19:30.235368"], ["created_at", "2014-11-12 20:19:30.245676"], ["description", "Voluptatem voluptas ea odio dolore. Sed alias recusandae quos a velit. Numquam et cupiditate magnam fugiat. Doloremque est aliquid vel velit qui.\nNobis nostrum porro voluptatibus molestias totam voluptatem id. Itaque id officiis voluptatem ut sed vero. Vero officia aspernatur adipisci dolores ut reprehenderit. Dolorem voluptatem quia nobis ut soluta et expedita. Voluptatem quaerat ut assumenda veritatis tempore.\nOccaecati voluptatem laudantium architecto quo nam eum consequatur beatae. Nulla iusto dolores earum amet aperiam id. Omnis aut rerum aliquam ducimus sit et sit nam. Repudiandae qui quasi dolorem et quos ullam quo voluptas.\nError dolor eligendi quam molestias repellat aut. Molestias quidem mollitia iure quia quos voluptas aut totam. Et magnam qui qui dolor. Quos eum sed quo inventore dolor aut. Culpa voluptatem neque et et asperiores commodi.\nTemporibus quia est aut et. Aliquam iste consequatur dolor nulla sunt quidem est. Explicabo libero dolor quidem illo."], ["name", "Product #5 - 1676"], ["shipping_category_id", 1], ["slug", "product-5-1676"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.245676"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:19:30.248109"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.250117' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.251252' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.252485' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.253027' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:19:30.256199"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:19:30.256199"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.257079' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.257598' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.258649' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.259115' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.262841' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.263416' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.264002' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.267692"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.269033' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.269974' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.270929' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.272271' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.272949' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:19:30.279327"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.279327"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-1676' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.283657' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:30.287903' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-5903' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-5903' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:19:30.292435"], ["created_at", "2014-11-12 20:19:30.296093"], ["description", "A eaque accusamus repellendus quod sunt. Eius voluptates voluptas ea error atque mollitia. Saepe sapiente possimus nemo vitae non.\nA tenetur et nobis itaque aut molestias. Odit enim enim perspiciatis beatae quia est qui consequatur. Totam assumenda sequi eveniet voluptatibus quos. Enim eligendi eius et pariatur corporis officiis ex."], ["name", "Product #6 - 5903"], ["shipping_category_id", 1], ["slug", "product-6-5903"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.296093"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:19:30.298086"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.299954' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.315754' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.317051' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.317613' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:19:30.320888"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:19:30.320888"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.321838' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.322371' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.323469' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.323945' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.327899' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.328404' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.328908' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.330695"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.331417' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.331941' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.332477' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.333063' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.333512' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:19:30.338134"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.338134"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-5903' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.342133' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:30.346601' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:19:30.355364' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.359041"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:19:30.359041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.361055"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:19:30.361055"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'enid@okeefe.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158235701356xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:19:30.363974"], ["email", "enid@okeefe.co.uk"], ["encrypted_password", "cdae94163f5d21de2b24d2ac4451c183bfde2c40281c99c0c52da94c6952a3a95e9b1c16fb2d31160d9d136e78eaa1908e407bb747a8ac52d8f0fee0bfe2c5c1"], ["login", "enid@okeefe.co.uk"], ["password_salt", "-TptY_pnNz_YErEj7Uvt"], ["updated_at", "2014-11-12 20:19:30.363974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.366482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.367887"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:19:30.367887"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R889628031' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R889628031%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R889628031' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Vkcdxn1BD7-jOO4_LcZnMQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:19:30.373660"], ["currency", "USD"], ["email", "enid@okeefe.co.uk"], ["guest_token", "Vkcdxn1BD7-jOO4_LcZnMQ"], ["number", "R889628031"], ["state", "cart"], ["updated_at", "2014-11-12 20:19:30.373660"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'D9BVKWAE' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:19:30.376193"], ["identifier", "D9BVKWAE"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:19:30.376193"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.378644' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-211332' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-211332"], ["updated_at", "2014-11-12 20:19:30.380017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'judah@kunze.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415823570597xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:19:30.397002"], ["email", "judah@kunze.name"], ["encrypted_password", "53c65aaa879fbccc994ec03dcd2ea250d62f0ba64b2719b27075d798e3b31afb811f8fb7fb603afb3756e277a47d4c51fe8fb6226c4e6c1352d046a83e2d50a0"], ["login", "judah@kunze.name"], ["password_salt", "z-XD6tB3VbySDKtJ8M8P"], ["updated_at", "2014-11-12 20:19:30.397002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:19:30.401339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.402863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.404225"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:19:30.404225"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R415389023' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R415389023%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R415389023' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '1dfWlvYx5en-zk9bFuxYCw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:19:30.409648"], ["currency", "USD"], ["email", "judah@kunze.name"], ["guest_token", "1dfWlvYx5en-zk9bFuxYCw"], ["number", "R415389023"], ["state", "cart"], ["updated_at", "2014-11-12 20:19:30.409648"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:19:30.418642"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:19:30.418642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 636443' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.421320"], ["description", "Corrupti excepturi consequatur aut ullam."], ["name", "TaxCategory - 636443"], ["updated_at", "2014-11-12 20:19:30.421320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.424518"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:19:30.424518"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-3923' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-3923' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:19:30.417585"], ["created_at", "2014-11-12 20:19:30.428274"], ["description", "Magnam et voluptatibus rerum beatae culpa. Numquam eos quas cum veritatis porro aspernatur. Numquam ut doloremque velit rerum nihil rerum. Aut tempore nemo et sed tenetur.\nUt enim et officia aspernatur. Sed sapiente et atque ullam laborum delectus minus fugit. Ratione nihil sint inventore fugit consequuntur et sed vitae.\nEa aut iure ipsam deleniti beatae. Est delectus error omnis deserunt possimus amet. Et deserunt non repudiandae aut delectus amet eum incidunt.\nInventore numquam quidem tenetur et provident voluptatem. Voluptatem repudiandae est nemo voluptas sapiente voluptates fugiat placeat. Autem voluptas qui sint tempore doloremque. Tenetur tempore repellat nisi est nobis. Eum distinctio alias et molestiae possimus minus quia.\nDistinctio molestiae optio porro vitae. Porro eos quas et ullam soluta laborum est. Nostrum repudiandae quo amet ut dicta vitae facilis sunt."], ["name", "Product #7 - 3923"], ["shipping_category_id", 1], ["slug", "product-7-3923"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.428274"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:19:30.430738"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.433236' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.434480' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.435891' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.436457' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:19:30.439722"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:19:30.439722"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.440658' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.441147' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.442212' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.442715' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.446606' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.447101' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.447611' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.449316"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.450014' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.450535' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.451046' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.451631' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.452108' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:19:30.456906"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.456906"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-3923' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.461142' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:30.465568' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-893' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-893' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:19:30.470020"], ["created_at", "2014-11-12 20:19:30.473565"], ["description", "Quas quis voluptates quo et. Qui fugit eum nemo eos beatae. Et et sed excepturi reprehenderit atque aut. Exercitationem sed fugiat iste quod ducimus eligendi consequuntur dolore. Natus incidunt consequatur fuga consequatur iure soluta."], ["name", "Product #8 - 893"], ["shipping_category_id", 1], ["slug", "product-8-893"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.473565"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:19:30.475619"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.477558' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.478609' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.479823' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.480392' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:19:30.483755"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:19:30.483755"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.484692' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.485228' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.486337' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.486848' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.490720' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.491224' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.491721' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.493470"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.494154' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.494667' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.495181' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.495758' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.496238' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:19:30.500983"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.500983"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-893' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.505080' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:30.509427' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:19:30.517878' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.521465"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:19:30.521465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.523452"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:19:30.523452"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ezequiel@lehner.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158235703588xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:19:30.526349"], ["email", "ezequiel@lehner.name"], ["encrypted_password", "f4693df8f67d517eec5a5af0e7032763063db68f2087c53f773b3b006ed858de915377fa8bb86eb9d2c059acad5419dae01d266e96caa5a5fac0fb4838245627"], ["login", "ezequiel@lehner.name"], ["password_salt", "ywRzBxe-e1uSrP3WDyy5"], ["updated_at", "2014-11-12 20:19:30.526349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.528928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.530321"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:19:30.530321"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R846171441' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R846171441%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R846171441' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Do05ckcx1cBys79twRM8MQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:19:30.535445"], ["currency", "USD"], ["email", "ezequiel@lehner.name"], ["guest_token", "Do05ckcx1cBys79twRM8MQ"], ["number", "R846171441"], ["state", "cart"], ["updated_at", "2014-11-12 20:19:30.535445"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '8ZZC9ACH' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:19:30.537752"], ["identifier", "8ZZC9ACH"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:19:30.537752"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.539879' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-400514' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-400514"], ["updated_at", "2014-11-12 20:19:30.541050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'imogene_sipes@langworth.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158235701319xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:19:30.558622"], ["email", "imogene_sipes@langworth.biz"], ["encrypted_password", "fbf595b829879f1ef85174b3b2ea6ff1bd4c592b9350e56114ef7546d99390852d3b104438a5c58309e3a207836f447418182ef9cd8cfdb7f2c98c69aef23b75"], ["login", "imogene_sipes@langworth.biz"], ["password_salt", "9axWXXsZGJez1RigJqUq"], ["updated_at", "2014-11-12 20:19:30.558622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:19:30.562725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.563980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.565376"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:19:30.565376"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R261951568' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R261951568%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R261951568' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'PIaoTP_x8XPvoOuxaLjWlg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:19:30.570808"], ["currency", "USD"], ["email", "imogene_sipes@langworth.biz"], ["guest_token", "PIaoTP_x8XPvoOuxaLjWlg"], ["number", "R261951568"], ["state", "cart"], ["updated_at", "2014-11-12 20:19:30.570808"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:19:30.577735"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:19:30.577735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 498927' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.580418"], ["description", "Repellat maiores nostrum ut nihil ut nulla assumenda nisi."], ["name", "TaxCategory - 498927"], ["updated_at", "2014-11-12 20:19:30.580418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.583678"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:19:30.583678"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-9895' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-9895' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:19:30.576664"], ["created_at", "2014-11-12 20:19:30.587391"], ["description", "Eaque provident magnam assumenda aut. Illum omnis qui est aut eum. Soluta ducimus eveniet quasi vel voluptatem voluptas non reiciendis."], ["name", "Product #9 - 9895"], ["shipping_category_id", 1], ["slug", "product-9-9895"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.587391"]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:19:30.591289"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.595457' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.597233' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.599459' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.600292' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:19:30.604247"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:19:30.604247"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.605204' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.605761' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.606901' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.607389' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.611340' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.611860' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.612559' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.614357"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.615159' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.615642' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.616222' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.616801' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.617296' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:19:30.622073"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.622073"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-9895' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.626344' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:30.630907' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-6600' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-6600' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:19:30.636972"], ["created_at", "2014-11-12 20:19:30.640727"], ["description", "Aperiam omnis distinctio tempora doloremque. Illo praesentium voluptatem libero earum vel maxime corporis perferendis. Nihil eveniet iste ipsam sunt adipisci. Quo perspiciatis aperiam dolorem assumenda temporibus.\nSuscipit nam et et odit. Vel iste ratione repellat reprehenderit omnis quod et. Ut qui molestiae soluta voluptas maiores.\nIpsa eaque ipsum sequi voluptatibus est deleniti aut. Quia doloribus velit labore beatae ducimus sed est. Ducimus non atque aspernatur eius totam dolorem amet.\nLaudantium provident omnis voluptatem modi dolore minima delectus laboriosam. Minima praesentium sapiente mollitia non odit molestiae. Dolores quo dolor quis incidunt nesciunt. Sequi impedit repellendus illum recusandae. Et dolorem iure sed possimus reprehenderit quis voluptas tempora."], ["name", "Product #10 - 6600"], ["shipping_category_id", 1], ["slug", "product-10-6600"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.640727"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:19:30.642872"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.644791' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.645880' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.647134' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.647684' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:19:30.651044"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:19:30.651044"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.651963' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.652509' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.653653' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.654146' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.658039' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.658561' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.659090' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.662820"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.664140' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.665083' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.666007' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.666833' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.667573' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:19:30.673866"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.673866"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-6600' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.677909' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:30.682332' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:19:30.690994' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:19:30.702369"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:19:30.702369"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:30.705842' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.706380' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.710223"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:19:30.710223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.712337"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:19:30.712337"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'margret@pacocha.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582357065610xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:19:30.715423"], ["email", "margret@pacocha.info"], ["encrypted_password", "733ccae1eefd387bf576e2aca3724221e1b786aaa3e5ae5cc75db3d1616234233cd1b621cc4bcb2bd4f71a3433432fe8d41e648a895d61bbc13af2610ed27f64"], ["login", "margret@pacocha.info"], ["password_salt", "KwV8NMAx8gQS1ZH_b7yc"], ["updated_at", "2014-11-12 20:19:30.715423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.717968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.719390"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:19:30.719390"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R053470925' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R053470925%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R053470925' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'wIf3o7J0-0OD0QzlvcUZ5w' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:19:30.724772"], ["currency", "USD"], ["email", "margret@pacocha.info"], ["guest_token", "wIf3o7J0-0OD0QzlvcUZ5w"], ["number", "R053470925"], ["state", "cart"], ["updated_at", "2014-11-12 20:19:30.724772"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'QKCB2MV7' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:19:30.727187"], ["identifier", "QKCB2MV7"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:19:30.727187"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.729366' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-050215' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-050215"], ["updated_at", "2014-11-12 20:19:30.730587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cesar_lubowitz@dachlueilwitz.biz' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582357026711xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:19:30.749207"], ["email", "cesar_lubowitz@dachlueilwitz.biz"], ["encrypted_password", "47875a59a6cb70d76a749de70c128357c060483c2f827d1cac58225a152d711e04a9ed298dbb13548816c37af72be8a8fbd069c5766b9b559913284e65726e2e"], ["login", "cesar_lubowitz@dachlueilwitz.biz"], ["password_salt", "1yiQ6aZy49PL6hAbDCsD"], ["updated_at", "2014-11-12 20:19:30.749207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:19:30.754725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.756738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.758830"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:19:30.758830"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R325237295' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R325237295%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R325237295' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'SbZb8v3cPxYDz04uZxVKmQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:19:30.765055"], ["currency", "USD"], ["email", "cesar_lubowitz@dachlueilwitz.biz"], ["guest_token", "SbZb8v3cPxYDz04uZxVKmQ"], ["number", "R325237295"], ["state", "cart"], ["updated_at", "2014-11-12 20:19:30.765055"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:19:30.774199"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:19:30.774199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 698081' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.777081"], ["description", "Magni laboriosam aut assumenda quisquam et ducimus."], ["name", "TaxCategory - 698081"], ["updated_at", "2014-11-12 20:19:30.777081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.780760"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:19:30.780760"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-8969' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-8969' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:19:30.773073"], ["created_at", "2014-11-12 20:19:30.785088"], ["description", "Aut veritatis qui perspiciatis tempora. Quia ratione et ducimus explicabo eos cupiditate vitae. Ducimus aut mollitia ipsam perferendis voluptatem.\nVoluptas in perferendis repellendus laborum aut modi. Veniam eaque quae est non nam similique. Aut qui ut voluptate eum distinctio magni.\nPorro consequuntur excepturi ut et et non est et. Nulla soluta maiores consequatur eius ducimus modi. Dolor magnam rerum beatae quas et ipsa similique odit.\nConsequuntur asperiores aut officia aliquid repellat eligendi molestias vel. Distinctio vel maiores id ut corporis nesciunt iure omnis. Quam distinctio iste fugit amet. Est aliquam et nobis eveniet ut.\nDolorem fugiat sequi totam quia asperiores. Eveniet maiores et quo fuga. Est odio totam eos qui. Repellat natus aperiam aut culpa quia nobis. Mollitia accusamus et autem deleniti."], ["name", "Product #11 - 8969"], ["shipping_category_id", 1], ["slug", "product-11-8969"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.785088"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:19:30.787935"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.790226' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.791393' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.792665' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.793240' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:19:30.811230"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:19:30.811230"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.812288' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.812873' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.813975' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.814475' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.818491' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.819006' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.819515' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.821081"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.821768' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.822232' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.822677' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.823242' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.823692' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:19:30.828418"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.828418"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-8969' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.833076' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:30.837704' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-4819' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-4819' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:19:30.841943"], ["created_at", "2014-11-12 20:19:30.845626"], ["description", "Qui ea distinctio neque mollitia. Sed aliquam voluptatem fuga porro unde deserunt dolorum. Est aut facere omnis occaecati."], ["name", "Product #12 - 4819"], ["shipping_category_id", 1], ["slug", "product-12-4819"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.845626"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:19:30.847768"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.849687' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.850753' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.852213' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.852782' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:19:30.856057"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:19:30.856057"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.856990' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.857539' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.858607' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.859132' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.863001' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.863517' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.864030' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.865862"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.866609' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.867131' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.867665' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.868278' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:19:30.868802' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:19:30.873537"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:19:30.873537"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-4819' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.877625' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:30.882138' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:19:30.890721' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:19:30.892487"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:19:30.892487"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:19:30.895387' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.895988' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.899793"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:19:30.899793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:19:30.901811"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:19:30.901811"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jeanne_roberts@bosco.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582357037212xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:19:30.904770"], ["email", "jeanne_roberts@bosco.ca"], ["encrypted_password", "40d0c371c980d7b95c1c8845445c10e7df2b8617135fa3c8dfa411318cbb4e0b41a7eb7f4964d9ba798c6bca0fd8a1423a9aef8464f42c14dc6fa6d37ca0322b"], ["login", "jeanne_roberts@bosco.ca"], ["password_salt", "3T1ybywWYwMVEScHswbT"], ["updated_at", "2014-11-12 20:19:30.904770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.907339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:19:30.908738"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:19:30.908738"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R088627594' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R088627594%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R088627594' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'dM10ErV3QleHs7DfU1RuWQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:19:30.913962"], ["currency", "USD"], ["email", "jeanne_roberts@bosco.ca"], ["guest_token", "dM10ErV3QleHs7DfU1RuWQ"], ["number", "R088627594"], ["state", "cart"], ["updated_at", "2014-11-12 20:19:30.913962"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '9GGGW7CU' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:19:30.916319"], ["identifier", "9GGGW7CU"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:19:30.916319"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.918441' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-553345' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-553345"], ["updated_at", "2014-11-12 20:19:30.919640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'oral@kutch.info' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158239252781xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:25:25.686062"], ["email", "oral@kutch.info"], ["encrypted_password", "08d48675bc015b98c3e55fdac7b713c5b3e83b1c287b20c26204b14aab02c366b66a00aa64e1b5820a644e18c7e9dd9f01b64c7a2bb2b64aa5c24ec771ba430a"], ["login", "oral@kutch.info"], ["password_salt", "moNcoot-VVZBeomytssx"], ["updated_at", "2014-11-12 20:25:25.686062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:25:25.723164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:25.729470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:25:25.739971"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:25:25.739971"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R851104246' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R851104246%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R851104246' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'iRXKMfosXkQUzgaAu944XQ' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:25:25.778921"], ["currency", "USD"], ["email", "oral@kutch.info"], ["guest_token", "iRXKMfosXkQUzgaAu944XQ"], ["number", "R851104246"], ["state", "cart"], ["updated_at", "2014-11-12 20:25:25.778921"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:25:25.833351"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:25:25.833351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 714257' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:25:25.843005"], ["description", "Ut dolores vitae nulla rerum nam ut."], ["name", "TaxCategory - 714257"], ["updated_at", "2014-11-12 20:25:25.843005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:25:25.865190"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:25:25.865190"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-8596' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-8596' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:25:25.829338"], ["created_at", "2014-11-12 20:25:25.870221"], ["description", "Voluptatem et fugiat est ipsam quaerat fuga molestias numquam. Nisi itaque amet optio et quibusdam quia. Impedit dolores perferendis ut quam sed. Voluptate occaecati et et officia explicabo est qui ut.\nAccusantium enim magni repudiandae non corrupti molestiae et. Facere fuga suscipit quia non quibusdam voluptas dignissimos at. Animi blanditiis ut dolorum aut. Et qui voluptas necessitatibus reprehenderit."], ["name", "Product #1 - 8596"], ["shipping_category_id", 1], ["slug", "product-1-8596"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:25.870221"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:25:25.872839"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:25.879899' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:25.881170' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:25.894482' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:25.895653' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:25:26.000623"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:25:26.000623"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.001934' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.002592' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.003851' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.004413' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.014770' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.015398' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.015972' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:25:26.017881"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.019199' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.019714' WHERE 1=0 SQL (0.7ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.020223' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.022050' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.023262' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:25:26.043715"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.043715"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-8596' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.052152' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:26.060694' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-9489' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-9489' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:25:26.066174"], ["created_at", "2014-11-12 20:25:26.069987"], ["description", "Totam impedit quo soluta dolores voluptatum. Et recusandae voluptatem consequatur quos ea dignissimos quia perspiciatis. Ipsa quam similique perferendis et molestiae praesentium dolorum ipsam. Sint doloremque repellendus nihil autem quod aliquid. Omnis debitis commodi autem porro eveniet ut.\nIpsam dolorem reprehenderit voluptate nulla omnis. Sint harum id iure quaerat. Velit accusamus perspiciatis et delectus odit quis aut beatae."], ["name", "Product #2 - 9489"], ["shipping_category_id", 1], ["slug", "product-2-9489"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.069987"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:25:26.072142"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.074066' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.075098' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.076290' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.076812' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:25:26.080038"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:25:26.080038"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.081014' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.081578' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.082634' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.083110' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.086965' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.087451' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.088542' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:25:26.092164"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.093502' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.094402' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.095127' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.095956' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.096624' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:25:26.102595"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.102595"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-9489' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.106812' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:26.111152' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:25:26.127921' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:25:26.148423"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:25:26.148423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:25:26.160452"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:25:26.160452"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'clemens@williamsonebert.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158239265112xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:25:26.164815"], ["email", "clemens@williamsonebert.info"], ["encrypted_password", "e9d8179599a4c245bca52068a0db29756be858e56b7629f12ae4986fc7837e42b56712c1ba67475188027b8cf8f679ff80f1953c54ea325f2a49fc7419a664b9"], ["login", "clemens@williamsonebert.info"], ["password_salt", "tMqk8mpYjnTuxtzRMq2_"], ["updated_at", "2014-11-12 20:25:26.164815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:26.167629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:25:26.169106"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:25:26.169106"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R693320423' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R693320423%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R693320423' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'WFhHiDMJWm3kjYtBG1Ycog' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:25:26.174430"], ["currency", "USD"], ["email", "clemens@williamsonebert.info"], ["guest_token", "WFhHiDMJWm3kjYtBG1Ycog"], ["number", "R693320423"], ["state", "cart"], ["updated_at", "2014-11-12 20:25:26.174430"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '4WJZNW32' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:25:26.185440"], ["identifier", "4WJZNW32"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:25:26.185440"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.188177' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-340323' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-340323"], ["updated_at", "2014-11-12 20:25:26.189444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (102.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'addison.rice@reynoldstremblay.info' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158239264973xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:25:26.308647"], ["email", "addison.rice@reynoldstremblay.info"], ["encrypted_password", "d4e5341e82b745c5a24a2e7fc9a52223448b7348262d5404f7718ea6e84d0487b11b98a6cf662aabf7dd8234e2d96d99231daf70899628fafbebbe85470a95b5"], ["login", "addison.rice@reynoldstremblay.info"], ["password_salt", "XjPfknexspCuH4T-cwvo"], ["updated_at", "2014-11-12 20:25:26.308647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:25:26.312806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:26.314207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:25:26.315611"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:25:26.315611"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R015076632' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R015076632%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R015076632' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'fuomwdniWnWIADNRMw7blA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:25:26.320813"], ["currency", "USD"], ["email", "addison.rice@reynoldstremblay.info"], ["guest_token", "fuomwdniWnWIADNRMw7blA"], ["number", "R015076632"], ["state", "cart"], ["updated_at", "2014-11-12 20:25:26.320813"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:25:26.327514"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:25:26.327514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.3ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 647525' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:25:26.333232"], ["description", "Adipisci quod aliquam quidem vel minima sed."], ["name", "TaxCategory - 647525"], ["updated_at", "2014-11-12 20:25:26.333232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:25:26.338568"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:25:26.338568"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-4274' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-4274' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:25:26.326330"], ["created_at", "2014-11-12 20:25:26.343120"], ["description", "Perferendis omnis nihil eum illum cupiditate earum. Quisquam mollitia quia expedita nostrum eveniet rerum sit. Voluptatibus non explicabo id dignissimos molestiae."], ["name", "Product #3 - 4274"], ["shipping_category_id", 1], ["slug", "product-3-4274"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.343120"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:25:26.345214"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.347255' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.348362' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.349618' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.350223' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:25:26.353958"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:25:26.353958"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.354983' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.355534' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.356585' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.357090' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.360919' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.361410' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.361929' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:25:26.363633"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.364335' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.364831' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.365324' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.365908' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.366374' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:25:26.371084"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.371084"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-4274' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.375319' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:26.379667' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2593' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2593' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:25:26.384648"], ["created_at", "2014-11-12 20:25:26.388471"], ["description", "Repellat deserunt libero eius quia voluptatibus saepe qui. Error et temporibus eos dignissimos consectetur voluptates. Quo impedit aperiam aut voluptatem molestiae provident voluptatem. Est aut sit commodi distinctio quaerat.\nAutem voluptate doloribus facilis assumenda vel ut ut. Aut veritatis repellat enim ipsum est. Excepturi aperiam explicabo rem quia voluptatum. Velit maxime quo nostrum voluptatibus totam."], ["name", "Product #4 - 2593"], ["shipping_category_id", 1], ["slug", "product-4-2593"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.388471"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:25:26.390654"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.392612' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.393653' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.394839' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.395360' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:25:26.398509"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:25:26.398509"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.399393' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.399908' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.400900' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.401349' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.405440' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.405934' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.406419' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:25:26.408076"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.408796' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.409301' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.409798' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.410375' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.410849' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:25:26.415396"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.415396"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2593' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.419387' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:26.423597' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:25:26.434650' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:25:26.440603"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:25:26.440603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:25:26.442984"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:25:26.442984"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'adolphus_effertz@dooley.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158239268344xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:25:26.445910"], ["email", "adolphus_effertz@dooley.com"], ["encrypted_password", "d2a956c7cc6df5ac73ced69d95e0751cf9ef91ac6862c8376300c2eacb328f33020e8aa68ce1e5dc18f13bad7cf148f5d311ed382e6d227a980adb3eab8d3557"], ["login", "adolphus_effertz@dooley.com"], ["password_salt", "nnSAQoYAamF1rYxEKA2d"], ["updated_at", "2014-11-12 20:25:26.445910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:26.448388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:25:26.449758"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:25:26.449758"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R052206304' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R052206304%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R052206304' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'z-WY1ezeMRK0_0zjMlcJDw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:25:26.454871"], ["currency", "USD"], ["email", "adolphus_effertz@dooley.com"], ["guest_token", "z-WY1ezeMRK0_0zjMlcJDw"], ["number", "R052206304"], ["state", "cart"], ["updated_at", "2014-11-12 20:25:26.454871"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'V9UAHM9A' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:25:26.457239"], ["identifier", "V9UAHM9A"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:25:26.457239"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.459357' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-104150' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-104150"], ["updated_at", "2014-11-12 20:25:26.460549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (101.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'coby@considine.us' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158239267765xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:25:26.573773"], ["email", "coby@considine.us"], ["encrypted_password", "b7eff0dd5a517356840c3082d96f45bf072e5299cf5f381babc422bb1e0060fe05ef9ea0eaaaa58cb7bb0381de9c085992a00132ba3dfa2c5ce89f9a8f0d81e7"], ["login", "coby@considine.us"], ["password_salt", "HssBz9AmQydBBeniP8_c"], ["updated_at", "2014-11-12 20:25:26.573773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:25:26.579044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:26.580924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:25:26.582967"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:25:26.582967"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R081865242' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R081865242%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R081865242' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '2aPIZWAfYx0CemH2_FVaYA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:25:26.588655"], ["currency", "USD"], ["email", "coby@considine.us"], ["guest_token", "2aPIZWAfYx0CemH2_FVaYA"], ["number", "R081865242"], ["state", "cart"], ["updated_at", "2014-11-12 20:25:26.588655"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:25:26.597325"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:25:26.597325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 415824' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:25:26.599949"], ["description", "Qui voluptatem quia reiciendis et libero."], ["name", "TaxCategory - 415824"], ["updated_at", "2014-11-12 20:25:26.599949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:25:26.603129"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:25:26.603129"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8847' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8847' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:25:26.596245"], ["created_at", "2014-11-12 20:25:26.606978"], ["description", "Consequatur dolore doloremque non minus qui itaque. Unde beatae esse est aut et vero quam. In veritatis error eos magnam impedit qui dolores laborum.\nDolor excepturi eos odio minus qui aut id in. Distinctio consequatur dicta fuga molestiae. A corrupti cum impedit ut. Qui enim possimus aspernatur sunt mollitia.\nQuo enim praesentium ut consequatur et sed provident ea. Repudiandae iure sapiente libero impedit quidem ipsam quisquam voluptatibus. Id eius repellat a non aliquam saepe voluptas. A beatae quisquam autem tempora ut quo aut facilis. Totam incidunt est id aliquid facere ea ut quia.\nHarum quidem illum laudantium ut aut eaque omnis cumque. Nihil nihil in nesciunt omnis autem magni. Sunt quasi dolores quia ad magnam illum excepturi alias. Dolorem adipisci nostrum ratione hic. Delectus voluptate molestias id excepturi nihil ipsa."], ["name", "Product #5 - 8847"], ["shipping_category_id", 1], ["slug", "product-5-8847"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.606978"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:25:26.609336"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.611236' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.612307' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.613503' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.614034' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:25:26.617212"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:25:26.617212"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.618123' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.618780' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.620088' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.620592' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.624668' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.626250' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.627585' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:25:26.630566"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.631772' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.632485' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.633219' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.634057' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.634743' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:25:26.640335"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.640335"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8847' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.644355' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:26.648613' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-2200' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-2200' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:25:26.655134"], ["created_at", "2014-11-12 20:25:26.658568"], ["description", "Corporis aut praesentium nihil rerum saepe quasi. Nihil harum ipsam consequatur expedita autem aliquid consequatur. Nobis enim excepturi quod consectetur minus ea et tenetur.\nEarum eius ipsa voluptatum voluptas consequuntur ab aliquam quidem. Facilis debitis eum voluptatibus cupiditate illo maxime assumenda nemo. Ullam perspiciatis ut quibusdam est eum ratione facere eius. Rem et debitis sint ut qui incidunt autem.\nEst sapiente corrupti sed ratione modi asperiores consequatur. Qui error omnis est iusto. Nostrum nobis ullam tempore eum commodi rerum impedit quae. Eos quasi dolor nihil minus expedita rerum laboriosam omnis. Et quis iste voluptas dolores illum expedita.\nQui provident et odio molestias eos. Animi excepturi eius commodi qui reiciendis aut. Ratione facilis qui officiis est incidunt qui quia nobis. At sint voluptatem enim quia labore.\nQui nostrum ea tempore repellendus velit error maiores sint. Ut officiis omnis eos praesentium blanditiis quisquam ut. Pariatur facilis et esse assumenda. Fugit quam ex tempore molestiae consequatur ut."], ["name", "Product #6 - 2200"], ["shipping_category_id", 1], ["slug", "product-6-2200"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.658568"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:25:26.660574"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.662435' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.678226' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.679597' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.680173' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:25:26.683572"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:25:26.683572"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.684529' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.685059' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.686191' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.686678' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.690660' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.692002' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.693454' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:25:26.696598"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.697811' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.698548' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.699329' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.700230' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.700987' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:25:26.706562"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.706562"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-2200' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.710712' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:26.715150' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:25:26.723512' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:25:26.727154"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:25:26.727154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:25:26.729172"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:25:26.729172"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'flavio@raynor.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158239263296xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:25:26.732055"], ["email", "flavio@raynor.us"], ["encrypted_password", "c34c85e5eb74fdb4db90e6c246ea8f782d0d488baa28c8d7360023586603d8049d557718f5a1739629ec0f3e8c3db90682408be0160d209580741d92efc45d52"], ["login", "flavio@raynor.us"], ["password_salt", "wL_WHHDzaNdaG1meix4d"], ["updated_at", "2014-11-12 20:25:26.732055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:26.734614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:25:26.736009"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:25:26.736009"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R834987009' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R834987009%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R834987009' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '91wKeH30cYg9nB61pmX_QA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:25:26.741310"], ["currency", "USD"], ["email", "flavio@raynor.us"], ["guest_token", "91wKeH30cYg9nB61pmX_QA"], ["number", "R834987009"], ["state", "cart"], ["updated_at", "2014-11-12 20:25:26.741310"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'VTE2827T' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:25:26.743692"], ["identifier", "VTE2827T"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:25:26.743692"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.745843' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-350542' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-350542"], ["updated_at", "2014-11-12 20:25:26.746988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'deshawn_hirthe@corkery.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158239261667xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:25:26.760031"], ["email", "deshawn_hirthe@corkery.name"], ["encrypted_password", "d934cc61f224ba1ab0220038cdf7be078874c292de7826ede2286dd3b0b580f552e1b1b74464aab6aacce536262d265d4f1825f0f641a6c35fdd49a8da76739e"], ["login", "deshawn_hirthe@corkery.name"], ["password_salt", "z7UE_BAT6AA1y5zYnusd"], ["updated_at", "2014-11-12 20:25:26.760031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:25:26.763090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:26.764364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:25:26.765895"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:25:26.765895"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R399609231' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R399609231%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R399609231' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'G5T221btqtO42113euqF1Q' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:25:26.771443"], ["currency", "USD"], ["email", "deshawn_hirthe@corkery.name"], ["guest_token", "G5T221btqtO42113euqF1Q"], ["number", "R399609231"], ["state", "cart"], ["updated_at", "2014-11-12 20:25:26.771443"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:25:26.786255"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:25:26.786255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 912966' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:25:26.789489"], ["description", "Illum iste deleniti impedit reiciendis."], ["name", "TaxCategory - 912966"], ["updated_at", "2014-11-12 20:25:26.789489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:25:26.793024"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:25:26.793024"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-8624' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-8624' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:25:26.784640"], ["created_at", "2014-11-12 20:25:26.796855"], ["description", "In molestiae animi ut aut sit quia. Aut ratione similique sint in. Odio autem qui quaerat nesciunt. Saepe incidunt occaecati eaque nostrum. Suscipit nesciunt voluptates qui eum fugiat est quod vel.\nVelit ut laborum esse voluptatem temporibus est repellendus. Fugiat aperiam nam ut harum autem quae ullam non. Sed suscipit omnis voluptas dolore quis. Dolore qui voluptas non nostrum quia.\nMagni ut omnis sint placeat repellendus in hic cum. Sit beatae asperiores est vitae. Eum vel dignissimos quibusdam voluptatem. Blanditiis sed minus ut sint. Rem debitis harum ab excepturi maxime aut velit et.\nAut earum non quis asperiores dolorum mollitia officia cumque. Autem totam nesciunt id eum dicta. Corporis placeat earum voluptatem sed. Molestias id ipsa ratione sit totam dolores aut.\nVeniam illo et rerum eius. Assumenda dignissimos aut iusto enim sed reiciendis. Laborum aut earum voluptas quas."], ["name", "Product #7 - 8624"], ["shipping_category_id", 1], ["slug", "product-7-8624"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.796855"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:25:26.799124"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.801130' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.802310' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.803799' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.804430' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:25:26.807939"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:25:26.807939"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.808868' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.809428' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.810452' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.810913' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.814779' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.815298' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.815811' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:25:26.817589"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.818333' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.818855' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.819366' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.819957' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.820402' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:25:26.825113"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.825113"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-8624' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.829293' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:26.833761' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-8288' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-8288' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:25:26.839873"], ["created_at", "2014-11-12 20:25:26.843477"], ["description", "Ut non dolorum provident animi nobis cupiditate. Dicta sed adipisci voluptas animi vel. Nihil temporibus quis laudantium omnis fuga asperiores. Id magnam et laboriosam nulla qui est modi.\nA ipsum ut autem suscipit iste. Autem mollitia nobis unde est ipsum et perspiciatis omnis. Non numquam eos odit dolorem.\nTempore recusandae est sint consectetur vitae. Hic est accusantium non est facere consequatur dolor voluptatibus. Quis voluptas quos odit et magnam facere voluptatibus asperiores.\nEt cupiditate voluptatem unde tenetur minus est. Quia nostrum id est pariatur nam. Quos facilis autem doloribus expedita maiores amet. Sit earum quia cumque ad dolore. Omnis dolorem voluptatibus quaerat ut et aut in."], ["name", "Product #8 - 8288"], ["shipping_category_id", 1], ["slug", "product-8-8288"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.843477"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:25:26.845546"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.847455' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.848486' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.849692' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.850245' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:25:26.853493"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:25:26.853493"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.854389' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.854925' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.855953' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.856426' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.860355' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.860866' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.861355' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:25:26.863103"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.863794' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.864323' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.864833' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.865426' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.865920' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:25:26.870463"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.870463"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-8288' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.874504' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:26.878862' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:25:26.887544' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:25:26.891231"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:25:26.891231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:25:26.893223"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:25:26.893223"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'vinnie.rath@lind.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158239265258xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:25:26.896152"], ["email", "vinnie.rath@lind.info"], ["encrypted_password", "99babb70e6d44379179f2f561d0401207e199b6d816cb5e784b48af0bd70be915e7e9afb905385e0b293cd9f0cc03dab77bcdd6e1dd4b9e7c6fcd0106420b328"], ["login", "vinnie.rath@lind.info"], ["password_salt", "q_p6LErRP5ErZ5qac9RX"], ["updated_at", "2014-11-12 20:25:26.896152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:26.898710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:25:26.900089"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:25:26.900089"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R306597347' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R306597347%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R306597347' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'YLB6zLnhwS81792C0K8HjA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:25:26.905295"], ["currency", "USD"], ["email", "vinnie.rath@lind.info"], ["guest_token", "YLB6zLnhwS81792C0K8HjA"], ["number", "R306597347"], ["state", "cart"], ["updated_at", "2014-11-12 20:25:26.905295"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'M6KHC2SU' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:25:26.907688"], ["identifier", "M6KHC2SU"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:25:26.907688"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.909842' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-545445' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-545445"], ["updated_at", "2014-11-12 20:25:26.911041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (5.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lisette@auerkautzer.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158239267149xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:25:26.929973"], ["email", "lisette@auerkautzer.us"], ["encrypted_password", "28047f3199516dd457a6b0526af7d069281e22e05952ec897b8f01262bfaf679108f8eb17c2659140f50b7dba0809d4a6b24a979ebe98164868fa4f013e41a13"], ["login", "lisette@auerkautzer.us"], ["password_salt", "x6y3dM2oW6ra7Mj3B1vA"], ["updated_at", "2014-11-12 20:25:26.929973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:25:26.933649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:26.934834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:25:26.936191"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:25:26.936191"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R635973067' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R635973067%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R635973067' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'gysNOhHDaYHz5PTmp5PNHw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:25:26.941598"], ["currency", "USD"], ["email", "lisette@auerkautzer.us"], ["guest_token", "gysNOhHDaYHz5PTmp5PNHw"], ["number", "R635973067"], ["state", "cart"], ["updated_at", "2014-11-12 20:25:26.941598"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:25:26.949983"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:25:26.949983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 890031' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:25:26.952666"], ["description", "Expedita voluptatem aut commodi provident."], ["name", "TaxCategory - 890031"], ["updated_at", "2014-11-12 20:25:26.952666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:25:26.956022"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:25:26.956022"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-5763' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-5763' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:25:26.948878"], ["created_at", "2014-11-12 20:25:26.959595"], ["description", "Qui pariatur blanditiis et nihil ut modi. Consequatur distinctio architecto vero et. Nisi placeat velit expedita minus. Qui eum rem saepe ut omnis.\nAtque eum sit dolorem natus cumque harum. Esse et ea iure at saepe distinctio dolore nostrum. Veritatis neque ipsa corrupti consectetur. Molestiae quidem cupiditate commodi delectus asperiores accusamus sed est.\nEt exercitationem laborum sequi aut. Ut quia dolor similique saepe. Consequatur voluptatem est facere quia doloremque unde."], ["name", "Product #9 - 5763"], ["shipping_category_id", 1], ["slug", "product-9-5763"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.959595"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:25:26.962190"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.964270' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.965404' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.966733' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.967350' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:25:26.970854"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:25:26.970854"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.972059' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.972710' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.973901' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.974411' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.978462' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.979028' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.979647' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:25:26.981401"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.982154' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.982675' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.983222' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.983859' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:26.984340' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:25:26.989061"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:26.989061"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-5763' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.993338' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:26.997993' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-612' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-612' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:25:27.003527"], ["created_at", "2014-11-12 20:25:27.007590"], ["description", "Velit laboriosam dolorem inventore similique ut optio quo ea. Et eum voluptatibus delectus vel aut. Delectus harum temporibus ut dolores. Eum quia debitis sed eius.\nFacilis animi vel quo autem impedit sed dolorem. Sit delectus fugiat numquam in saepe occaecati impedit unde. Fugiat aut nobis quo amet et. Minima id dolore aut molestiae quis doloribus.\nUllam eum atque quia ut quis qui. Recusandae fugit quo et perferendis voluptas. Sint ut fuga dolores amet qui reprehenderit."], ["name", "Product #10 - 612"], ["shipping_category_id", 1], ["slug", "product-10-612"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:27.007590"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:25:27.009815"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:27.011798' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.012912' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.014106' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.014667' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:25:27.017984"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:25:27.017984"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:27.018908' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.019444' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.020544' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.021052' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.024916' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.025487' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.026039' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:25:27.028001"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.028789' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.029321' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.029878' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.030483' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.030984' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:25:27.035873"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:27.035873"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-612' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.040106' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:27.044697' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:25:27.053254' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:25:27.064410"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:25:27.064410"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:27.067909' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.068445' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:25:27.072271"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:25:27.072271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:25:27.074308"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:25:27.074308"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'laney@west.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582392788610xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:25:27.077667"], ["email", "laney@west.biz"], ["encrypted_password", "435cd3098c0a0b57989d8eee0b52c8165509d26481cebcd807fb8e445b75b1e756f28a416055ab30d94b9a9bc61a6960162317eea0fea9d524413254e39eebbc"], ["login", "laney@west.biz"], ["password_salt", "RRfmRpDZ7CGLdJPhuQtf"], ["updated_at", "2014-11-12 20:25:27.077667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:27.080230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:25:27.081626"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:25:27.081626"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R685024268' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R685024268%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R685024268' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'U4ZmNoelGFAemHlee_YNQw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:25:27.087014"], ["currency", "USD"], ["email", "laney@west.biz"], ["guest_token", "U4ZmNoelGFAemHlee_YNQw"], ["number", "R685024268"], ["state", "cart"], ["updated_at", "2014-11-12 20:25:27.087014"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '79MJYXYE' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:25:27.089703"], ["identifier", "79MJYXYE"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:25:27.089703"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.091943' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-153444' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-153444"], ["updated_at", "2014-11-12 20:25:27.093166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'novella_jewess@hartmann.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582392766011xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:25:27.111019"], ["email", "novella_jewess@hartmann.ca"], ["encrypted_password", "6d1fffe748b3c1476cf010ead210886b9097c70d79a39664dc9b8ee8e7579e10cd60c98f6e59a03bdae2dd44e612a921f4a4152b1a7c34fbd92afa318d9a34f5"], ["login", "novella_jewess@hartmann.ca"], ["password_salt", "irDUVGztBjHzSQXqHjh5"], ["updated_at", "2014-11-12 20:25:27.111019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:25:27.115001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:27.116226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:25:27.117692"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:25:27.117692"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R720234035' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R720234035%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R720234035' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9USYirGTdfEtwtQqEUmP_Q' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:25:27.123503"], ["currency", "USD"], ["email", "novella_jewess@hartmann.ca"], ["guest_token", "9USYirGTdfEtwtQqEUmP_Q"], ["number", "R720234035"], ["state", "cart"], ["updated_at", "2014-11-12 20:25:27.123503"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:25:27.132172"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:25:27.132172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 593999' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:25:27.135082"], ["description", "Odio facere ut libero voluptatibus."], ["name", "TaxCategory - 593999"], ["updated_at", "2014-11-12 20:25:27.135082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:25:27.138478"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:25:27.138478"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-5093' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-5093' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:25:27.131040"], ["created_at", "2014-11-12 20:25:27.142453"], ["description", "Incidunt accusamus rerum tenetur nam non omnis nihil. Voluptatem repudiandae tenetur at necessitatibus minus. Nihil ut dignissimos quia ratione nulla et. Rem eos eius in vero soluta minus consequatur.\nImpedit ipsa et soluta aperiam. In praesentium odio ducimus laboriosam sed et. Consectetur blanditiis aut voluptatem quas incidunt sint provident magnam.\nReiciendis id ut esse corporis et. Ipsa sit sed voluptatem sunt reiciendis. Corporis qui est a quia iure sunt.\nSapiente quos earum ratione harum ea. Aliquam eum commodi possimus provident rerum nostrum aut quisquam. Omnis nihil officiis vel ipsa dolor maiores recusandae."], ["name", "Product #11 - 5093"], ["shipping_category_id", 1], ["slug", "product-11-5093"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:27.142453"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:25:27.145224"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:27.147566' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.148673' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.149906' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.150460' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:25:27.168739"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:25:27.168739"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:27.169710' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.170281' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.171376' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.171888' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.175938' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.176476' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.177050' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:25:27.178830"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.179573' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.180109' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.180643' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.181249' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.181709' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:25:27.186321"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:27.186321"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-5093' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.190434' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:27.194942' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-2606' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-2606' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:25:27.200735"], ["created_at", "2014-11-12 20:25:27.204292"], ["description", "Beatae ullam qui minima sint quam voluptas nihil. Aliquid quas aut modi laudantium officiis est. Minima deserunt voluptatem et est omnis.\nCumque qui vel sit perspiciatis velit ipsum eos numquam. Quis rerum expedita sint aut eligendi. Neque quia omnis quod distinctio.\nSit qui excepturi tempore fuga doloribus velit molestiae iure. Nisi voluptatem ducimus magni omnis voluptas quam amet id. Suscipit ducimus nostrum quia voluptates. Rerum nobis quis assumenda ut sit. Qui quibusdam iste non eaque.\nQuisquam cumque voluptatem voluptates rem at voluptatem. Pariatur quam non qui minus numquam nihil omnis expedita. Quos natus molestias nostrum et temporibus omnis quia et."], ["name", "Product #12 - 2606"], ["shipping_category_id", 1], ["slug", "product-12-2606"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:27.204292"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:25:27.206413"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:27.208344' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.209401' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.210620' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.211156' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:25:27.214371"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:25:27.214371"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:27.215271' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.215771' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.216809' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.217304' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.221061' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.221580' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.222093' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:25:27.223788"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.224520' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.225049' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.225569' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.226207' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:25:27.226718' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:25:27.231335"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:25:27.231335"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-2606' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.235417' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:27.239924' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:25:27.248603' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:25:27.250358"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:25:27.250358"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:25:27.253138' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.253618' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:25:27.257238"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:25:27.257238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:25:27.259218"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:25:27.259218"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brittany@greenholt.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582392753612xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:25:27.262078"], ["email", "brittany@greenholt.name"], ["encrypted_password", "0351053e05b76104f7eeaddc86bcd722b77316496b7501d803a472eeedb31b45eb6892b32ec389502c92f15815fa521377bdb21bb7e596bd6bf81fedf806b8f3"], ["login", "brittany@greenholt.name"], ["password_salt", "iSNrDAtuy-HkW8Et59Bq"], ["updated_at", "2014-11-12 20:25:27.262078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:27.264579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:25:27.265901"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:25:27.265901"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R875410038' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R875410038%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R875410038' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'kPJ18xFKcrm_q_3-Vu71xA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:25:27.270921"], ["currency", "USD"], ["email", "brittany@greenholt.name"], ["guest_token", "kPJ18xFKcrm_q_3-Vu71xA"], ["number", "R875410038"], ["state", "cart"], ["updated_at", "2014-11-12 20:25:27.270921"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'ZTM8SZXG' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:25:27.273233"], ["identifier", "ZTM8SZXG"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:25:27.273233"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.275337' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-324040' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-324040"], ["updated_at", "2014-11-12 20:25:27.276497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'garfield@gislasonlittle.co.uk' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158246424061xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:22.031255"], ["email", "garfield@gislasonlittle.co.uk"], ["encrypted_password", "6df754771dd51fa430894503cd1b3b3938b3b368b5087c6dccf9317451acaa6b8b1afa7f19ff5519a9a9afbf3136da6f861cbda7ad421f7a3341af4c82954763"], ["login", "garfield@gislasonlittle.co.uk"], ["password_salt", "iqx56fEGbDRsCUsF33c7"], ["updated_at", "2014-11-12 20:37:22.031255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.070728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.077203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:22.086900"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:22.086900"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R393826749' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R393826749%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R393826749' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CjQvCDm_sMDUPS7uxi0Fmw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:22.122588"], ["currency", "USD"], ["email", "garfield@gislasonlittle.co.uk"], ["guest_token", "CjQvCDm_sMDUPS7uxi0Fmw"], ["number", "R393826749"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:22.122588"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (42.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kory.shanahan@orn.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1415824642792xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:22.173417"], ["email", "kory.shanahan@orn.name"], ["encrypted_password", "4548b9cd2f19171566b99c2257adbf305cbe5031b1f85f759c4abd0a25d43da99beccfa3c4c220d83e5785d54aeb98a7760d526ed5382859de5f9d0498255db6"], ["login", "kory.shanahan@orn.name"], ["password_salt", "8yocTJXd7b85qawhzn9T"], ["updated_at", "2014-11-12 20:37:22.173417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.179231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.180981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:22.182631"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:22.182631"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R323616419' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R323616419%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R323616419' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '5M_6w6EeqNuJ5lUBCimPTA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:22.188162"], ["currency", "USD"], ["email", "kory.shanahan@orn.name"], ["guest_token", "5M_6w6EeqNuJ5lUBCimPTA"], ["number", "R323616419"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:22.188162"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (60.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'erika.ankunding@renner.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158246426143xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:22.255736"], ["email", "erika.ankunding@renner.ca"], ["encrypted_password", "8f18b6368e0a84222c650601c35d7be4aaeaa05ebab843fdc03b73610b4ac5d46eb74662b5285d139a7afec6e19ca92144aad3bdf7cf074f212e8d3363abd914"], ["login", "erika.ankunding@renner.ca"], ["password_salt", "N3guMcEJPJFP4JsSCR2r"], ["updated_at", "2014-11-12 20:37:22.255736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.260817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.262662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:22.264249"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:22.264249"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R458847185' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R458847185%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R458847185' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QiFtzIy3lt2_uWnqMvhroA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:22.269849"], ["currency", "USD"], ["email", "erika.ankunding@renner.ca"], ["guest_token", "QiFtzIy3lt2_uWnqMvhroA"], ["number", "R458847185"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:22.269849"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (109.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'orval@wilkinson.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158246426424xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:22.387663"], ["email", "orval@wilkinson.name"], ["encrypted_password", "450f6c4f7770b1aca1f75af5fa13ff25ce3387034bbd830e73e2cb5732b0f7214e2c36efdcbb28e09ab6a6ccc8d4fb244bd5654f6f2915b1a6bffb0af21908f4"], ["login", "orval@wilkinson.name"], ["password_salt", "jKi5TDvAEYQ7uqGh5LVE"], ["updated_at", "2014-11-12 20:37:22.387663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.394447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.396904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:22.399254"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:22.399254"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R912644082' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R912644082%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R912644082' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'tugGOBGGEgRNNHcU1fMfhA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:22.406074"], ["currency", "USD"], ["email", "orval@wilkinson.name"], ["guest_token", "tugGOBGGEgRNNHcU1fMfhA"], ["number", "R912644082"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:22.406074"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (112.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tyson.swaniawski@lueilwitz.info' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158246421195xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:22.526391"], ["email", "tyson.swaniawski@lueilwitz.info"], ["encrypted_password", "78fce35c3f415dc8e946cd7d3414388431ad8e83faf9b396c01ee62053fdf74052ca824ed794e83f55a457092b407248ff77b0170c68b71937c69bb06b4aaa8b"], ["login", "tyson.swaniawski@lueilwitz.info"], ["password_salt", "uspSrDHimtMXWjQy_Zpe"], ["updated_at", "2014-11-12 20:37:22.526391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.532186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.534961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:22.537596"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:22.537596"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R194312451' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R194312451%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R194312451' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xJp0oIrqW2xwKjQ5KriRfg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:22.545008"], ["currency", "USD"], ["email", "tyson.swaniawski@lueilwitz.info"], ["guest_token", "xJp0oIrqW2xwKjQ5KriRfg"], ["number", "R194312451"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:22.545008"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (113.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'stella_christiansen@schuppe.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158246425026xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:22.667588"], ["email", "stella_christiansen@schuppe.biz"], ["encrypted_password", "efcb064fb36ce0f2bc060240a9fa86012f0723b2422e521b7afe100450d3257d7d150a1cc955686b292f3a28193e223e4288cc00ad8d7122ff506b05832ae273"], ["login", "stella_christiansen@schuppe.biz"], ["password_salt", "fgoMbxtZXBSJx7jq3SLo"], ["updated_at", "2014-11-12 20:37:22.667588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.674455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.676934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:22.679244"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:22.679244"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R978299559' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R978299559%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R978299559' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'jeNWYLZaiinYRajUHJYNLA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:22.686023"], ["currency", "USD"], ["email", "stella_christiansen@schuppe.biz"], ["guest_token", "jeNWYLZaiinYRajUHJYNLA"], ["number", "R978299559"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:22.686023"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (105.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brandon.gerlach@kreiger.info' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158246425377xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:22.799714"], ["email", "brandon.gerlach@kreiger.info"], ["encrypted_password", "ec54b0ff99242d9ac027933b28e4d5f5a6eadd33cb81283dfda989aba2c6acb27418714ad42cda30412f826fb20b147d7b82d7391f51c399db76005a88503a06"], ["login", "brandon.gerlach@kreiger.info"], ["password_salt", "2WMoR-JdKBPaCT9jxyer"], ["updated_at", "2014-11-12 20:37:22.799714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.805910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.808674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:22.811318"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:22.811318"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R811754556' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R811754556%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R811754556' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'wd808EjnTmnWWNEEKeLfzQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:22.818741"], ["currency", "USD"], ["email", "brandon.gerlach@kreiger.info"], ["guest_token", "wd808EjnTmnWWNEEKeLfzQ"], ["number", "R811754556"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:22.818741"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'moises@hickle.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158246425598xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:22.827053"], ["email", "moises@hickle.biz"], ["encrypted_password", "8342a900610d3816b4fd2fe39fbd3c9884b8e44821d5604dbc715ffdb49255e87f7121f2a60f15ecfd6bc2750dec564b494b8d142248c08e0b854958e664078c"], ["login", "moises@hickle.biz"], ["password_salt", "D3GX-HkZYjjhYAPSTWAk"], ["updated_at", "2014-11-12 20:37:22.827053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.830900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.832284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:22.833816"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:22.833816"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R125128512' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R125128512%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R125128512' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'fRdhkftxAU5GC0vhQMEQug' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:22.839371"], ["currency", "USD"], ["email", "moises@hickle.biz"], ["guest_token", "fRdhkftxAU5GC0vhQMEQug"], ["number", "R125128512"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:22.839371"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brendan@kiehn.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158246428619xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:22.847049"], ["email", "brendan@kiehn.biz"], ["encrypted_password", "4937255b4436e1812caa36f13891f6732c1cb5bd0ce4f3a418745cc3a2d5a68691a9fafb54069285d91404b78723eb98a98b38e0a70289fb367caa24caf31623"], ["login", "brendan@kiehn.biz"], ["password_salt", "GsskVJCzh1fTdGfvnArz"], ["updated_at", "2014-11-12 20:37:22.847049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.851262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.852797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:22.854390"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:22.854390"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R987464469' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R987464469%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R987464469' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bEbhgA7M5RLVSujy5pvVog' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:22.859891"], ["currency", "USD"], ["email", "brendan@kiehn.biz"], ["guest_token", "bEbhgA7M5RLVSujy5pvVog"], ["number", "R987464469"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:22.859891"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'geovany_mohr@purdy.info' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464286710xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:22.870686"], ["email", "geovany_mohr@purdy.info"], ["encrypted_password", "39157f788c2d78d94610e49c34b131cddc5fed00df7575147ea6aa27b38e357816bae47c188b72eb0e061c80578e8917708c43b7e09de4499a0e39baaeb5b415"], ["login", "geovany_mohr@purdy.info"], ["password_salt", "gzowT5u47XosviEvFyqe"], ["updated_at", "2014-11-12 20:37:22.870686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.877670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.880066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:22.882156"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:22.882156"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R595022874' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R595022874%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R595022874' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'SSErkpobN4vBbzU0LDnIvQ' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:22.888681"], ["currency", "USD"], ["email", "geovany_mohr@purdy.info"], ["guest_token", "SSErkpobN4vBbzU0LDnIvQ"], ["number", "R595022874"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:22.888681"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'louie@ferry.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464253611xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:22.897117"], ["email", "louie@ferry.com"], ["encrypted_password", "7012fb75f5dc04d380a9d3c76f4dc31990a4ea20be6668609b8e0cc889f50fad5a57b5fc6de4d4ad479565e47a48138fa5b9a912998c439b32969f655b7623f9"], ["login", "louie@ferry.com"], ["password_salt", "K7yLYcabscsM9CHmj3x6"], ["updated_at", "2014-11-12 20:37:22.897117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.901236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.902657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:22.904167"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:22.904167"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R173907586' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R173907586%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R173907586' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'JF8l8k79_7ZIUFxzrIkuLQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:22.967585"], ["currency", "USD"], ["email", "louie@ferry.com"], ["guest_token", "JF8l8k79_7ZIUFxzrIkuLQ"], ["number", "R173907586"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:22.967585"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ransom@weber.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464289912xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:22.976193"], ["email", "ransom@weber.us"], ["encrypted_password", "987d23cf1f28bce3b55ca4bf376566b6edc0f274c6d6e70aa0bdfd1c0b5fb0581771d13610a25b1f227ba89504ce35dba905a16f5c8ddf6e8627fb2447970625"], ["login", "ransom@weber.us"], ["password_salt", "fmDCdXfrDZC-ZyCr5sfg"], ["updated_at", "2014-11-12 20:37:22.976193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.979877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.981250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:22.982765"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:22.982765"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R031532535' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R031532535%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R031532535' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Cq8z-LFtJ9WOUVRQcc82Xw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:22.988526"], ["currency", "USD"], ["email", "ransom@weber.us"], ["guest_token", "Cq8z-LFtJ9WOUVRQcc82Xw"], ["number", "R031532535"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:22.988526"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carlotta@watsica.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464254513xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:22.996324"], ["email", "carlotta@watsica.name"], ["encrypted_password", "bae0802d0c74949ea6fe2ad3ecc08b6cb25da4ad9c6c55bf593312b991ab6390b539038773a8dce8ba491b8547f0d7a67618807e6a9000993ce908f710f953ee"], ["login", "carlotta@watsica.name"], ["password_salt", "tspKRDBp4uWzUPm-_DYi"], ["updated_at", "2014-11-12 20:37:22.996324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.999980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.001241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.002746"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.002746"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R619959315' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R619959315%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R619959315' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-YxSnnPOmhK_tEqZOdqthw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:23.008493"], ["currency", "USD"], ["email", "carlotta@watsica.name"], ["guest_token", "-YxSnnPOmhK_tEqZOdqthw"], ["number", "R619959315"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:23.008493"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'javier_hettinger@treutelkautzer.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464385314xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.016775"], ["email", "javier_hettinger@treutelkautzer.co.uk"], ["encrypted_password", "58525a08eb08e0158fcc7051b7ef8a5117d5d05c2dae38f1739adafefa2fd59bdb32461dde875c52b3813370fcdcf25062750109c45277215e0a3f04a700a250"], ["login", "javier_hettinger@treutelkautzer.co.uk"], ["password_salt", "HdGDayk-hR-q16--9eL1"], ["updated_at", "2014-11-12 20:37:23.016775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.021327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.024084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.027052"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.027052"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R518787215' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R518787215%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R518787215' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'KM_c315ymtTh9qCwrluygw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:23.035378"], ["currency", "USD"], ["email", "javier_hettinger@treutelkautzer.co.uk"], ["guest_token", "KM_c315ymtTh9qCwrluygw"], ["number", "R518787215"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:23.035378"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ofelia@goodwinlowe.ca' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464347515xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.046255"], ["email", "ofelia@goodwinlowe.ca"], ["encrypted_password", "6d32b671afd83934a1636e0c80690d376252df07470eba0441ad04755feec97c1abff2105e11727a096d4bc8a6e27387262f886c0d7fd65210a7c6e30b46231a"], ["login", "ofelia@goodwinlowe.ca"], ["password_salt", "Zur2VcU7zLynF77GWiVA"], ["updated_at", "2014-11-12 20:37:23.046255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.052126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.054055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.055754"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.055754"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R994149905' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R994149905%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R994149905' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'D3qutAIS2poO1aSlvD8A5Q' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:23.061246"], ["currency", "USD"], ["email", "ofelia@goodwinlowe.ca"], ["guest_token", "D3qutAIS2poO1aSlvD8A5Q"], ["number", "R994149905"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:23.061246"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'roy@treutelwalsh.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464368416xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.069106"], ["email", "roy@treutelwalsh.co.uk"], ["encrypted_password", "40d700fcf4441d75be10faa12fde56dedbbabd0d892e4ec0b71ca9d5a594cd7c8e84831ae98b135b9627e8cbb959c56f0e1a5b04fcfd5424fdb9b9c2a1351001"], ["login", "roy@treutelwalsh.co.uk"], ["password_salt", "y38nyVN2yZXv1iiEPB9e"], ["updated_at", "2014-11-12 20:37:23.069106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.072916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.074287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.075816"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.075816"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R393795032' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R393795032%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R393795032' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'W3zG-8-yZdRmnJ-rUYk27w' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:23.081371"], ["currency", "USD"], ["email", "roy@treutelwalsh.co.uk"], ["guest_token", "W3zG-8-yZdRmnJ-rUYk27w"], ["number", "R393795032"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:23.081371"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'zion@towne.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464363417xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.092210"], ["email", "zion@towne.ca"], ["encrypted_password", "7c0f04a4a2456b909c485ae9c92b95340f97c258c91f21003774c5089cc311c351526004344b0bbb53d056703ecb35330a39ae180a35fad157dfc768fc9f4b42"], ["login", "zion@towne.ca"], ["password_salt", "HYjeGHmzmGwsdykLu6Ke"], ["updated_at", "2014-11-12 20:37:23.092210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.098118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.099918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.101604"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.101604"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R522415673' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R522415673%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R522415673' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xiB2h2BrfCnfXnSuHeSSjQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:23.107490"], ["currency", "USD"], ["email", "zion@towne.ca"], ["guest_token", "xiB2h2BrfCnfXnSuHeSSjQ"], ["number", "R522415673"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:23.107490"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dennis.jacobi@monahancrooks.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464347118xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.114524"], ["email", "dennis.jacobi@monahancrooks.ca"], ["encrypted_password", "1ba77549cc2eb677a810250e33b2456056447fc9372244c6f4141fc3090be41382202b4ff953b440ef3b011b6d08093d9395cef39dbc2933cc452001cd9de0a1"], ["login", "dennis.jacobi@monahancrooks.ca"], ["password_salt", "2KDVZFNtWrHPeYx7W4kg"], ["updated_at", "2014-11-12 20:37:23.114524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.118607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.119998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.121475"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.121475"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R377491566' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R377491566%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R377491566' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '16P1qBo69ATAltOCihtFmA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:23.127461"], ["currency", "USD"], ["email", "dennis.jacobi@monahancrooks.ca"], ["guest_token", "16P1qBo69ATAltOCihtFmA"], ["number", "R377491566"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:23.127461"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carson_feil@kerlukejohnson.info' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158246436919xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.137183"], ["email", "carson_feil@kerlukejohnson.info"], ["encrypted_password", "8a561aef45a4d1107245725061de2d761c76a39b5b910d334b22d5d151e8465c15aea92d3cfe2c39b7002e659ed4400b1117308bb4e4d22357170d31979f7429"], ["login", "carson_feil@kerlukejohnson.info"], ["password_salt", "ijrTsuJgR6wTzHVQVw98"], ["updated_at", "2014-11-12 20:37:23.137183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.142704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.144185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.145704"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.145704"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R009320362' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R009320362%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R009320362' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'v8aRTVDuRWX17mldvkbJyw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:23.151168"], ["currency", "USD"], ["email", "carson_feil@kerlukejohnson.info"], ["guest_token", "v8aRTVDuRWX17mldvkbJyw"], ["number", "R009320362"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:23.151168"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (3.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'addie_mcclure@marvin.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464331120xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.160666"], ["email", "addie_mcclure@marvin.ca"], ["encrypted_password", "cc97fc6923c9518492a81d6f41b469c11e5419891a267947004709279eb9154248dbcc60235ad16630c2ffbb5025c1ef0839ad90e935ad9418c2efe534547e10"], ["login", "addie_mcclure@marvin.ca"], ["password_salt", "GNM6L25U7Fxy-L8SuTp2"], ["updated_at", "2014-11-12 20:37:23.160666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.164384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.165640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.167243"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.167243"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R461047289' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R461047289%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R461047289' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'a1yUqILWMXowFiRa-yyaug' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:23.173501"], ["currency", "USD"], ["email", "addie_mcclure@marvin.ca"], ["guest_token", "a1yUqILWMXowFiRa-yyaug"], ["number", "R461047289"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:23.173501"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (3.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'maximo.thiel@graham.co.uk' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464350521xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.182558"], ["email", "maximo.thiel@graham.co.uk"], ["encrypted_password", "bf67a14309fe462069ab1cfe96ac30984342aa8c89c371240d7e8397fe5caa9b5a6b3bb492b36cef4c9472fc345b0a96d8dda0b1b7c4fb0afe0c1b22f9268fa6"], ["login", "maximo.thiel@graham.co.uk"], ["password_salt", "RT6xR5eahDJYucRyHsi7"], ["updated_at", "2014-11-12 20:37:23.182558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.186211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.188897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.191931"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.191931"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R690146620' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R690146620%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R690146620' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'a0d-eS-sqOhFgV9EFJtuzg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:23.200174"], ["currency", "USD"], ["email", "maximo.thiel@graham.co.uk"], ["guest_token", "a0d-eS-sqOhFgV9EFJtuzg"], ["number", "R690146620"], ["state", "payment"], ["updated_at", "2014-11-12 20:37:23.200174"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'aaliyah.okuneva@ortiz.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158246435622xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.224200"], ["email", "aaliyah.okuneva@ortiz.com"], ["encrypted_password", "9d6e2eaca479f6adf2fa2d2a293fbf5e92bdd39293939b728d7ff1f04419ff9eb111ff9bbf32bccff3aa53bb49555868a7684fd9e09e5f2cc974314fef1cc535"], ["login", "aaliyah.okuneva@ortiz.com"], ["password_salt", "kdbVM9jKZZWCU_8k2xWG"], ["updated_at", "2014-11-12 20:37:23.224200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.227391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.228613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.230085"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.230085"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R698144016' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R698144016%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R698144016' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Dyg6VgSMJpYN1riKkrx-Ow' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:23.235738"], ["currency", "USD"], ["email", "aaliyah.okuneva@ortiz.com"], ["guest_token", "Dyg6VgSMJpYN1riKkrx-Ow"], ["number", "R698144016"], ["state", "cart"], ["updated_at", "2014-11-12 20:37:23.235738"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:37:23.291939"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:37:23.291939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 252791' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:37:23.301982"], ["description", "Commodi numquam vel aut consequatur quidem."], ["name", "TaxCategory - 252791"], ["updated_at", "2014-11-12 20:37:23.301982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.324985"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.324985"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-6942' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-6942' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:37:23.287834"], ["created_at", "2014-11-12 20:37:23.330414"], ["description", "Qui aut doloremque aliquam voluptas dolores. Eveniet similique iste et enim non nam natus. Velit suscipit fuga enim sunt esse inventore. Occaecati quia ut minus omnis.\nLaudantium adipisci dolorem et in. Voluptatem aperiam eos incidunt id error blanditiis. Adipisci perferendis unde quis quia. Cum maxime porro voluptatem tenetur eligendi odit. Quis magni veritatis dolore praesentium.\nAlias ratione ut id nisi nostrum earum occaecati est. Quisquam saepe placeat incidunt dolores. Consequuntur velit assumenda qui ipsum facere. Est qui modi veritatis nesciunt quaerat magni.\nTenetur blanditiis voluptas consectetur necessitatibus quod. Et saepe deserunt iure eos exercitationem inventore et nulla. Ea omnis atque impedit quibusdam et neque ea unde. Voluptatem amet eius qui ratione dolorum qui. Perspiciatis officiis aut ex eos."], ["name", "Product #1 - 6942"], ["shipping_category_id", 1], ["slug", "product-1-6942"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.330414"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:37:23.333290"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.340729' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.342070' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.356149' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.357517' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:37:23.380285"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:37:23.380285"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.381563' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.382180' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.383431' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.383972' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.394678' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.395352' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.395908' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:37:23.397622"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.398896' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.399384' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.399881' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.400493' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.400950' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:37:23.418032"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.418032"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-6942' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.426794' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:23.436125' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-4427' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-4427' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:37:23.442611"], ["created_at", "2014-11-12 20:37:23.446617"], ["description", "Suscipit esse voluptas ut consequatur illo et. Quae rerum delectus nulla et. Velit saepe et nam aut reprehenderit doloremque voluptates impedit. Porro fugit in voluptatibus aut sunt explicabo. Quas soluta nihil dolor et in ullam repellendus.\nEst id exercitationem non porro et aperiam quo et. Ex pariatur velit sed quia. Distinctio temporibus laudantium molestias quis pariatur. Aspernatur totam unde molestiae illum iste reiciendis. Qui et aut molestias aliquid molestiae temporibus quo.\nModi totam laboriosam error eos odio architecto quidem. Eveniet eaque sint ut saepe tempora deserunt beatae. Et similique a cupiditate qui. Nesciunt distinctio ex soluta ut debitis deleniti impedit. Aut eos molestiae labore deserunt."], ["name", "Product #2 - 4427"], ["shipping_category_id", 1], ["slug", "product-2-4427"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.446617"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:37:23.448870"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.450968' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.452139' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.453546' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.454182' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:37:23.457612"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:37:23.457612"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.458575' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.459131' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.460276' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.460774' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.464810' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.465304' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.465806' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:37:23.467438"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.468180' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.468656' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.469141' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.469704' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.470162' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:37:23.491350"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.491350"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-4427' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.495456' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:23.500016' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:37:23.516914' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:37:23.537511"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:37:23.537511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:37:23.550304"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:37:23.550304"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tierra@stroman.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464346123xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.554801"], ["email", "tierra@stroman.us"], ["encrypted_password", "4a1384774aae5f3515569d7d811440bb832c8a75a15e3773114c9263ce51eaa378c60572fff46b94d7f9e8f65e386aea8499ab659624925de3b4d6c4f31cd274"], ["login", "tierra@stroman.us"], ["password_salt", "A87nKBpMmAqsuV51cxx2"], ["updated_at", "2014-11-12 20:37:23.554801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.557440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.558796"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:37:23.558796"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R036854987' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R036854987%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R036854987' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'IOk_89GJWbQmKhmAOY1HiQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:37:23.564191"], ["currency", "USD"], ["email", "tierra@stroman.us"], ["guest_token", "IOk_89GJWbQmKhmAOY1HiQ"], ["number", "R036854987"], ["state", "cart"], ["updated_at", "2014-11-12 20:37:23.564191"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'LM2EQ5C6' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:37:23.576238"], ["identifier", "LM2EQ5C6"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:37:23.576238"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.579220' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-315053' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-315053"], ["updated_at", "2014-11-12 20:37:23.580583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brando_tremblay@spencerschmeler.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464352924xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.597790"], ["email", "brando_tremblay@spencerschmeler.us"], ["encrypted_password", "1116df9a8fb412840b93ffe317c97c4ee3103fcc54c4d6c710dfd5783cab650ba2c7048ffa52c1627240f5f28aa2ea9781c2a430cf0e097ff1aad8e344acb4dd"], ["login", "brando_tremblay@spencerschmeler.us"], ["password_salt", "xx9oG2Q5DF_4yzGx1Pp6"], ["updated_at", "2014-11-12 20:37:23.597790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.601077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.602485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.604027"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.604027"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R042328370' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R042328370%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R042328370' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'zW31h0N19T68_bhjm42VRg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:23.610006"], ["currency", "USD"], ["email", "brando_tremblay@spencerschmeler.us"], ["guest_token", "zW31h0N19T68_bhjm42VRg"], ["number", "R042328370"], ["state", "cart"], ["updated_at", "2014-11-12 20:37:23.610006"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:37:23.618556"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:37:23.618556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 789063' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:37:23.621251"], ["description", "Et corporis fugiat odio quisquam atque delectus."], ["name", "TaxCategory - 789063"], ["updated_at", "2014-11-12 20:37:23.621251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.624470"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.624470"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-2531' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-2531' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:37:23.617438"], ["created_at", "2014-11-12 20:37:23.628069"], ["description", "Autem vel odit sunt incidunt perspiciatis et dolore rerum. Iusto qui eum velit quaerat perspiciatis illum soluta ipsum. Fugiat praesentium harum corporis officia. Porro qui deserunt ipsam ex autem non.\nVitae eius quaerat voluptas excepturi amet ut. Illo voluptates aliquid alias corrupti veritatis dolore. Voluptas voluptatem est nam voluptates repellendus ad laboriosam sed. At quisquam amet sequi labore cum aut rerum corrupti.\nAliquam ut et ratione pariatur itaque sint est et. Officiis tenetur porro molestiae eaque sit illo. Aliquid quidem numquam ducimus eaque. Perferendis et repudiandae rerum voluptatem optio quasi odio. Voluptates amet voluptatem alias dolorem ut fugit aliquid."], ["name", "Product #3 - 2531"], ["shipping_category_id", 1], ["slug", "product-3-2531"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.628069"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:37:23.630495"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.632762' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.633929' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.635247' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.635911' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:37:23.639880"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:37:23.639880"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.640947' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.641559' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.642734' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.643231' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.647314' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.647941' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.648569' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:37:23.650357"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.651156' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.651645' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.652110' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.652735' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.653172' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:37:23.657961"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.657961"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-2531' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.662181' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:23.666686' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-7635' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-7635' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:37:23.671646"], ["created_at", "2014-11-12 20:37:23.675243"], ["description", "Accusantium distinctio et nobis sequi et. Et distinctio animi enim beatae voluptates veritatis quam id. Commodi odit qui qui ex ad. Vel dolores atque aut ut necessitatibus maxime.\nEst culpa voluptas qui veniam optio perferendis et. Odit optio omnis excepturi et. Perferendis iure et accusamus quia voluptates natus. Aut maiores impedit ex tempore praesentium laborum expedita et. Aut beatae a praesentium labore ipsam esse sed consequatur."], ["name", "Product #4 - 7635"], ["shipping_category_id", 1], ["slug", "product-4-7635"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.675243"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:37:23.677309"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.679258' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.680295' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.681520' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.682054' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:37:23.685265"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:37:23.685265"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.686199' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.686728' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.687796' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.688322' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.692120' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.692636' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.693152' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:37:23.694946"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.695676' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.696181' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.696711' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.697319' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.697807' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:37:23.702415"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.702415"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-7635' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.706614' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:23.711137' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:37:23.719895' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:37:23.723588"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:37:23.723588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:37:23.725632"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:37:23.725632"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cecil.okeefe@armstrong.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464344225xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.728568"], ["email", "cecil.okeefe@armstrong.biz"], ["encrypted_password", "609504c3b965a273020694bbf4b9ac6296ba3e2376df45fb311723e0e543625ef8b11882a74f82d18053bbb9b9cb6c0cb5b2b164b2fc16359658d2d42b4dd903"], ["login", "cecil.okeefe@armstrong.biz"], ["password_salt", "LUX9GmqybXzWyCc-Fd7L"], ["updated_at", "2014-11-12 20:37:23.728568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.731107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.732536"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:37:23.732536"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R300789293' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R300789293%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R300789293' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'u7H35iKdnNFPk-lvJSqXEQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:37:23.737880"], ["currency", "USD"], ["email", "cecil.okeefe@armstrong.biz"], ["guest_token", "u7H35iKdnNFPk-lvJSqXEQ"], ["number", "R300789293"], ["state", "cart"], ["updated_at", "2014-11-12 20:37:23.737880"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'J952JD7P' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:37:23.740404"], ["identifier", "J952JD7P"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:37:23.740404"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.742841' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-141521' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-141521"], ["updated_at", "2014-11-12 20:37:23.744039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carolanne@batz.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464341826xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.756915"], ["email", "carolanne@batz.biz"], ["encrypted_password", "1d854db1ab4684d68c3de3df82f713008fec613c68b057c987c17d7cf2b855466d838d4861a19d3c0624d193a172f0687c216b798e7e32e0233515800416d4fb"], ["login", "carolanne@batz.biz"], ["password_salt", "quBKBkznvo_T-nzWBKvv"], ["updated_at", "2014-11-12 20:37:23.756915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.759950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.761326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.762919"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.762919"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R675607647' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R675607647%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R675607647' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hlHFzqpvZDfNjGP4p-jKIw' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:23.768849"], ["currency", "USD"], ["email", "carolanne@batz.biz"], ["guest_token", "hlHFzqpvZDfNjGP4p-jKIw"], ["number", "R675607647"], ["state", "cart"], ["updated_at", "2014-11-12 20:37:23.768849"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:37:23.777854"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:37:23.777854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 259572' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:37:23.780987"], ["description", "Necessitatibus dolore minima voluptatem blanditiis error est nam sed."], ["name", "TaxCategory - 259572"], ["updated_at", "2014-11-12 20:37:23.780987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.784538"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.784538"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8775' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8775' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:37:23.776687"], ["created_at", "2014-11-12 20:37:23.788102"], ["description", "Iusto aut eius voluptatem impedit veniam voluptatem. Ut omnis quo ipsa sed et id ea. Accusantium ullam numquam earum optio quisquam.\nSit tenetur neque voluptatem a dolor dignissimos facilis velit. Et enim ut cupiditate et est magnam. Commodi esse laboriosam quae error. Ad omnis repellat eos rerum cum officiis. Mollitia nulla repellat ab minus autem earum nobis dolor.\nAut enim blanditiis adipisci consectetur et reiciendis aut quod. Aspernatur fugiat sed minima voluptas dignissimos eos doloribus. Totam animi aliquam quo ut quae.\nPorro dolorum ipsum dolore officiis corporis culpa qui. Id eos dolores amet suscipit vero. Minima qui ullam asperiores natus saepe molestias libero. Officiis deleniti sed numquam eius optio ullam voluptatem."], ["name", "Product #5 - 8775"], ["shipping_category_id", 1], ["slug", "product-5-8775"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.788102"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:37:23.790905"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.793067' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.794245' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.795828' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.796374' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:37:23.799683"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:37:23.799683"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.800634' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.801173' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.802266' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.802773' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.807228' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.808193' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.808818' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:37:23.810744"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.811483' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.811986' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.812423' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.812988' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.813417' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:37:23.818146"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.818146"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8775' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.822679' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:23.827303' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9562' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9562' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:37:23.831656"], ["created_at", "2014-11-12 20:37:23.835456"], ["description", "Dolor nihil voluptas velit maxime commodi ut et officiis. Dolorem officia ut quia sed totam voluptatibus neque. Qui sed accusantium numquam ea animi deserunt dolor."], ["name", "Product #6 - 9562"], ["shipping_category_id", 1], ["slug", "product-6-9562"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.835456"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:37:23.837564"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.839517' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.840800' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.842057' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.842609' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:37:23.846211"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:37:23.846211"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.847162' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.847674' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.848758' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.849271' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.853205' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.853708' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.854288' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:37:23.856144"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.856877' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.857380' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.857903' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.858523' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.859026' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:37:23.863812"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.863812"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9562' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.868135' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:23.872630' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:37:23.881299' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:37:23.884982"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:37:23.884982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:37:23.886996"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:37:23.886996"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'daniela.turcotte@mccullough.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464365427xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.889929"], ["email", "daniela.turcotte@mccullough.name"], ["encrypted_password", "bb4eae0017de0f90b2fd295df50e55670f7d994f97eeb09e48a3131bbb9e119242e4a751bff1bd89f860c17e86bc2a2558547d4254b02d1efe3d68ac317cb1c6"], ["login", "daniela.turcotte@mccullough.name"], ["password_salt", "z-PMCWTU7skjRLS4t1Ee"], ["updated_at", "2014-11-12 20:37:23.889929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.892491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.893914"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:37:23.893914"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R496106706' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R496106706%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R496106706' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'b9Tdf2IQTZRe07GlRff38Q' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:37:23.899174"], ["currency", "USD"], ["email", "daniela.turcotte@mccullough.name"], ["guest_token", "b9Tdf2IQTZRe07GlRff38Q"], ["number", "R496106706"], ["state", "cart"], ["updated_at", "2014-11-12 20:37:23.899174"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'NVTLNTKZ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:37:23.901749"], ["identifier", "NVTLNTKZ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:37:23.901749"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.903977' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-300410' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-300410"], ["updated_at", "2014-11-12 20:37:23.905226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'keara.parker@effertzkautzer.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158246435128xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:23.918310"], ["email", "keara.parker@effertzkautzer.biz"], ["encrypted_password", "9f08270fe2b9e75a204ad87c726a06a0c31f2a61a51b5957ecc65daff838366422109b7e05ab9d5328c13e49385306f78491a9fe28606f1049dff18642d172a5"], ["login", "keara.parker@effertzkautzer.biz"], ["password_salt", "qoXS2wZ2c57gBkLo142S"], ["updated_at", "2014-11-12 20:37:23.918310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.936398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.937754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.939171"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.939171"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R039468866' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R039468866%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R039468866' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'AORsQV1t3xbzDKMPgIO1VA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:23.944918"], ["currency", "USD"], ["email", "keara.parker@effertzkautzer.biz"], ["guest_token", "AORsQV1t3xbzDKMPgIO1VA"], ["number", "R039468866"], ["state", "cart"], ["updated_at", "2014-11-12 20:37:23.944918"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:37:23.951855"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:37:23.951855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 614440' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:37:23.954831"], ["description", "Voluptatum enim omnis quod voluptate est nemo et."], ["name", "TaxCategory - 614440"], ["updated_at", "2014-11-12 20:37:23.954831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:37:23.960433"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:23.960433"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-2336' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-2336' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:37:23.950554"], ["created_at", "2014-11-12 20:37:23.964817"], ["description", "Deserunt at dolorem assumenda asperiores nisi et delectus. Ut architecto tenetur eligendi doloremque quae aperiam magni. Aut itaque est soluta et et."], ["name", "Product #7 - 2336"], ["shipping_category_id", 1], ["slug", "product-7-2336"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.964817"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:37:23.967394"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.969639' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.970854' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.972164' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.972764' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:37:23.976431"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:37:23.976431"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.977493' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.978098' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.979285' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.979818' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.984182' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.985161' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.985789' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:37:23.987738"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.988558' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.989052' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.989559' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.990193' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:23.990653' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:37:23.996596"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:23.996596"], ["variant_id", 1]] Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-2336' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.002087' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:24.008638' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-4812' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-4812' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:37:24.015831"], ["created_at", "2014-11-12 20:37:24.020331"], ["description", "Laudantium eos voluptatem ut soluta aliquam accusantium et. Corporis a sed ut laudantium quasi. Minima minus debitis laboriosam nobis nihil voluptatem magni assumenda.\nQui illum quam numquam non non et quis. Voluptatem aut libero distinctio inventore eum natus beatae. Atque est et voluptatem praesentium molestiae. Officiis repudiandae libero alias natus id quisquam repellendus itaque.\nNatus omnis quos maiores rerum. Aut est modi sit aut sit qui autem. Et dolores quam dicta provident. Debitis ea neque architecto distinctio placeat. Nihil voluptatem voluptatem similique et voluptate.\nMaxime consequatur natus enim suscipit similique. Sed quia magnam necessitatibus in debitis dolorem. Quo minus autem repellat et sit iure et. Aliquid ipsum porro ut est dolores sed vitae omnis."], ["name", "Product #8 - 4812"], ["shipping_category_id", 1], ["slug", "product-8-4812"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:24.020331"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:37:24.023025"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.025389' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.026690' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.028078' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.028724' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:37:24.032922"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:37:24.032922"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.034135' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.034784' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.036103' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.036636' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.041249' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.041985' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.042678' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:37:24.044841"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.045671' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.046211' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.046897' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.047662' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.048281' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:37:24.054714"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:24.054714"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-4812' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.059318' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:24.063891' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.3ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:37:24.078443' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:37:24.085081"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:37:24.085081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:37:24.087332"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:37:24.087332"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jerrold@murraymedhurst.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14158246449029xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:24.090346"], ["email", "jerrold@murraymedhurst.ca"], ["encrypted_password", "197d5c4747d125e74633a3e4bb510a8faa90750c91a90f0a498c9ce702482cb093cd3e20cfd24da02c7f4d4f3587b703b075842ed0b34723e15a03608c631378"], ["login", "jerrold@murraymedhurst.ca"], ["password_salt", "Q4f372BL4BztDyAASTFc"], ["updated_at", "2014-11-12 20:37:24.090346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:24.092873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:24.094341"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:37:24.094341"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311979620' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R311979620%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311979620' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ZS2CJIB0F4nDLe6nKY4cvw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:37:24.099881"], ["currency", "USD"], ["email", "jerrold@murraymedhurst.ca"], ["guest_token", "ZS2CJIB0F4nDLe6nKY4cvw"], ["number", "R311979620"], ["state", "cart"], ["updated_at", "2014-11-12 20:37:24.099881"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'QZFVE4C2' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:37:24.102310"], ["identifier", "QZFVE4C2"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:37:24.102310"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.104421' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-352115' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-352115"], ["updated_at", "2014-11-12 20:37:24.105564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'devante_zemlak@kihndickinson.co.uk' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464447630xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:24.118679"], ["email", "devante_zemlak@kihndickinson.co.uk"], ["encrypted_password", "05062b787c0382ae6d3f6b6ca667f04ed608dbbe173e139924421dd48693edb70c05f244fe8ccf3146723fb9d08d4a4ddc6d33f5098b245ddebc512fc907a13e"], ["login", "devante_zemlak@kihndickinson.co.uk"], ["password_salt", "LtXuQHdcpyAsZyGe3siv"], ["updated_at", "2014-11-12 20:37:24.118679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:24.121858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:24.123222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:24.124746"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:24.124746"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R271702549' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R271702549%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R271702549' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'wxcb9krJ_AYTZXni0HFuuQ' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:24.130043"], ["currency", "USD"], ["email", "devante_zemlak@kihndickinson.co.uk"], ["guest_token", "wxcb9krJ_AYTZXni0HFuuQ"], ["number", "R271702549"], ["state", "cart"], ["updated_at", "2014-11-12 20:37:24.130043"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:37:24.137432"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:37:24.137432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 749813' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:37:24.140158"], ["description", "Vel placeat nisi in eaque ut nulla."], ["name", "TaxCategory - 749813"], ["updated_at", "2014-11-12 20:37:24.140158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:37:24.143383"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:24.143383"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-4768' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-4768' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:37:24.136168"], ["created_at", "2014-11-12 20:37:24.147198"], ["description", "Ipsum et voluptatem eveniet non laborum ea ut. Laborum voluptatem quidem nostrum veniam. Et facere est neque aspernatur placeat.\nEaque dolores laboriosam cumque quis asperiores. Architecto aliquid reprehenderit non aut. Consequatur amet animi et quibusdam. Repudiandae dolores veniam error consequatur assumenda aut voluptate id."], ["name", "Product #9 - 4768"], ["shipping_category_id", 1], ["slug", "product-9-4768"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:24.147198"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:37:24.149567"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.151813' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.153087' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.154457' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.155055' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:37:24.158798"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:37:24.158798"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.159852' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.160413' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.161591' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.162072' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.165987' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.166498' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.167078' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:37:24.168813"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.169566' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.170044' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.170537' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.171088' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.171532' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:37:24.176277"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:24.176277"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-4768' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.180417' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:24.184888' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-7264' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-7264' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:37:24.190747"], ["created_at", "2014-11-12 20:37:24.194417"], ["description", "Et quia voluptas sed consequatur eaque. Quis quod hic soluta facere vero. Est illo totam impedit officia natus ab voluptate voluptas. Quod recusandae quia dolores blanditiis soluta fuga eaque. Dolorem delectus fuga consequatur rerum voluptas perferendis commodi molestiae.\nUllam expedita reprehenderit unde velit quia quos. Et at nemo vitae sequi. Sit dolorem dolor delectus iste. Aut adipisci ea quia libero saepe.\nAb blanditiis nobis facilis exercitationem et. Id eum a enim sint quas illo eos. Voluptatum amet dolor deleniti voluptatibus iure rem. Autem vel alias sint asperiores earum illo eum praesentium. At sunt deleniti hic perferendis."], ["name", "Product #10 - 7264"], ["shipping_category_id", 1], ["slug", "product-10-7264"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:24.194417"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:37:24.196457"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.198352' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.199385' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.200593' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.201113' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:37:24.204290"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:37:24.204290"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.205178' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.205692' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.206757' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.207252' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.211031' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.211538' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.212046' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:37:24.215415"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.216751' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.217725' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.218687' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.219767' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.220505' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:37:24.226920"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:24.226920"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-7264' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.231041' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:24.235646' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:37:24.243990' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:37:24.255542"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:37:24.255542"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:24.258967' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.259497' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:37:24.263152"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:37:24.263152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:37:24.265188"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:37:24.265188"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'bria_corwin@beahanadams.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464442431xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:24.268110"], ["email", "bria_corwin@beahanadams.info"], ["encrypted_password", "96c6a1d959724ed98c82d5c4002b8cbb8e89bdb3de776600c2bbd94973214dbd6be6df050448915a7d84ae56adfc0a308458c76e6163d92a266affe6521a7f6f"], ["login", "bria_corwin@beahanadams.info"], ["password_salt", "spXQ1s6xznxjQ1PyuSHN"], ["updated_at", "2014-11-12 20:37:24.268110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:24.270631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:24.272037"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:37:24.272037"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R046263724' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R046263724%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R046263724' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'R9ZgAMQb0C6WfvepMds_Ug' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:37:24.277243"], ["currency", "USD"], ["email", "bria_corwin@beahanadams.info"], ["guest_token", "R9ZgAMQb0C6WfvepMds_Ug"], ["number", "R046263724"], ["state", "cart"], ["updated_at", "2014-11-12 20:37:24.277243"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '4ESHAPZX' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:37:24.279579"], ["identifier", "4ESHAPZX"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:37:24.279579"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.281701' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-303424' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-303424"], ["updated_at", "2014-11-12 20:37:24.282851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dax.kessler@rowe.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464463032xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:24.296375"], ["email", "dax.kessler@rowe.biz"], ["encrypted_password", "e8f3f1e72997d12f2f956a09af1325412e5a9983ca63169f28eb2fb6f1f472bf6d074b244d4b28a2ffe6ad5e003f2773c130c48cfda6627b87d8b47b0e4081a0"], ["login", "dax.kessler@rowe.biz"], ["password_salt", "rUz7Se5autJVbniAz8ba"], ["updated_at", "2014-11-12 20:37:24.296375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:24.299370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:24.300765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:24.302293"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:24.302293"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R579556322' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R579556322%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R579556322' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'AxWHF4wmukXQXqHss1o6WA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-12 20:37:24.307630"], ["currency", "USD"], ["email", "dax.kessler@rowe.biz"], ["guest_token", "AxWHF4wmukXQXqHss1o6WA"], ["number", "R579556322"], ["state", "cart"], ["updated_at", "2014-11-12 20:37:24.307630"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 20:37:24.319051"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:37:24.319051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 604627' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 20:37:24.323077"], ["description", "Ut sed ea quisquam debitis architecto est autem quis."], ["name", "TaxCategory - 604627"], ["updated_at", "2014-11-12 20:37:24.323077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-12 20:37:24.326600"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-12 20:37:24.326600"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-7985' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-7985' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:37:24.317287"], ["created_at", "2014-11-12 20:37:24.330659"], ["description", "Et commodi cupiditate et magnam eos consequatur enim. Quo eius ad quidem dicta. Beatae necessitatibus ad perspiciatis provident ut ut suscipit. Quidem eum repellendus blanditiis et amet quis et.\nPlaceat culpa quae at ex quia hic. Ipsam odit et sit aut. Illum omnis minima eaque minus corrupti. Distinctio rem voluptas quia et quo voluptas saepe."], ["name", "Product #11 - 7985"], ["shipping_category_id", 1], ["slug", "product-11-7985"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:24.330659"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:37:24.333107"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.335100' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.336234' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.337516' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.338077' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:37:24.341575"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:37:24.341575"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.342771' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.343403' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.344614' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.345155' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.349202' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.349751' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.350327' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-12 20:37:24.352071"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.352813' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.353320' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.353833' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.354468' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.354962' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:37:24.359854"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:24.359854"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-7985' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.364111' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:24.368617' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-5740' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-5740' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-12 20:37:24.374694"], ["created_at", "2014-11-12 20:37:24.378393"], ["description", "Earum corporis minima placeat veritatis aut tempore expedita. Quis voluptas iusto adipisci et. Eos quas velit alias omnis debitis sit dolor.\nSed magni quia est sequi. Atque labore voluptate molestias suscipit. Est quis nostrum molestiae repellat.\nDucimus voluptatum ipsam delectus repudiandae commodi. Delectus et dolore voluptatum labore aliquid hic. Aut voluptatem cumque voluptas et quos voluptate.\nFugiat doloribus ratione reprehenderit voluptas quod qui corporis. Illo dignissimos molestiae asperiores ut. Exercitationem quae provident quod id quos ut fuga.\nOdio provident ex temporibus adipisci. In quisquam officiis voluptatem ut nihil a velit eligendi. Quo rerum tenetur consectetur omnis."], ["name", "Product #12 - 5740"], ["shipping_category_id", 1], ["slug", "product-12-5740"], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:24.378393"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:37:24.380695"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.382698' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.383738' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.384987' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.385532' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-12 20:37:24.388895"], ["stock_location_id", 1], ["updated_at", "2014-11-12 20:37:24.388895"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.389844' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.390380' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.391519' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.392013' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.395930' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.396471' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.396989' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-12 20:37:24.398777"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.399524' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.400022' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.400556' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.401190' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-12 20:37:24.401657' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-12 20:37:24.420987"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-12 20:37:24.420987"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-5740' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.425743' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:24.430188' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-12 20:37:24.438645' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-12 20:37:24.440352"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-12 20:37:24.440352"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-12 20:37:24.443129' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.443623' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:37:24.447216"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-12 20:37:24.447216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-12 20:37:24.449168"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-12 20:37:24.449168"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'flo_renner@mcglynnrodriguez.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141582464494533xxxxxxxxxxxxx"], ["created_at", "2014-11-12 20:37:24.452038"], ["email", "flo_renner@mcglynnrodriguez.biz"], ["encrypted_password", "8638b7dfc0dabc3954704e0c84b2f39129183551c3e740bfeb235ed3d1b5bc18c2d12ba2b9cad0d2d1480db3ba129964bc9e6c6449326d242778a412067ded01"], ["login", "flo_renner@mcglynnrodriguez.biz"], ["password_salt", "4syw4ACy2iFs96s-3myo"], ["updated_at", "2014-11-12 20:37:24.452038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:24.454590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-12 20:37:24.455919"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-12 20:37:24.455919"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R405314487' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R405314487%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R405314487' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'dr_IZiQzbLDzcWl05B8Kfw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-12 20:37:24.461263"], ["currency", "USD"], ["email", "flo_renner@mcglynnrodriguez.biz"], ["guest_token", "dr_IZiQzbLDzcWl05B8Kfw"], ["number", "R405314487"], ["state", "cart"], ["updated_at", "2014-11-12 20:37:24.461263"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'QBXPWC3E' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-12 20:37:24.463631"], ["identifier", "QBXPWC3E"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-12 20:37:24.463631"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.465751' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-543235' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-543235"], ["updated_at", "2014-11-12 20:37:24.466926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (16.4ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rubie@ebertterry.ca' LIMIT 1 SQL (6.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079064841xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:46.154592"], ["email", "rubie@ebertterry.ca"], ["encrypted_password", "15c33c81865ef80b71248b524e8382cb6439746a14d52ec0d2090ae78f41836af606cb4f1bcb3b61025c87b3c707d43f51110ded31672b113c8acdf00dd58cc5"], ["login", "rubie@ebertterry.ca"], ["password_salt", "XbtgzAzW6gE1rmt5Ut_w"], ["updated_at", "2014-11-14 23:31:46.154592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (1.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:46.205027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:46.211056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:46.235391"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:46.235391"], ["zipcode", "35005"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.7ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311393603' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R311393603%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311393603' LIMIT 1 Spree::Order Exists (0.7ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'vPLZXkBeZq2Y0EtZDEBcVQ' LIMIT 1 SQL (6.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:31:46.281746"], ["currency", "USD"], ["email", "rubie@ebertterry.ca"], ["guest_token", "vPLZXkBeZq2Y0EtZDEBcVQ"], ["number", "R311393603"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:46.281746"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.9ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:31:46.381389"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-14 23:31:46.381389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.6ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 411718' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (1.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:31:46.393481"], ["description", "Modi non culpa eius aperiam quasi quas."], ["name", "TaxCategory - 411718"], ["updated_at", "2014-11-14 23:31:46.393481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:31:46.425072"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:46.425072"], ["zipcode", "20500"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.9ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-3488' LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-3488' LIMIT 1 SQL (4.6ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:46.356273"], ["created_at", "2014-11-14 23:31:46.438740"], ["description", "Laborum cumque ratione aspernatur qui ducimus nihil. Ut voluptatem quia rerum nihil autem. Esse porro voluptatem sit eaque id minus illum in. Corporis vero magnam sed recusandae sit illo nemo a. Quo molestiae quia deleniti exercitationem ut facere.\nDolorem asperiores cupiditate rerum ullam et rerum. Illo voluptatem quis qui ea dignissimos dolor soluta. Nesciunt ut hic in amet.\nDicta ratione voluptas quos aliquam possimus et. Qui sed quisquam odit fugit aliquid animi. Architecto vitae sint facilis repellendus. Autem inventore aspernatur unde exercitationem et id quam. Numquam odit nostrum qui dolorem blanditiis deserunt deleniti."], ["name", "Product #1 - 3488"], ["shipping_category_id", 1], ["slug", "product-1-3488"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:46.438740"]] Spree::Variant Exists (0.5ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (3.6ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-14 23:31:46.447231"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (1.7ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.460236' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.461716' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.490089' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.491416' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.8ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:46.536816"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:46.536816"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.540429' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.541115' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.542407' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.542934' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.553816' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.554455' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.555014' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:46.556768"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.557958' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.558429' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.558894' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.559459' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.559891' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (2.5ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:46.583491"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:46.583491"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-3488' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.7ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:46.596824' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.7ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:46.609937' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-8461' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-8461' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:46.618825"], ["created_at", "2014-11-14 23:31:46.622640"], ["description", "Quae harum quas quisquam dolor id non et. Corporis odio nam numquam dolore non blanditiis sunt. Quis numquam voluptatem voluptatem error.\nDoloremque ullam necessitatibus omnis aliquid nihil iste. Sunt explicabo quis autem a eveniet. Eligendi qui ut corporis quo officia itaque ullam. Praesentium nesciunt consectetur possimus sit itaque alias blanditiis.\nExercitationem sed nihil et non repellat. Aut consequuntur provident corporis tempore aut eveniet vero. Ut voluptatem quod ut sit aut temporibus."], ["name", "Product #2 - 8461"], ["shipping_category_id", 1], ["slug", "product-2-8461"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:46.622640"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-14 23:31:46.624828"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.626788' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.627859' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.629107' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.686469' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:46.690585"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:46.690585"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.691595' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.692129' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.693273' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.693752' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.697722' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.699284' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.700566' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:46.703725"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.704924' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.705663' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.706426' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.707343' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.708096' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:46.713654"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:46.713654"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-8461' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:46.717987' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:46.722620' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.7ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:31:46.746314' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:46.767146"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:31:46.767146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:46.781865"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:31:46.781865"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'therese_dicki@lockmanwhite.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079065242xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:46.788552"], ["email", "therese_dicki@lockmanwhite.co.uk"], ["encrypted_password", "7afa6977ca0f0195e19b7ae958b4269824e7ec98d36655756bf0bb186414753703c1bea0595b91775928ca508080c02b596f61a4e169aa2622f8d799bf5a38a5"], ["login", "therese_dicki@lockmanwhite.co.uk"], ["password_salt", "WVLJDkrWnUuoAuiA7Br6"], ["updated_at", "2014-11-14 23:31:46.788552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:46.791220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:46.792610"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:31:46.792610"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R511313865' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R511313865%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R511313865' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '8FbghShVhD-pNyoKz0ddfQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:31:46.797941"], ["currency", "USD"], ["email", "therese_dicki@lockmanwhite.co.uk"], ["guest_token", "8FbghShVhD-pNyoKz0ddfQ"], ["number", "R511313865"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:46.797941"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.8ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'VV4Q7H8D' LIMIT 1 SQL (1.6ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:31:46.809729"], ["identifier", "VV4Q7H8D"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:31:46.809729"]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:46.817287' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-442114' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-442114"], ["updated_at", "2014-11-14 23:31:46.820101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kristin@collier.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079067803xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:46.848387"], ["email", "kristin@collier.us"], ["encrypted_password", "a53407357a0e979cf41469832b6499f196404508bbf62dd271ddcfcb3df9c5c65d38d92a4bc528dfeb5cba202b2c6400726302b83b4e39a23ddfda791b18c61e"], ["login", "kristin@collier.us"], ["password_salt", "wk7y2cn4iZATBMaikzJt"], ["updated_at", "2014-11-14 23:31:46.848387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:46.851771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:46.853213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:46.854772"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:46.854772"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001306278' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R001306278%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001306278' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'l1UyZ6XMRINMOs4uvcukXg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:31:46.860144"], ["currency", "USD"], ["email", "kristin@collier.us"], ["guest_token", "l1UyZ6XMRINMOs4uvcukXg"], ["number", "R001306278"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:46.860144"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:31:46.869031"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-14 23:31:46.869031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 452004' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:31:46.871874"], ["description", "Quos aut provident eligendi et ipsam."], ["name", "TaxCategory - 452004"], ["updated_at", "2014-11-14 23:31:46.871874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:31:46.875299"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:46.875299"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-9412' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-9412' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:46.867803"], ["created_at", "2014-11-14 23:31:46.879026"], ["description", "Ut sit fuga hic occaecati dolorum. Eos laborum modi ullam dolor accusantium perferendis quod molestiae. Eligendi aspernatur fugit voluptatum quibusdam provident vel hic at. Ut delectus rem culpa quia eius.\nPorro et ipsum cumque distinctio et dolores exercitationem non. Repudiandae neque praesentium non et nihil accusantium dolores. Aut consequatur deserunt ratione aperiam tenetur. Ipsam est ut sequi sed et dolorem consequatur esse. Ab explicabo quisquam natus dolorem veniam adipisci.\nRem eum voluptatem laudantium similique cupiditate corrupti. Eos assumenda est qui molestiae voluptate explicabo officia ipsum. Dolorum consequatur voluptates dolor impedit iste tempora.\nEst numquam accusantium incidunt laudantium eos. Maxime debitis voluptatem vero ab. Blanditiis tempora numquam occaecati quo itaque ex."], ["name", "Product #3 - 9412"], ["shipping_category_id", 1], ["slug", "product-3-9412"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:46.879026"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-14 23:31:46.881523"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.883729' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.885237' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.886682' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.887284' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:46.890880"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:46.890880"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.891944' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.892517' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.893681' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.894167' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.898533' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.899720' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.900363' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:46.903336"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.904393' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.905107' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.905871' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.906657' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.907292' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:46.912417"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:46.912417"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-9412' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:46.916600' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:46.921212' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-8057' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-8057' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:46.927323"], ["created_at", "2014-11-14 23:31:46.931132"], ["description", "Cumque placeat nisi dicta hic modi. Voluptas quia aliquid ipsam consequatur tempora. Velit et quam quia maiores et ad dicta. Quaerat illo voluptate in quae asperiores sint.\nMinima dolor aliquam inventore quam vero. Et aperiam ut consequatur sit inventore amet quia. Animi voluptates esse magni quibusdam omnis est quia maxime.\nCupiditate qui velit ratione sed. Est non enim ut modi. Ducimus saepe dolore numquam error odio ab voluptatibus voluptatem.\nReiciendis et nostrum et vel voluptates incidunt. Dolores autem ullam at aut unde quia praesentium. Voluptas exercitationem quo quia ducimus libero quibusdam. Voluptatem et fuga eaque dolore reprehenderit facilis. Molestiae eius natus tempore laborum consequatur eaque quia accusantium."], ["name", "Product #4 - 8057"], ["shipping_category_id", 1], ["slug", "product-4-8057"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:46.931132"]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-14 23:31:46.936302"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.939767' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.941498' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.943234' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.944022' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:46.947452"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:46.947452"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.948379' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.948898' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.949967' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.950439' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.954213' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.954761' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.955307' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:46.957150"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.957875' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.958412' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.958957' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.959633' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:46.960133' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:46.965125"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:46.965125"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-8057' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:46.969581' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:46.974548' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:31:46.983752' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:46.987459"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:31:46.987459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:46.989566"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:31:46.989566"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'abigail@volkmanleuschke.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079069364xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:46.992586"], ["email", "abigail@volkmanleuschke.ca"], ["encrypted_password", "fc7b6b26c888d6d677f2f7f7ae890b11e5968ab5635eee1bb5dbf97a130ec7540f12a897ffdaf2134ba0fc36e3023be1fcd02d1b758a90f546030fd7f12daf46"], ["login", "abigail@volkmanleuschke.ca"], ["password_salt", "kZQQ6ES5vzDh-ZCcuVWj"], ["updated_at", "2014-11-14 23:31:46.992586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:46.995195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:46.996612"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:31:46.996612"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R246737039' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R246737039%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R246737039' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hs-R0qaTkfoVJl7pPXVJkg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:31:47.001876"], ["currency", "USD"], ["email", "abigail@volkmanleuschke.ca"], ["guest_token", "hs-R0qaTkfoVJl7pPXVJkg"], ["number", "R246737039"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:47.001876"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'PJFNAJ8F' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:31:47.004527"], ["identifier", "PJFNAJ8F"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:31:47.004527"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.006819' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-150115' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-150115"], ["updated_at", "2014-11-14 23:31:47.007988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'pinkie_emard@runte.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079073335xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:47.025010"], ["email", "pinkie_emard@runte.biz"], ["encrypted_password", "401ee12829bb4595889716495971348a1d71719680dc8cab93ae08c01b0ffe1b95aff8bab316d0078251ce650a4c2206f7839c9c7f272ef302f3f6dd8f2ac0f8"], ["login", "pinkie_emard@runte.biz"], ["password_salt", "LgzTzV9x8j_-T1LVssBs"], ["updated_at", "2014-11-14 23:31:47.025010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:47.029001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:47.030246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:47.031689"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:47.031689"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R573386215' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R573386215%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R573386215' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'owHEmHwUlUtEw4Q9YFSxAA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:31:47.037594"], ["currency", "USD"], ["email", "pinkie_emard@runte.biz"], ["guest_token", "owHEmHwUlUtEw4Q9YFSxAA"], ["number", "R573386215"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:47.037594"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:31:47.045156"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-14 23:31:47.045156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 977423' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:31:47.047815"], ["description", "Autem vitae dolorem vel nihil hic nostrum esse."], ["name", "TaxCategory - 977423"], ["updated_at", "2014-11-14 23:31:47.047815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:31:47.051172"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:47.051172"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8314' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8314' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:47.044115"], ["created_at", "2014-11-14 23:31:47.055096"], ["description", "Provident aut sed doloribus consequatur ut. Aut rerum perferendis libero quasi voluptatem quo sed iure. Similique ea corrupti optio ut.\nSit maiores nemo ut dolores asperiores explicabo. Quia temporibus explicabo aspernatur omnis ipsum et eum. Amet aut dolore est commodi consequatur voluptatem unde. Rem aut et ipsa architecto quidem. Id et eveniet pariatur numquam dolor quia est."], ["name", "Product #5 - 8314"], ["shipping_category_id", 1], ["slug", "product-5-8314"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.055096"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-14 23:31:47.057613"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.059670' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.060857' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.062180' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.062750' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:47.066113"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:47.066113"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.067069' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.067606' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.068853' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.069575' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.074206' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.075856' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.077186' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:47.080333"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.081538' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.082158' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.082909' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.083841' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.084643' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:47.090116"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.090116"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8314' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.094602' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:47.099296' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9187' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9187' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:47.104945"], ["created_at", "2014-11-14 23:31:47.108624"], ["description", "Eos nisi consequatur cumque illum ab non. Inventore perferendis ullam sed libero rem commodi nisi. Doloremque aut odio nesciunt ex nobis mollitia voluptatem. Autem distinctio accusantium culpa est.\nRepellendus ducimus ut quos sed modi quo fuga blanditiis. Qui animi necessitatibus aut aut. Sint nesciunt facere veniam voluptatem. Vitae consequatur aut dolores perferendis veritatis. Labore aliquid soluta ut perferendis ab aut ratione.\nMolestias excepturi voluptatem sint similique corrupti nesciunt porro. Deleniti et asperiores atque recusandae placeat iste nesciunt sunt. Rerum pariatur vitae dolorem qui provident dolorum."], ["name", "Product #6 - 9187"], ["shipping_category_id", 1], ["slug", "product-6-9187"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.108624"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-14 23:31:47.110752"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.112788' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.113878' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.115107' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.115644' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:47.119153"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:47.119153"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.120166' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.120761' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.122005' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.122514' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.127379' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.128933' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.130089' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:47.133302"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.134369' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.135112' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.135929' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.136827' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.137690' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:47.143195"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.143195"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9187' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.147535' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:47.152278' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:31:47.161353' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:47.165129"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:31:47.165129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:47.167283"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:31:47.167283"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'willis@gusikowski.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079077096xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:47.170273"], ["email", "willis@gusikowski.us"], ["encrypted_password", "89925381925896168e515e3c94e0b42e6bd1aa06e7bc15c5532e9c82d65a688315043215757107c4b79594cf7320dfcda82d7f42441159760806e409bd2ddf16"], ["login", "willis@gusikowski.us"], ["password_salt", "dZJPQsAufb2FCcb13u2r"], ["updated_at", "2014-11-14 23:31:47.170273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:47.172917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:47.174407"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:31:47.174407"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R856120295' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R856120295%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R856120295' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '2YszL5tWODuqu-gaoeiyFQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:31:47.180028"], ["currency", "USD"], ["email", "willis@gusikowski.us"], ["guest_token", "2YszL5tWODuqu-gaoeiyFQ"], ["number", "R856120295"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:47.180028"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '6HLWUKDU' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:31:47.182694"], ["identifier", "6HLWUKDU"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:31:47.182694"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.185099' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-531144' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-531144"], ["updated_at", "2014-11-14 23:31:47.186812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'pearlie.goyette@toy.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079076427xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:47.200011"], ["email", "pearlie.goyette@toy.name"], ["encrypted_password", "d2c78ec01aaffb6a3a1f74676bd2790f45151739ea309e87c15e86100d5af04baffc74acb26f2277ee005b29825a731bf79ad41621be475db5bdc960a3daf225"], ["login", "pearlie.goyette@toy.name"], ["password_salt", "vMbJGKXSrz8zQf6XnMnU"], ["updated_at", "2014-11-14 23:31:47.200011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:47.217866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:47.219245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:47.220896"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:47.220896"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417838857' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R417838857%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417838857' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CQDFyiOKU3SqQh_TIM2udQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:31:47.226589"], ["currency", "USD"], ["email", "pearlie.goyette@toy.name"], ["guest_token", "CQDFyiOKU3SqQh_TIM2udQ"], ["number", "R417838857"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:47.226589"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:31:47.241778"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-14 23:31:47.241778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 304797' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:31:47.244726"], ["description", "Expedita aut eligendi natus consequatur odio soluta magnam earum."], ["name", "TaxCategory - 304797"], ["updated_at", "2014-11-14 23:31:47.244726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:31:47.248071"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:47.248071"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-8279' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-8279' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:47.240066"], ["created_at", "2014-11-14 23:31:47.251766"], ["description", "Totam consequuntur perferendis voluptatum non hic vel. Dolor unde rerum et rerum modi esse. Id corporis qui necessitatibus est et qui. Et eum quam qui blanditiis.\nAsperiores voluptatibus provident repellat autem sit et. Doloribus sed facilis sed id qui consequatur sed rerum. Exercitationem cum occaecati alias dignissimos sit officia. Doloribus minima impedit ad alias expedita qui.\nMaiores veritatis natus excepturi non tempore minus incidunt. Aliquid quas voluptates magni illo alias adipisci error ut. Ex dolorem ducimus eos quis exercitationem possimus. Qui non aut ducimus commodi nihil velit quibusdam quod.\nSint earum doloremque corrupti neque iste magnam sunt. Velit sunt sequi deleniti minima corrupti asperiores cum tenetur. Rerum repellendus error molestias et doloremque ut porro. Non doloribus quia eos aut ut ad. Aperiam debitis quo est vel.\nVoluptatem iure suscipit nesciunt numquam vel inventore sed. Nisi qui blanditiis et maxime commodi cumque fugit rerum. Veritatis voluptate a reiciendis labore commodi accusamus."], ["name", "Product #7 - 8279"], ["shipping_category_id", 1], ["slug", "product-7-8279"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.251766"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-14 23:31:47.254108"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.256177' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.257340' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.258670' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.259264' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:47.262539"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:47.262539"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.263472' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.264006' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.265154' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.265672' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.269728' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.270357' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.271265' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:47.275227"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.276574' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.277470' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.278286' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.279225' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.279966' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:47.286131"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.286131"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-8279' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.291046' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:47.295993' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3928' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3928' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:47.301015"], ["created_at", "2014-11-14 23:31:47.305028"], ["description", "Explicabo nihil molestias reprehenderit voluptatem quia. Incidunt reprehenderit voluptatem sequi dolores sed. Ratione non sed nostrum deserunt in quod maxime. Eum corrupti reprehenderit optio rerum sit.\nA impedit voluptatum quae voluptatibus delectus perferendis. Sed neque nihil aspernatur nihil molestias. Quisquam sunt sed error quis."], ["name", "Product #8 - 3928"], ["shipping_category_id", 1], ["slug", "product-8-3928"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.305028"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-14 23:31:47.307197"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.309196' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.310286' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.311507' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.312018' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:47.315460"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:47.315460"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.316416' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.316966' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.318116' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.318592' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.322450' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.322987' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.323514' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:47.325368"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.326090' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.326645' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.327189' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.327810' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.328270' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:47.333103"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.333103"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3928' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.337545' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:47.342105' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:31:47.350858' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:47.354517"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:31:47.354517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:47.356513"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:31:47.356513"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'norwood.smith@wolff.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079075428xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:47.359380"], ["email", "norwood.smith@wolff.co.uk"], ["encrypted_password", "d3470dc41740b6e73c2e587fe26f011e0163b97867cda1fa5346d5392b3c415b8a584c07172dcd170ba29ffebc0c146415a74cbcf05979f3bee2effaa16262ab"], ["login", "norwood.smith@wolff.co.uk"], ["password_salt", "3rL2PAd9fmBuwUK2ozQb"], ["updated_at", "2014-11-14 23:31:47.359380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:47.361994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:47.363425"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:31:47.363425"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R658274879' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R658274879%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R658274879' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '4NTD5S0v6DM0QlCprj0sRQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:31:47.368742"], ["currency", "USD"], ["email", "norwood.smith@wolff.co.uk"], ["guest_token", "4NTD5S0v6DM0QlCprj0sRQ"], ["number", "R658274879"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:47.368742"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XW4YTUMX' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:31:47.371087"], ["identifier", "XW4YTUMX"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:31:47.371087"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.373254' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-515105' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-515105"], ["updated_at", "2014-11-14 23:31:47.374461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kallie@huelsdickinson.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079072269xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:47.387860"], ["email", "kallie@huelsdickinson.com"], ["encrypted_password", "6f25cf74745b97d5e4109adae9c5297ef3bb5c81df43a6c8b5ef56c5800eb4ef542951155b43766d362f38e403401ddb79365d54a5fdd38691b78329a1c88ef0"], ["login", "kallie@huelsdickinson.com"], ["password_salt", "Sa-qzSmunV2yijhH5sdx"], ["updated_at", "2014-11-14 23:31:47.387860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:47.390984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:47.392325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:47.393864"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:47.393864"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R572375681' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R572375681%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R572375681' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9bDOL8cngAc52fhB6TrCgg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:31:47.399404"], ["currency", "USD"], ["email", "kallie@huelsdickinson.com"], ["guest_token", "9bDOL8cngAc52fhB6TrCgg"], ["number", "R572375681"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:47.399404"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:31:47.413105"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-14 23:31:47.413105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 218599' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:31:47.417096"], ["description", "Ratione atque distinctio nihil sed."], ["name", "TaxCategory - 218599"], ["updated_at", "2014-11-14 23:31:47.417096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:31:47.420772"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:47.420772"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-1688' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-1688' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:47.411287"], ["created_at", "2014-11-14 23:31:47.424546"], ["description", "Quis nesciunt iste iusto nam ullam est. Eligendi consequatur soluta rem quasi quis odio ratione quam. Eius ab incidunt molestiae laborum necessitatibus non facilis sit. Consectetur quidem neque dicta unde quae aliquid quibusdam.\nVoluptas aut ut incidunt at ut voluptas rerum libero. Temporibus est possimus quos excepturi libero dolor et. Voluptatibus iste magni nobis aliquam quasi atque possimus ut. Quis earum tenetur ut in et.\nEst voluptas harum reprehenderit aliquam quod veritatis quam cupiditate. Vel et molestiae sequi qui iure. Id odio molestiae quam qui. Eum suscipit voluptate incidunt rerum et. Quasi molestiae consequatur non sed."], ["name", "Product #9 - 1688"], ["shipping_category_id", 1], ["slug", "product-9-1688"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.424546"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-14 23:31:47.426892"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.428996' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.430120' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.431383' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.431940' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:47.435337"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:47.435337"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.436288' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.436931' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.438288' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.438860' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.443079' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.444736' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.446009' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:47.449163"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.450281' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.451013' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.451814' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.452695' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.453421' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:47.459310"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.459310"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-1688' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.463644' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:47.468305' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.3ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-940' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-940' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:47.473047"], ["created_at", "2014-11-14 23:31:47.480375"], ["description", "Minus maxime praesentium sed ratione optio magni omnis. Sint assumenda est voluptatem asperiores. Pariatur qui rerum quod est ut. Vero esse quia ea molestiae suscipit."], ["name", "Product #10 - 940"], ["shipping_category_id", 1], ["slug", "product-10-940"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.480375"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-14 23:31:47.483763"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.486588' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.487726' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.489131' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.489834' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:47.493232"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:47.493232"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.494220' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.494764' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.496059' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.496539' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.500609' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.501292' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.501836' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:47.503505"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.504177' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.504645' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.505145' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.505712' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.506186' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:47.510791"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.510791"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-940' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.514915' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:47.520959' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:31:47.534487' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-14 23:31:47.545868"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-14 23:31:47.545868"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:47.551600' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.552219' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:47.556253"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:31:47.556253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:47.558430"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:31:47.558430"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'casimir@weimannrosenbaum.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141600790735710xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:47.561611"], ["email", "casimir@weimannrosenbaum.co.uk"], ["encrypted_password", "c8e4a332678f050e5174ea7480360e527fa584a8c6907f55bdc40a7cf62c98f2955518ce4d08aa7d2ffe51a3cc22088ca062f3cc6c6cc4d5d95cfb974041cebf"], ["login", "casimir@weimannrosenbaum.co.uk"], ["password_salt", "2jfn1U9DA-uP7WhkJCrK"], ["updated_at", "2014-11-14 23:31:47.561611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:47.564273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:47.565724"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:31:47.565724"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R993393116' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R993393116%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R993393116' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Q7jz3cVt2e4HizWU9dWR3g' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:31:47.570977"], ["currency", "USD"], ["email", "casimir@weimannrosenbaum.co.uk"], ["guest_token", "Q7jz3cVt2e4HizWU9dWR3g"], ["number", "R993393116"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:47.570977"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WZVVEJG3' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:31:47.573403"], ["identifier", "WZVVEJG3"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:31:47.573403"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.575629' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-504340' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-504340"], ["updated_at", "2014-11-14 23:31:47.576819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'riley.green@mitchell.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141600790715011xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:47.590182"], ["email", "riley.green@mitchell.us"], ["encrypted_password", "558d46b44ef8a2bacaf7bd78eda063995e0ca2324c3dbc97793843d7b424f32901ec2486909fe891730bdb0ef5821972d56915e446bdcbe6b926c5c394bb56f8"], ["login", "riley.green@mitchell.us"], ["password_salt", "SSFucRisVgagmYpZiUuo"], ["updated_at", "2014-11-14 23:31:47.590182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:47.595308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:47.597889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:47.600478"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:47.600478"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R727717626' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R727717626%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R727717626' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'pRbUsG2A4C9fXMLIBHPb1Q' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:31:47.607784"], ["currency", "USD"], ["email", "riley.green@mitchell.us"], ["guest_token", "pRbUsG2A4C9fXMLIBHPb1Q"], ["number", "R727717626"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:47.607784"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:31:47.615066"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-14 23:31:47.615066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 22201' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:31:47.617828"], ["description", "Optio atque possimus est aperiam provident odio."], ["name", "TaxCategory - 22201"], ["updated_at", "2014-11-14 23:31:47.617828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:31:47.621273"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:47.621273"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-2464' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-2464' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:47.613947"], ["created_at", "2014-11-14 23:31:47.625255"], ["description", "Non sed modi qui non nesciunt consequatur fugit. Eos eum nihil quis inventore tempora et. Non voluptatem suscipit voluptas voluptatum. Ut totam dolorum et et. Qui quibusdam exercitationem aut vel."], ["name", "Product #11 - 2464"], ["shipping_category_id", 1], ["slug", "product-11-2464"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.625255"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-14 23:31:47.627453"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.3ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.629401' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.632332' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.634984' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.636168' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:47.641681"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:47.641681"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.643081' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.643737' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.645119' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.645682' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.650232' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.650832' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.651375' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:47.653040"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.653723' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.654202' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.654761' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.655410' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.655877' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:47.661505"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.661505"], ["variant_id", 1]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-2464' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.669683' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:47.675510' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1793' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1793' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:47.680928"], ["created_at", "2014-11-14 23:31:47.684683"], ["description", "Natus quas laboriosam nostrum facilis. Quibusdam expedita odio iste facilis et. Cum sint commodi natus sed nulla at quas laboriosam. Qui autem quibusdam voluptatem dicta fugit voluptatum. Velit est error voluptatibus praesentium.\nNon odio non saepe ipsum veritatis nisi. Aut quis sed ut laborum inventore placeat. Corrupti ea dolorem ab quae maiores quia. Illo sunt aut velit iste distinctio voluptatibus."], ["name", "Product #12 - 1793"], ["shipping_category_id", 1], ["slug", "product-12-1793"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.684683"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-14 23:31:47.686769"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.688904' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.690054' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.691357' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.691947' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:47.695295"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:47.695295"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.696327' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.696891' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.698125' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.698636' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.702702' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.704246' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.705557' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:47.708533"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.709767' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.710582' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.711381' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.712295' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:47.713059' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:47.718640"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:47.718640"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1793' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.723117' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:47.728006' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:31:47.751740' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-14 23:31:47.753611"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-14 23:31:47.753611"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:47.756484' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.756997' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:47.760701"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:31:47.760701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:47.762818"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:31:47.762818"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'myah@powlowski.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141600790743112xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:47.765878"], ["email", "myah@powlowski.co.uk"], ["encrypted_password", "a447ffb77b10751febac30cfcb59a31c5f86600a9ee136bd139dd275efd1e09fad16dc2f5abbf34da2ff03beb80aedc55e7945b284c6b86b933f7029ef2bff8a"], ["login", "myah@powlowski.co.uk"], ["password_salt", "bWnpPvXaMMixrnx2Hnxq"], ["updated_at", "2014-11-14 23:31:47.765878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:47.768483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:47.769999"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:31:47.769999"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R829306385' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R829306385%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R829306385' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'j7wB4--p-CWCIj0F-ElbPg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:31:47.775719"], ["currency", "USD"], ["email", "myah@powlowski.co.uk"], ["guest_token", "j7wB4--p-CWCIj0F-ElbPg"], ["number", "R829306385"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:47.775719"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '8P2J7LTE' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:31:47.778206"], ["identifier", "8P2J7LTE"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:31:47.778206"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.780454' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-033012' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-033012"], ["updated_at", "2014-11-14 23:31:47.781641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'marlon_heaney@labadieklein.us' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079167141xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:56.094398"], ["email", "marlon_heaney@labadieklein.us"], ["encrypted_password", "3f7c0c986b28b78245127bfa6ff74b67fa65737eb03f284a73a2d1221f0b762b249c581db5fd65cad08a2b908659197d3896432e92294b6d56cf16eef6f5f6d5"], ["login", "marlon_heaney@labadieklein.us"], ["password_salt", "6V2zBEqNj8fjo-Ny9mrz"], ["updated_at", "2014-11-14 23:31:56.094398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:56.133103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:56.138985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:56.148732"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:56.148732"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R457940745' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R457940745%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R457940745' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Gr1OQuATG4xCeNjl3A7XVw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:31:56.186648"], ["currency", "USD"], ["email", "marlon_heaney@labadieklein.us"], ["guest_token", "Gr1OQuATG4xCeNjl3A7XVw"], ["number", "R457940745"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:56.186648"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:31:56.245871"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-14 23:31:56.245871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 563360' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:31:56.255803"], ["description", "Illum inventore veniam nostrum ratione aut est."], ["name", "TaxCategory - 563360"], ["updated_at", "2014-11-14 23:31:56.255803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:31:56.280315"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:56.280315"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-8874' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-8874' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:56.241722"], ["created_at", "2014-11-14 23:31:56.285709"], ["description", "Voluptatem dicta ipsam voluptates assumenda dolor inventore nobis. Commodi dignissimos officiis eaque facilis id reprehenderit. Maiores eos et eveniet dolorem labore sunt at sit.\nEt dicta dolorem labore quia. Deserunt maiores voluptas distinctio quas quae non explicabo. Quos ut magni voluptatem aliquam est enim facilis.\nConsectetur nisi molestias quae dolore accusantium. Ullam natus atque tempore eligendi quis quae. Quas ad aperiam reprehenderit vel vero.\nQuos sapiente ea impedit consequatur ducimus velit voluptatem adipisci. Tempora vitae blanditiis neque explicabo quo. Neque nisi ipsa dolor reiciendis. Adipisci ad accusamus beatae libero dolores voluptas.\nPossimus dolores autem perspiciatis dicta itaque. Ut sapiente hic tempora omnis qui. Qui molestiae voluptas architecto est."], ["name", "Product #1 - 8874"], ["shipping_category_id", 1], ["slug", "product-1-8874"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:56.285709"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-14 23:31:56.288375"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.295661' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.296971' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.316330' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.317576' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:56.420660"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:56.420660"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.421896' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.422506' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.423716' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.424214' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.435027' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.435663' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.436219' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:56.437908"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.439066' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.439546' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.440014' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.440594' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.441098' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:56.459311"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:56.459311"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-8874' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.467435' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:56.480342' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-7108' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-7108' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:56.485920"], ["created_at", "2014-11-14 23:31:56.489795"], ["description", "Et omnis quo et est in voluptas odit aut. Neque architecto sed ipsum corporis sed aut. Illo quaerat eius recusandae molestiae eos rem quam maiores. Est asperiores suscipit beatae est hic et dolores."], ["name", "Product #2 - 7108"], ["shipping_category_id", 1], ["slug", "product-2-7108"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:56.489795"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-14 23:31:56.492213"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.494358' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.495442' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.496679' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.497217' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:56.500709"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:56.500709"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.501657' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.502165' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.503314' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.503802' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.507703' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.508211' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.508711' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:56.510422"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.511207' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.511729' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.512233' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.512821' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.513298' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:56.518143"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:56.518143"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-7108' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.522378' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:56.527100' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:31:56.543898' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:56.569816"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:31:56.569816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:56.587112"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:31:56.587112"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jimmy@hartmannkoepp.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079166082xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:56.593393"], ["email", "jimmy@hartmannkoepp.name"], ["encrypted_password", "e90c08aecc5c49f6d52a14aaed8603a894e96e1a2bb04e5c11db2be09a4599f30600d54f8d6a21c7d9ee1cfbaf3d00516103fde129bd5085535ce317d9823475"], ["login", "jimmy@hartmannkoepp.name"], ["password_salt", "zZGy8sgpDDeGuyDPgeyE"], ["updated_at", "2014-11-14 23:31:56.593393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:56.597230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:56.599046"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:31:56.599046"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R015293411' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R015293411%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R015293411' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LBCTudKw0ny3SSrVqk9uKg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:31:56.605637"], ["currency", "USD"], ["email", "jimmy@hartmannkoepp.name"], ["guest_token", "LBCTudKw0ny3SSrVqk9uKg"], ["number", "R015293411"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:56.605637"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'PQA2F5GD' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:31:56.618737"], ["identifier", "PQA2F5GD"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:31:56.618737"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.622060' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-534251' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-534251"], ["updated_at", "2014-11-14 23:31:56.623486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'laurie.gislason@zulaufdonnelly.info' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079161283xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:56.643368"], ["email", "laurie.gislason@zulaufdonnelly.info"], ["encrypted_password", "f79633c9911196811ba21b3eb20545d1c9839e5813e4d6c51c5b3bcf6e3682fda4c35811f51b18fe20366e099f415c2c1cd206804e536233d353406d1e5830b8"], ["login", "laurie.gislason@zulaufdonnelly.info"], ["password_salt", "v-QPHVwrYKexpZBEmUva"], ["updated_at", "2014-11-14 23:31:56.643368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:56.647356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:56.650029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:56.652187"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:56.652187"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R970987581' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R970987581%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R970987581' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'mFBWywME_Jcv9qPFRJPY9g' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:31:56.659560"], ["currency", "USD"], ["email", "laurie.gislason@zulaufdonnelly.info"], ["guest_token", "mFBWywME_Jcv9qPFRJPY9g"], ["number", "R970987581"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:56.659560"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:31:56.671069"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-14 23:31:56.671069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 130766' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:31:56.673855"], ["description", "Officia autem harum aspernatur officiis dolor mollitia doloribus."], ["name", "TaxCategory - 130766"], ["updated_at", "2014-11-14 23:31:56.673855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:31:56.678117"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:56.678117"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-3090' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-3090' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:56.669639"], ["created_at", "2014-11-14 23:31:56.682209"], ["description", "Repellat deleniti maxime reiciendis accusantium. Doloribus eos fuga voluptatem qui tenetur veniam magni nesciunt. Sed mollitia magni quo repellendus tempore ut.\nHic velit enim accusantium dolore consequatur. Quia illo consequatur magnam molestiae. Eum quo odit ad odio in voluptatibus."], ["name", "Product #3 - 3090"], ["shipping_category_id", 1], ["slug", "product-3-3090"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:56.682209"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-14 23:31:56.684621"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.686856' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.688007' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.689333' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.689916' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:56.693785"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:56.693785"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.695192' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.695921' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.697245' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.697801' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.702538' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.703209' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.703809' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:56.705704"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.706502' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.707041' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.707557' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.708244' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.708737' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:56.716056"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:56.716056"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-3090' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.721468' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:56.727285' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-6202' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-6202' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:56.734929"], ["created_at", "2014-11-14 23:31:56.738871"], ["description", "Quod quia ut quas in voluptates minus. Aut optio amet nesciunt nihil natus quia ut nemo. Voluptatibus iure et commodi id dolor qui eaque rerum.\nMinima eligendi tempore perspiciatis consectetur officiis itaque accusamus vero. Animi illo ut omnis aut modi delectus. Nihil perspiciatis vel est voluptas qui distinctio. Natus exercitationem quia labore quis et. Officiis voluptatibus aut nihil porro voluptatem.\nExplicabo sunt adipisci qui dignissimos est nam consequatur. Sint est ab accusamus dolore doloribus. Sit quasi architecto blanditiis et aliquam. Autem maiores sed ratione itaque nostrum. Dolores velit qui sit aut ullam ut.\nCulpa error fuga earum est rerum. Est odio sit eum eos ut. Necessitatibus odio omnis vel cupiditate molestiae. Expedita quas molestiae enim praesentium ut.\nQuia error dicta ut expedita animi. Quaerat optio sunt quos non qui. Fuga occaecati qui et placeat nesciunt architecto cum."], ["name", "Product #4 - 6202"], ["shipping_category_id", 1], ["slug", "product-4-6202"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:56.738871"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-14 23:31:56.741109"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.743228' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.744621' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.746147' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.746749' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:56.750280"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:56.750280"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.751328' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.751886' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.753056' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.753543' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.757574' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.758275' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.758841' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:56.760759"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.761649' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.762190' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.762706' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.763327' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.763768' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:56.768391"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:56.768391"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-6202' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.772258' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:56.777506' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:31:56.786768' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:56.790329"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:31:56.790329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:56.792400"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:31:56.792400"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'linwood_borer@jast.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079166324xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:56.795735"], ["email", "linwood_borer@jast.ca"], ["encrypted_password", "1b83261d76123965699ebc6657274a218d23d06ab7bf8c9cd6e1f0bdc9a3025ef3021b2fd0fb267a8236c4557307747a2d6439395c8f3ea0700fa3d37105e74d"], ["login", "linwood_borer@jast.ca"], ["password_salt", "ADsRXeKzRHG9y54KQFvZ"], ["updated_at", "2014-11-14 23:31:56.795735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:56.798358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:56.799711"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:31:56.799711"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R123347630' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R123347630%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R123347630' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '5_bZbYiT4txpBM4D_dEELg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:31:56.804914"], ["currency", "USD"], ["email", "linwood_borer@jast.ca"], ["guest_token", "5_bZbYiT4txpBM4D_dEELg"], ["number", "R123347630"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:56.804914"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'B6TXFCJ5' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:31:56.807261"], ["identifier", "B6TXFCJ5"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:31:56.807261"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.809496' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-555223' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-555223"], ["updated_at", "2014-11-14 23:31:56.810989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'penelope@runolfsdottirkassulke.ca' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079161395xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:56.828268"], ["email", "penelope@runolfsdottirkassulke.ca"], ["encrypted_password", "26629528d01b98fffd38b2859d931de56a15e8d3e3a642d3cbffebd7aa547bfab263687686b3b6e1641b5c9affc9f06a99fccbb456b58469619f8a4a004016ca"], ["login", "penelope@runolfsdottirkassulke.ca"], ["password_salt", "NYk4G31zeWxryTRzyy3J"], ["updated_at", "2014-11-14 23:31:56.828268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:56.833223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:56.834797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:56.836357"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:56.836357"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R805169039' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R805169039%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R805169039' LIMIT 1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '7zd_lBnNq_A_mZkt8PdrwQ' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:31:56.844287"], ["currency", "USD"], ["email", "penelope@runolfsdottirkassulke.ca"], ["guest_token", "7zd_lBnNq_A_mZkt8PdrwQ"], ["number", "R805169039"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:56.844287"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:31:56.857740"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-14 23:31:56.857740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 621459' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:31:56.860619"], ["description", "Magnam asperiores adipisci quas dolorem et ad accusantium sapiente."], ["name", "TaxCategory - 621459"], ["updated_at", "2014-11-14 23:31:56.860619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:31:56.863929"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:56.863929"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-7035' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-7035' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:56.856687"], ["created_at", "2014-11-14 23:31:56.867549"], ["description", "Culpa aut cumque similique eum. Placeat numquam non rerum repellat quidem saepe. Ut nulla id consectetur ullam ut laboriosam soluta ut. Provident ipsam rem adipisci qui.\nQuis explicabo accusamus sed praesentium. Et rerum eum modi maiores qui eius et qui. Voluptate eos itaque consequatur qui. Quaerat ipsum harum et et id.\nEsse voluptatem dolor dolores id. Officia reprehenderit qui accusantium aliquam impedit recusandae sit. Ut nam enim velit fugit. Autem eveniet blanditiis est eaque dolorem similique.\nDolorem sapiente sed nobis recusandae ipsum ut incidunt debitis. Et molestias impedit est quibusdam minus nemo dolorem. Qui omnis sint ipsam aut sed hic est mollitia. Corrupti modi magnam et tempora. Alias ut facere fugit fugiat eaque."], ["name", "Product #5 - 7035"], ["shipping_category_id", 1], ["slug", "product-5-7035"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:56.867549"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-14 23:31:56.869773"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.871742' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.872904' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.874219' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.874770' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:56.878101"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:56.878101"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.879028' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.879553' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.880627' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.881110' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.885054' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.885559' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.886045' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:56.887733"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.888450' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.888963' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.889473' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.890081' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.890559' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:56.895307"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:56.895307"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-7035' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.899344' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:56.903669' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9932' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9932' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:56.927840"], ["created_at", "2014-11-14 23:31:56.931976"], ["description", "Eaque voluptas vel odit vero et neque amet error. Facere dignissimos sunt id quia numquam libero. Possimus repellat culpa deserunt quos. Vitae incidunt in fuga accusamus occaecati aut et.\nDolorem sit dicta minus velit eum necessitatibus. Et qui et tempore aliquid. Aut molestias aut vel voluptatem quia."], ["name", "Product #6 - 9932"], ["shipping_category_id", 1], ["slug", "product-6-9932"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:56.931976"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-14 23:31:56.934200"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.936378' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.937523' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.938781' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.939324' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:56.942590"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:56.942590"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.943576' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.944133' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.945252' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.945736' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.949522' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.950057' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.950588' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:56.952388"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.953154' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.953677' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.954230' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.954861' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:56.955366' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:56.960223"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:56.960223"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9932' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.964363' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:56.968961' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:31:56.978005' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:56.981882"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:31:56.981882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:56.984087"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:31:56.984087"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'raphaelle@mosciski.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079163006xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:56.987063"], ["email", "raphaelle@mosciski.com"], ["encrypted_password", "c926525fbbc7c3a135fbfaf116a04989e668a9a82a0ab752c99ffc55edd16e16870c3a1903b9c2467db37149b5273b57df31b04e5026b27f07806e9c39b7b65c"], ["login", "raphaelle@mosciski.com"], ["password_salt", "bfbTBp4Dc4fmWabi-xu4"], ["updated_at", "2014-11-14 23:31:56.987063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:56.989630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:56.990996"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:31:56.990996"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R958037401' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R958037401%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R958037401' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'OJX8xrObeORgAloKnaLmaA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:31:56.996133"], ["currency", "USD"], ["email", "raphaelle@mosciski.com"], ["guest_token", "OJX8xrObeORgAloKnaLmaA"], ["number", "R958037401"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:56.996133"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'Z4BMXVQQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:31:56.998570"], ["identifier", "Z4BMXVQQ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:31:56.998570"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.000866' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-414452' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-414452"], ["updated_at", "2014-11-14 23:31:57.002064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'angelina_ohara@block.co.uk' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079178967xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:57.014819"], ["email", "angelina_ohara@block.co.uk"], ["encrypted_password", "f6c60beafbe8c11e0c57a67aed40863a73da6ca8e462acc483854a9e79894427ae060b0ffe18ba31a2ff88f7c57a7937be8ae6349c7ae96a4a44389b329df3b5"], ["login", "angelina_ohara@block.co.uk"], ["password_salt", "LbZxUnfVnWFUtVMfDrpM"], ["updated_at", "2014-11-14 23:31:57.014819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:57.017907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:57.019317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:57.020852"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:57.020852"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R426936408' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R426936408%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R426936408' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '8h8IXICp30-cAMqH7kbHwQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:31:57.026366"], ["currency", "USD"], ["email", "angelina_ohara@block.co.uk"], ["guest_token", "8h8IXICp30-cAMqH7kbHwQ"], ["number", "R426936408"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:57.026366"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:31:57.033485"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-14 23:31:57.033485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 628638' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:31:57.036152"], ["description", "Labore et et est dolorem quis dolorem porro."], ["name", "TaxCategory - 628638"], ["updated_at", "2014-11-14 23:31:57.036152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:31:57.039397"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:57.039397"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-6971' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-6971' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:57.032274"], ["created_at", "2014-11-14 23:31:57.042942"], ["description", "Maiores earum sed ab sit consequatur nesciunt voluptates facilis. Sunt doloribus corrupti consectetur molestiae earum a. Omnis iusto at eos nisi sit earum sapiente. Autem enim dolor dolorem placeat illum sequi reiciendis."], ["name", "Product #7 - 6971"], ["shipping_category_id", 1], ["slug", "product-7-6971"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:57.042942"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-14 23:31:57.045128"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.048660' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.051098' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.053581' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.054510' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:57.059531"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:57.059531"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.060530' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.061147' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.062315' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.062832' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.067618' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.069060' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.070118' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:57.073161"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.074198' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.074935' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.075721' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.076618' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.077849' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:57.087179"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:57.087179"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-6971' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.093540' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:57.098390' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-2497' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-2497' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:57.103852"], ["created_at", "2014-11-14 23:31:57.107500"], ["description", "Distinctio in similique architecto et. Accusamus numquam quia exercitationem ea quisquam. Repudiandae voluptatem at vero placeat distinctio qui nisi ex. Aliquid incidunt totam eos error nulla consequatur.\nExcepturi natus illo id quo quia ut. Sunt itaque cum culpa illum quidem. Officia modi autem ea occaecati atque quaerat quis iure.\nQui culpa cumque et provident dolores. Odio est aliquam quam quod. Est culpa minima illum sit corrupti voluptas. Velit qui eum nobis aspernatur voluptatem quos officia at."], ["name", "Product #8 - 2497"], ["shipping_category_id", 1], ["slug", "product-8-2497"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:57.107500"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-14 23:31:57.109524"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.111455' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.112506' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.113843' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.114400' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:57.118059"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:57.118059"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.119077' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.119653' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.120744' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.121220' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.124998' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.125530' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.126090' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:57.127913"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.128613' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.129100' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.129582' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.130171' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.130615' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:57.135325"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:57.135325"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-2497' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.139632' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:57.144157' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:31:57.152859' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:57.156673"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:31:57.156673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:57.158790"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:31:57.158790"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nathaniel.wyman@marks.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079178438xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:57.161949"], ["email", "nathaniel.wyman@marks.ca"], ["encrypted_password", "2c417fc886cd16cbcddabb61dcd0720c1c8c28eb962813215ec0894c3883e01bf417cae55f3cd04b40a9739017c51058dc2c7665a5e73b3d0dd9738c5fe0ff5a"], ["login", "nathaniel.wyman@marks.ca"], ["password_salt", "ifoTKvRgofyhifL39cfS"], ["updated_at", "2014-11-14 23:31:57.161949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:57.164628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:57.166023"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:31:57.166023"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R857699617' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R857699617%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R857699617' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ADP4hC8gwgAiXKTi2q0BYA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:31:57.171204"], ["currency", "USD"], ["email", "nathaniel.wyman@marks.ca"], ["guest_token", "ADP4hC8gwgAiXKTi2q0BYA"], ["number", "R857699617"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:57.171204"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7K6NSBLE' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:31:57.173604"], ["identifier", "7K6NSBLE"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:31:57.173604"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.175833' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-305033' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-305033"], ["updated_at", "2014-11-14 23:31:57.177102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'wellington@vandervort.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160079175239xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:57.194451"], ["email", "wellington@vandervort.name"], ["encrypted_password", "aa0d3ab9e9c9ac12ed4910aad9901560ee6233c2abbbe07a418ad7da0b99801fe6b273dd895cb1c5c124bf135db55e00a1fe316aeac5bfdfc2cd0bc12360718a"], ["login", "wellington@vandervort.name"], ["password_salt", "nT7czescjEPXwatyJZSC"], ["updated_at", "2014-11-14 23:31:57.194451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:57.198767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:57.200045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:57.201448"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:57.201448"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R955386740' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R955386740%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R955386740' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'pajyQigYXcI_4jHRkJ3EhA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:31:57.207048"], ["currency", "USD"], ["email", "wellington@vandervort.name"], ["guest_token", "pajyQigYXcI_4jHRkJ3EhA"], ["number", "R955386740"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:57.207048"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:31:57.216422"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-14 23:31:57.216422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 248887' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:31:57.219320"], ["description", "Qui impedit hic officia nisi non accusantium iusto veniam."], ["name", "TaxCategory - 248887"], ["updated_at", "2014-11-14 23:31:57.219320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:31:57.222872"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:57.222872"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-6785' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-6785' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:57.215164"], ["created_at", "2014-11-14 23:31:57.229491"], ["description", "Enim ipsa cumque rem et ea vero et dolore. Nesciunt molestiae omnis commodi nobis. Quae consequatur error dolorum tempore sed ut. Blanditiis atque necessitatibus itaque omnis accusamus ab molestias.\nVel ea rerum laborum quia corporis veniam nemo recusandae. Quod quia rerum non consectetur. Impedit enim mollitia magni blanditiis et itaque voluptas. Autem dicta quia deserunt voluptatem consequatur maiores odio cum.\nMolestiae a non nihil et magni. Atque temporibus vel et facilis ea dicta odit ut. Culpa incidunt ipsa architecto eum ratione. Maxime sunt sint sit aut nemo ut voluptate eos. Itaque hic officia tempora recusandae et.\nAb placeat quasi quo sapiente id. Nam alias sequi voluptate impedit eligendi. Consectetur dolorem ad totam eos perspiciatis.\nId id et repellat autem. Animi rerum quia rerum vero. Sapiente est cum perspiciatis ea."], ["name", "Product #9 - 6785"], ["shipping_category_id", 1], ["slug", "product-9-6785"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:57.229491"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-14 23:31:57.233285"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.236247' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.237501' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.238788' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.239411' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:57.242811"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:57.242811"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.243744' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.244302' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.245468' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.245965' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.250541' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.252187' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.253495' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:57.256786"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.257920' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.258714' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.259498' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.260453' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.261219' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:57.266658"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:57.266658"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-6785' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.271222' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:57.275815' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-9545' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-9545' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:57.282440"], ["created_at", "2014-11-14 23:31:57.286250"], ["description", "Quis magni unde et provident corporis aperiam. Quis fugit adipisci architecto dolor. Esse saepe id ab voluptates officiis qui deserunt. Ab et voluptate sunt explicabo perferendis sed. Vel repellendus non deserunt et laboriosam inventore reiciendis.\nOptio occaecati mollitia molestias eos. Magni commodi eveniet corrupti ducimus fugit expedita aut. Aut iste voluptas a rem architecto deserunt. Dolor itaque voluptates quia error nam dolores.\nVeritatis dolorem incidunt amet aut et. Ratione est in perspiciatis sunt. Sint illum mollitia dignissimos explicabo est. Est veniam assumenda soluta optio animi. Blanditiis iste voluptatem ut nemo commodi.\nRatione quo reprehenderit culpa eius est qui. Sed rerum qui fugit aspernatur odit illum dicta. Voluptates et iusto qui autem."], ["name", "Product #10 - 9545"], ["shipping_category_id", 1], ["slug", "product-10-9545"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:57.286250"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-14 23:31:57.288381"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.290330' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.291488' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.292840' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.293394' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:57.299183"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:57.299183"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.301110' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.302177' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.304019' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.304837' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.310989' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.311746' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.312348' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:57.314179"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.314877' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.315357' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.315949' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.316584' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.317057' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:57.322348"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:57.322348"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-9545' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.326914' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:57.331316' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:31:57.340388' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-14 23:31:57.352440"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-14 23:31:57.352440"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:57.356248' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.356839' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:57.360791"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:31:57.360791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:57.362805"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:31:57.362805"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rosanna@bayerkuhlman.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141600791768310xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:57.365867"], ["email", "rosanna@bayerkuhlman.biz"], ["encrypted_password", "60271a32c93d69d49afe8d7e01bf1da336d549bf8bdb9766105077dbb44a3e09ecbe01424c29d3d3ea4a3ff609b179a764eb3781aa4b57a66f5437e6bac2106d"], ["login", "rosanna@bayerkuhlman.biz"], ["password_salt", "PVh1Ux3siea1sHoAX8aR"], ["updated_at", "2014-11-14 23:31:57.365867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:57.368452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:57.369925"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:31:57.369925"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R218426451' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R218426451%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R218426451' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '87c_EzB7UAugvAvr3JCOmA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:31:57.375372"], ["currency", "USD"], ["email", "rosanna@bayerkuhlman.biz"], ["guest_token", "87c_EzB7UAugvAvr3JCOmA"], ["number", "R218426451"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:57.375372"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'JTFAHYJB' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:31:57.377791"], ["identifier", "JTFAHYJB"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:31:57.377791"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.380037' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-110254' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-110254"], ["updated_at", "2014-11-14 23:31:57.381321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mona@doyle.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141600791752911xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:57.399165"], ["email", "mona@doyle.biz"], ["encrypted_password", "9a09940b5f7df4c1194bbe342a7efa58b955e617ed65e14e4b81e8c7f1b1c1fba378992b79754aba118965a6463e540b5389a2982dab752449e2185a89a9b26b"], ["login", "mona@doyle.biz"], ["password_salt", "Z6kygkBY9HNQefzSCy-X"], ["updated_at", "2014-11-14 23:31:57.399165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:57.402301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:57.403749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:57.405229"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:57.405229"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R163046636' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R163046636%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R163046636' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hzO2nzCPYoJtkvIs2ppj_A' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:31:57.410999"], ["currency", "USD"], ["email", "mona@doyle.biz"], ["guest_token", "hzO2nzCPYoJtkvIs2ppj_A"], ["number", "R163046636"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:57.410999"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:31:57.420499"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-14 23:31:57.420499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 37132' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:31:57.423365"], ["description", "Expedita maxime hic voluptatem autem quis qui sint quasi."], ["name", "TaxCategory - 37132"], ["updated_at", "2014-11-14 23:31:57.423365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:31:57.426664"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:31:57.426664"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-3995' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-3995' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:57.419324"], ["created_at", "2014-11-14 23:31:57.445098"], ["description", "Quia illum fugit facilis hic est veniam voluptatem culpa. Aspernatur odio asperiores ut eius. Voluptas nihil rerum maiores a labore ut.\nEligendi dolore aliquam et pariatur. Beatae soluta sit sed tempora alias velit expedita officia. Voluptatem nobis omnis laborum corporis aut. Nam aut nesciunt neque est. Sed totam animi sit fuga a.\nNon voluptatibus velit atque molestiae officia nihil. Esse nisi voluptatem adipisci labore consequuntur ea. Repellat accusamus recusandae quod aspernatur maxime. Odit harum eos saepe dolores.\nVoluptas error omnis porro facilis. Magni harum fugiat deleniti adipisci rerum quod. Reiciendis sequi recusandae non id reprehenderit sapiente. Voluptatem eligendi aspernatur cum voluptatibus. Fugit accusantium ipsam itaque temporibus dolores sed pariatur eos."], ["name", "Product #11 - 3995"], ["shipping_category_id", 1], ["slug", "product-11-3995"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:57.445098"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-14 23:31:57.447529"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.449660' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.450821' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.452155' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.452735' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:57.456318"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:57.456318"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.457319' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.457893' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.459057' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.459540' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.463463' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.463962' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.464854' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:57.468780"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.470170' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.471071' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.471874' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.472802' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.473540' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:57.479652"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:57.479652"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-3995' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.484048' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:57.488789' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-3606' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-3606' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:31:57.494387"], ["created_at", "2014-11-14 23:31:57.498123"], ["description", "Voluptatem quis sit ipsum nostrum dolorem ipsam consequatur. Necessitatibus voluptatem aliquam a vitae rerum dolores hic. Impedit consequuntur possimus non qui ut ipsam vero quis.\nEius laboriosam tempore architecto aspernatur recusandae non ut dicta. Cumque aliquam reiciendis corrupti laudantium et est. Dicta libero aut officia iste. Corporis temporibus quod nihil quasi id. Velit velit accusamus quaerat dolores enim dolorem.\nSit quas officiis magnam nemo animi cum eligendi consequatur. In et tempore dolorem quae. Est porro sed repudiandae mollitia. Temporibus ut aut commodi laudantium repellendus quis praesentium."], ["name", "Product #12 - 3606"], ["shipping_category_id", 1], ["slug", "product-12-3606"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:57.498123"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-14 23:31:57.500298"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.502293' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.503358' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.504613' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.505195' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:31:57.508543"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:31:57.508543"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.509540' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.510090' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.511262' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.511777' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.516282' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.517803' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.518965' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:31:57.522139"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.523249' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.524009' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.524808' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.525705' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:31:57.526356' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:31:57.532167"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:31:57.532167"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-3606' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.538227' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:57.543572' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:31:57.553290' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-14 23:31:57.555099"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-14 23:31:57.555099"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:31:57.557990' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.558543' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:57.562255"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:31:57.562255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:31:57.564299"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:31:57.564299"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cristobal_reilly@lednerabernathy.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141600791731912xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:31:57.567304"], ["email", "cristobal_reilly@lednerabernathy.co.uk"], ["encrypted_password", "65085eff25f227c6f20c562f8974c62fa1c2f2d2db049abed0059e50829f3d77a741cbbb7e1ef5433ea925853d29d7c1c2791e9864f360397f372c52111a9820"], ["login", "cristobal_reilly@lednerabernathy.co.uk"], ["password_salt", "x11sV4M1nGT5RDFz22E1"], ["updated_at", "2014-11-14 23:31:57.567304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:57.569848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:31:57.571300"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:31:57.571300"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R461082212' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R461082212%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R461082212' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'JB6SwzkNJHVYlPsQMmqOPg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:31:57.576602"], ["currency", "USD"], ["email", "cristobal_reilly@lednerabernathy.co.uk"], ["guest_token", "JB6SwzkNJHVYlPsQMmqOPg"], ["number", "R461082212"], ["state", "cart"], ["updated_at", "2014-11-14 23:31:57.576602"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '5JVESKES' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:31:57.578975"], ["identifier", "5JVESKES"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:31:57.578975"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.581192' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-500405' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-500405"], ["updated_at", "2014-11-14 23:31:57.582369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'emmanuel_beer@cummerata.biz' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160080673681xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:34:27.201187"], ["email", "emmanuel_beer@cummerata.biz"], ["encrypted_password", "3a3698a7cb1b27949b14aabd0d9736acf9f86d26982282fa8e7e64b83cd171611818e5f175d5cde102488bd4d9c6201d522675a1cb5f4b3aae44e047a7fc9de9"], ["login", "emmanuel_beer@cummerata.biz"], ["password_salt", "w94VctsRGMsFRx62CtWN"], ["updated_at", "2014-11-14 23:34:27.201187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:34:27.237359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:27.245313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:34:27.253673"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:34:27.253673"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R501902028' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R501902028%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R501902028' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'UPNoDNlz94Fs3FA44-DYig' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:34:27.292514"], ["currency", "USD"], ["email", "emmanuel_beer@cummerata.biz"], ["guest_token", "UPNoDNlz94Fs3FA44-DYig"], ["number", "R501902028"], ["state", "cart"], ["updated_at", "2014-11-14 23:34:27.292514"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:34:27.352257"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-14 23:34:27.352257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 222156' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:34:27.361846"], ["description", "Sed nihil numquam hic quod cumque inventore odit tempora."], ["name", "TaxCategory - 222156"], ["updated_at", "2014-11-14 23:34:27.361846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:34:27.384272"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:34:27.384272"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-9109' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-9109' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:34:27.346720"], ["created_at", "2014-11-14 23:34:27.389548"], ["description", "Omnis earum dolorem amet vitae qui neque nisi ipsa. Optio qui quia dolores earum nihil tempore. Vel blanditiis autem debitis velit.\nAlias et quia aut quae perspiciatis. Et officiis repudiandae velit adipisci id quae. Voluptas natus magnam ut nostrum sunt minus possimus adipisci. Dolor omnis illum architecto et nam asperiores culpa consequatur. Dolor omnis fugiat laboriosam ab debitis.\nAt reprehenderit et maxime ea. Molestiae ad assumenda facilis dolorem. Dicta sit ab tempore iure rerum laudantium enim delectus.\nCum impedit omnis nesciunt pariatur beatae consequatur consequatur. Illo qui iste earum libero sit quia sit saepe. Fugiat non expedita ut ipsam."], ["name", "Product #1 - 9109"], ["shipping_category_id", 1], ["slug", "product-1-9109"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:27.389548"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-14 23:34:27.392396"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.399579' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.400874' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.414600' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.415858' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:34:27.518271"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:34:27.518271"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.519497' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.520100' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.521296' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.521789' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.2ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.532899' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.533650' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.534258' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:34:27.536548"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.538504' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.539311' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.540065' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.540904' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.541501' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:34:27.558783"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:27.558783"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-9109' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.568294' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:27.579073' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-3409' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-3409' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:34:27.587789"], ["created_at", "2014-11-14 23:34:27.592036"], ["description", "Fugit accusantium quaerat dolore culpa. Eos doloremque in blanditiis pariatur fugit voluptate. Dolor non illum sed et praesentium laudantium dolorum.\nHarum quis optio tenetur cum ipsam quis officia itaque. Distinctio vitae commodi repudiandae molestiae asperiores quia labore voluptatum. Aperiam quam velit cumque deserunt. Sunt recusandae id nihil nam accusantium deleniti. Quam nam expedita incidunt placeat voluptatum.\nAliquid ut voluptate soluta voluptatibus velit et. Sapiente doloribus officiis non omnis. Eligendi molestiae dolor iste officiis neque tempore repellendus. Consectetur nam distinctio nulla culpa ad laboriosam.\nNulla voluptatem aut quasi accusantium adipisci. Eveniet dolorem aut veniam eligendi. Et architecto necessitatibus accusantium quia. Atque dolorem ad et commodi ducimus consequuntur.\nNihil quae quod error libero delectus enim veritatis cupiditate. Temporibus cupiditate ullam sit optio ducimus quia. Ad aut numquam ipsum voluptas explicabo qui. Fugit modi sint non earum adipisci omnis. Occaecati similique aliquam et ad quo esse ut."], ["name", "Product #2 - 3409"], ["shipping_category_id", 1], ["slug", "product-2-3409"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:27.592036"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-14 23:34:27.594291"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.596920' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.598390' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.599767' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.600386' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:34:27.604477"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:34:27.604477"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.605623' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.606261' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.607677' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.608337' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.613050' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.613814' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.614445' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:34:27.616377"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.617216' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.617733' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.618237' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.618859' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.619328' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:34:27.624426"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:27.624426"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-3409' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.628726' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:27.633000' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.3ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:34:27.654984' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:34:27.678782"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:34:27.678782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:34:27.692154"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:34:27.692154"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'patricia_rau@cummingsvandervort.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160080672122xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:34:27.696857"], ["email", "patricia_rau@cummingsvandervort.info"], ["encrypted_password", "f844f082314f7df8e1d84c25d42a463a4d11be9cce306c75f59f3a51509f0578b8cc81651838ff970fd6f0268f110dca0c5b1fb25b61777ff7f20a10313a8cb0"], ["login", "patricia_rau@cummingsvandervort.info"], ["password_salt", "Yo3QzDZK_CMzDCGZNZ_E"], ["updated_at", "2014-11-14 23:34:27.696857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:27.699581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:34:27.700985"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:34:27.700985"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R309903633' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R309903633%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R309903633' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '_QNvPJUFs7RW84B0tN5Y0A' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:34:27.706177"], ["currency", "USD"], ["email", "patricia_rau@cummingsvandervort.info"], ["guest_token", "_QNvPJUFs7RW84B0tN5Y0A"], ["number", "R309903633"], ["state", "cart"], ["updated_at", "2014-11-14 23:34:27.706177"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'EW324WAA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:34:27.718699"], ["identifier", "EW324WAA"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:34:27.718699"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.721797' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-303545' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-303545"], ["updated_at", "2014-11-14 23:34:27.723147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'allene.graham@wildermanoga.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160080679163xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:34:27.739803"], ["email", "allene.graham@wildermanoga.ca"], ["encrypted_password", "c518858b95c2a1b42706f7997dbc985d8aba6350cd455b6b19f97a462dd39e89251254a1577dbb865dc72a761978bb92f738b6d9eb8744d06a5349a2f2922c9b"], ["login", "allene.graham@wildermanoga.ca"], ["password_salt", "zota_wdWmkmBcDXN1xes"], ["updated_at", "2014-11-14 23:34:27.739803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:34:27.743063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:27.744623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:34:27.746138"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:34:27.746138"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R149435140' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R149435140%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R149435140' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'qkHZaFP2Ly1qLiDF8r8FGw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:34:27.751951"], ["currency", "USD"], ["email", "allene.graham@wildermanoga.ca"], ["guest_token", "qkHZaFP2Ly1qLiDF8r8FGw"], ["number", "R149435140"], ["state", "cart"], ["updated_at", "2014-11-14 23:34:27.751951"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:34:27.760201"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-14 23:34:27.760201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 306567' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:34:27.763064"], ["description", "Asperiores quia et at fugiat nostrum autem et."], ["name", "TaxCategory - 306567"], ["updated_at", "2014-11-14 23:34:27.763064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:34:27.766350"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:34:27.766350"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-3690' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-3690' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:34:27.758856"], ["created_at", "2014-11-14 23:34:27.769877"], ["description", "At error fugiat voluptatem voluptatibus. Praesentium voluptates pariatur magni optio perspiciatis sit odio repellat. Deleniti aut tenetur et veniam. At velit dolor non reiciendis inventore. Ut voluptatum fuga laboriosam aut eaque quibusdam dolorem.\nLaboriosam laudantium praesentium sunt repellat qui voluptas non id. Aut molestiae aut exercitationem vel ipsa voluptatem. Sit et voluptatem quisquam distinctio quibusdam. Qui pariatur sit quos accusamus qui possimus."], ["name", "Product #3 - 3690"], ["shipping_category_id", 1], ["slug", "product-3-3690"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:27.769877"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-14 23:34:27.772117"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.774250' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.775501' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.777070' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.777730' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:34:27.781326"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:34:27.781326"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.782281' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.782826' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.783926' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.784387' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.788170' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.788694' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.789172' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:34:27.791023"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.791755' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.792273' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.792774' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.793380' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.793852' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:34:27.798630"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:27.798630"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-3690' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.802776' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:27.811505' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-9282' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-9282' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:34:27.818633"], ["created_at", "2014-11-14 23:34:27.822288"], ["description", "Voluptates officiis quas officia eaque necessitatibus dolore. Dolorem placeat beatae debitis iure similique. Corrupti eum voluptatem et recusandae harum totam error similique.\nArchitecto labore et dolorem quo. Consectetur iure odio autem id quam unde aut et. Ipsam cupiditate est debitis ex dolor quos dolor ratione. Optio qui ut totam architecto officiis.\nVeniam autem a commodi cupiditate et quod. Harum quis quidem non omnis magni accusamus ut praesentium. Eos ut recusandae nemo facilis. Quia reprehenderit culpa libero est ut maiores nisi vel. Eligendi tenetur earum numquam voluptas."], ["name", "Product #4 - 9282"], ["shipping_category_id", 1], ["slug", "product-4-9282"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:27.822288"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-14 23:34:27.824484"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.826575' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.827621' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.828791' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.829306' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:34:27.832557"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:34:27.832557"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.833485' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.833992' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.835053' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.835512' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.839221' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.839730' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.840214' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:34:27.843748"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.845052' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.846009' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.846940' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.848003' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.848702' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:34:27.855093"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:27.855093"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-9282' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.859241' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:27.863592' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:34:27.872020' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:34:27.875473"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:34:27.875473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:34:27.877425"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:34:27.877425"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'alessia@walter.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160080673214xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:34:27.880273"], ["email", "alessia@walter.name"], ["encrypted_password", "0f94ac440008d41e7ac18b15d70bf625e78cb7331ac928f8f02c113797050ee249608e98164a1b2aa789c974e407835a3cdea45e17901fa3e7371548324d04f9"], ["login", "alessia@walter.name"], ["password_salt", "Qz8Wd1SNqdazhMXjvu9F"], ["updated_at", "2014-11-14 23:34:27.880273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:27.882741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:34:27.884074"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:34:27.884074"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R183364663' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R183364663%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R183364663' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'rMyiKRgnD99t-c4Snfz89A' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:34:27.889363"], ["currency", "USD"], ["email", "alessia@walter.name"], ["guest_token", "rMyiKRgnD99t-c4Snfz89A"], ["number", "R183364663"], ["state", "cart"], ["updated_at", "2014-11-14 23:34:27.889363"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'V27Y78GZ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:34:27.891980"], ["identifier", "V27Y78GZ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:34:27.891980"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.894123' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-031521' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-031521"], ["updated_at", "2014-11-14 23:34:27.895331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lindsay@emmerich.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141600806705xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:34:27.911946"], ["email", "lindsay@emmerich.com"], ["encrypted_password", "b1ac0164c1fe22dc6d7da4243617d6a712b077270a80780492a7798d04be00bfc47d323c1e934a09c74a4451d1fe7d2a505607825b1c4a12cb65f4fd3fbbacd6"], ["login", "lindsay@emmerich.com"], ["password_salt", "be1tzMZRcaPAm_spRzTw"], ["updated_at", "2014-11-14 23:34:27.911946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:34:27.916170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:27.917520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:34:27.919003"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:34:27.919003"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R035555903' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R035555903%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R035555903' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'GXFSo7sX6-WQu_4ShuLu8Q' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:34:27.924565"], ["currency", "USD"], ["email", "lindsay@emmerich.com"], ["guest_token", "GXFSo7sX6-WQu_4ShuLu8Q"], ["number", "R035555903"], ["state", "cart"], ["updated_at", "2014-11-14 23:34:27.924565"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:34:27.933355"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-14 23:34:27.933355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 917906' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:34:27.936145"], ["description", "Accusantium veritatis voluptatem molestiae quis maxime vel et in."], ["name", "TaxCategory - 917906"], ["updated_at", "2014-11-14 23:34:27.936145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:34:27.939456"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:34:27.939456"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8335' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8335' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:34:27.932255"], ["created_at", "2014-11-14 23:34:27.943200"], ["description", "Laudantium tenetur at quis est sapiente culpa quisquam. Veniam ducimus delectus facilis laborum et sapiente consequuntur. Quibusdam autem ducimus nesciunt consectetur fuga sunt omnis distinctio.\nOccaecati autem optio consequuntur voluptas ipsum ullam. Repudiandae sit similique magnam dolorem assumenda aut corporis rem. Magni maiores exercitationem incidunt tenetur et eius ut. Corrupti et est molestias expedita aut ut quo.\nDolorem molestias minus sed et et et quia molestiae. Ipsam nulla illum ea aspernatur rerum accusantium est est. Tempora consequuntur facilis odit atque voluptate nulla aspernatur consectetur. Autem sit asperiores deleniti at reprehenderit voluptatem sint ipsam. Ab consequuntur illum labore mollitia dolorem error et totam.\nPerferendis dignissimos ab a expedita sed occaecati. Nisi soluta delectus unde ut. Pariatur distinctio aut ut velit necessitatibus temporibus. Ut id voluptatum eos harum deleniti sed."], ["name", "Product #5 - 8335"], ["shipping_category_id", 1], ["slug", "product-5-8335"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:27.943200"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-14 23:34:27.945578"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.947688' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.948854' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.950130' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.950701' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:34:27.954111"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:34:27.954111"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.955064' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.955602' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.956706' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.957186' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.961254' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.961805' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.962350' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:34:27.964144"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.964887' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.965386' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.965888' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.966494' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:27.966936' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:34:27.971579"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:27.971579"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8335' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.975731' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:27.980138' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-6905' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-6905' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:34:28.000051"], ["created_at", "2014-11-14 23:34:28.004096"], ["description", "Atque asperiores illo est nesciunt. Laudantium consequatur velit non ut laboriosam modi necessitatibus. Quod et eum dolores sit aut voluptas voluptatum ex. Recusandae et ea expedita dicta non esse impedit blanditiis.\nQuibusdam recusandae sed qui quia deserunt vitae velit. Minima qui non sint voluptatum eum corrupti. Iusto omnis repudiandae voluptas quia dolorum. Qui est in ut consequatur ab quo perspiciatis."], ["name", "Product #6 - 6905"], ["shipping_category_id", 1], ["slug", "product-6-6905"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.004096"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-14 23:34:28.006173"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.008141' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.009239' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.010438' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.010959' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:34:28.014279"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:34:28.014279"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.015231' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.015721' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.016812' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.017281' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.021007' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.021555' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.022096' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:34:28.023853"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.024612' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.025109' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.025618' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.026254' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.026737' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:34:28.031371"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.031371"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-6905' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.035406' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:28.039778' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:34:28.048374' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:34:28.052081"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:34:28.052081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:34:28.054080"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:34:28.054080"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tina_dicki@oberbrunner.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160080681086xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:34:28.057096"], ["email", "tina_dicki@oberbrunner.name"], ["encrypted_password", "5409faf405e432d1b888ddf0e07564cc00c642155b8409925465aa02aa6af3783f64fb281b55dd7a448073f4d6336c32cd49d14c83ab9a00f1320aca0b707216"], ["login", "tina_dicki@oberbrunner.name"], ["password_salt", "Dcfbz8jDrPEobMv4MgPw"], ["updated_at", "2014-11-14 23:34:28.057096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:28.059615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:34:28.061034"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:34:28.061034"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R943656439' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R943656439%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R943656439' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'EMLql2K3g0UTlsb8ibx_Vw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:34:28.066141"], ["currency", "USD"], ["email", "tina_dicki@oberbrunner.name"], ["guest_token", "EMLql2K3g0UTlsb8ibx_Vw"], ["number", "R943656439"], ["state", "cart"], ["updated_at", "2014-11-14 23:34:28.066141"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'BSQN3BAY' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:34:28.068497"], ["identifier", "BSQN3BAY"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:34:28.068497"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.070881' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-252505' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-252505"], ["updated_at", "2014-11-14 23:34:28.072182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ulices@harris.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160080689437xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:34:28.085283"], ["email", "ulices@harris.ca"], ["encrypted_password", "c282f35ef360114e5c0903d7de395c5ca86f17e6317451bd77d87e5f5d31df40f93cf70ca8c893c45964de7624c37ab3be4bab1fd26d2515cf10a636fde0ca47"], ["login", "ulices@harris.ca"], ["password_salt", "3Hn_JTbCU_t-SaV-d7ia"], ["updated_at", "2014-11-14 23:34:28.085283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:34:28.089519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:28.092241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:34:28.094876"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:34:28.094876"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R601666304' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R601666304%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R601666304' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'tQ-PbgpOMIzN4sxGQIIQUQ' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:34:28.102380"], ["currency", "USD"], ["email", "ulices@harris.ca"], ["guest_token", "tQ-PbgpOMIzN4sxGQIIQUQ"], ["number", "R601666304"], ["state", "cart"], ["updated_at", "2014-11-14 23:34:28.102380"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:34:28.111138"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-14 23:34:28.111138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 788429' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:34:28.114127"], ["description", "Nemo rem dolorem et quis tenetur."], ["name", "TaxCategory - 788429"], ["updated_at", "2014-11-14 23:34:28.114127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:34:28.117768"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:34:28.117768"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-3106' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-3106' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:34:28.110023"], ["created_at", "2014-11-14 23:34:28.121738"], ["description", "Distinctio omnis qui perspiciatis quo itaque quia. Eum qui quasi repellat et ut mollitia. Molestiae nesciunt praesentium rerum sunt dolorem. At a dicta sit rerum.\nImpedit vitae aut illum ab. Repellat accusamus incidunt ut veritatis tempore eum dignissimos adipisci. Reprehenderit et sequi vel corporis quasi nihil et mollitia. Libero omnis dolorem aperiam officiis vitae distinctio dicta. Cupiditate tenetur nam incidunt cum illum non dicta.\nQuibusdam qui quia dignissimos laborum. Et culpa et pariatur aut eveniet sit. Dolores quisquam aut nesciunt dolorem id voluptates quia. Ipsam sint repellendus quo dolorum nostrum. Velit dolor quia aut soluta sequi nihil."], ["name", "Product #7 - 3106"], ["shipping_category_id", 1], ["slug", "product-7-3106"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.121738"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-14 23:34:28.123887"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.125900' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.127212' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.128584' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.129160' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:34:28.132558"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:34:28.132558"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.133595' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.134119' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.135207' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.135704' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.140353' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.141968' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.143186' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:34:28.146330"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.147466' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.148238' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.149009' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.149914' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.150666' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:34:28.156385"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.156385"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-3106' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.160625' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:28.165333' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-177' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-177' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:34:28.172282"], ["created_at", "2014-11-14 23:34:28.176022"], ["description", "Culpa aliquam amet provident occaecati qui velit aliquid nisi. Omnis in dolores nihil optio ut nihil blanditiis. Dolor ut repellendus mollitia corrupti non reiciendis. Repellendus placeat sint qui laudantium voluptatibus. Est sed voluptas fugiat ipsum.\nMollitia quaerat sit praesentium maxime dolores. Culpa cum dolorem aut qui rerum autem. Magni facere consequatur qui fugiat officia soluta enim voluptate. Voluptatem quidem voluptas et libero omnis architecto. Repellat odio cumque perspiciatis velit asperiores.\nEos natus explicabo sapiente voluptates totam doloribus. Ut fugit temporibus quo repellat incidunt. Non nemo alias ut necessitatibus iure aut laborum. Cum iste id enim sapiente est. Est quos est voluptas illo autem amet sint.\nAtque nobis quaerat minus omnis quis. Harum nemo quia qui in sit voluptas aperiam corporis. Et vitae voluptate incidunt impedit corrupti quia dolores. Ullam sunt nihil exercitationem animi aut quis modi fuga."], ["name", "Product #8 - 177"], ["shipping_category_id", 1], ["slug", "product-8-177"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.176022"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-14 23:34:28.178228"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.180216' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.181300' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.182470' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.183017' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:34:28.186401"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:34:28.186401"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.187367' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.187889' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.188994' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.189509' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.193391' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.193931' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.194460' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:34:28.198305"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.199654' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.200662' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.201416' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.202325' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.203068' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:34:28.209169"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.209169"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-177' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.213202' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:28.217671' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:34:28.226497' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:34:28.230377"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:34:28.230377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:34:28.232533"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:34:28.232533"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'merlin_hickle@gerlach.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160080687398xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:34:28.235610"], ["email", "merlin_hickle@gerlach.us"], ["encrypted_password", "206ef8cc8c167dcc6f4b7b9904d0d0705acf55faba5597cb6fd207703b694b8cf835b94c472214b06802bca6e4be9f56c3bbfc8741275061a043b3f0e9702d6d"], ["login", "merlin_hickle@gerlach.us"], ["password_salt", "jD51HZbMfmLff1idBzsx"], ["updated_at", "2014-11-14 23:34:28.235610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:28.238275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:34:28.239701"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:34:28.239701"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R155771652' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R155771652%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R155771652' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'nScQ9M3z-rprx65xjeWrUQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:34:28.245464"], ["currency", "USD"], ["email", "merlin_hickle@gerlach.us"], ["guest_token", "nScQ9M3z-rprx65xjeWrUQ"], ["number", "R155771652"], ["state", "cart"], ["updated_at", "2014-11-14 23:34:28.245464"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'JASY87HX' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:34:28.248043"], ["identifier", "JASY87HX"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:34:28.248043"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.250411' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-123255' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-123255"], ["updated_at", "2014-11-14 23:34:28.251612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brendan_mertz@reynolds.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14160080681549xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:34:28.265074"], ["email", "brendan_mertz@reynolds.us"], ["encrypted_password", "64cbf881b80e2b8fa14d01a304908bf8c06f7e4c0906b2f3b346f7e54027e9ad2ef3824772ec5eb2932f22a0e16908e05c40c0f3575829fbc1c320a40bd661bd"], ["login", "brendan_mertz@reynolds.us"], ["password_salt", "rk7UkjHpE7fHpVe57mE4"], ["updated_at", "2014-11-14 23:34:28.265074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:34:28.268359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:28.269671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:34:28.271104"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:34:28.271104"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R399708429' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R399708429%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R399708429' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'f1wFEJRW-zII7sQe8majuQ' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:34:28.276502"], ["currency", "USD"], ["email", "brendan_mertz@reynolds.us"], ["guest_token", "f1wFEJRW-zII7sQe8majuQ"], ["number", "R399708429"], ["state", "cart"], ["updated_at", "2014-11-14 23:34:28.276502"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:34:28.290555"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-14 23:34:28.290555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 983075' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:34:28.293998"], ["description", "Totam quia et sed omnis doloribus autem et et."], ["name", "TaxCategory - 983075"], ["updated_at", "2014-11-14 23:34:28.293998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:34:28.297704"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:34:28.297704"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-9431' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-9431' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:34:28.288827"], ["created_at", "2014-11-14 23:34:28.301811"], ["description", "Soluta officia vel ex iure magnam illum voluptatibus. Quia vero iste omnis deleniti. Soluta aut quis et occaecati at voluptate expedita. At asperiores in dolor praesentium harum.\nSunt ex debitis qui doloremque voluptatem vel dolores. Fuga qui optio sequi mollitia fugiat. Non facere et porro rem autem libero.\nTempore voluptatum et est itaque qui. Pariatur iure quae molestiae quasi. Consectetur in animi nostrum inventore at quas adipisci.\nDolores est est nesciunt sunt quae sed enim. Sit voluptatem reiciendis labore quas et aspernatur et non. Et molestiae debitis labore est illo optio provident ipsa.\nAsperiores dolorem ea et sed optio blanditiis. Molestiae mollitia molestias enim optio et aut aut. Sunt perferendis illum sint qui rerum suscipit deserunt consequatur."], ["name", "Product #9 - 9431"], ["shipping_category_id", 1], ["slug", "product-9-9431"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.301811"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-14 23:34:28.304080"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.306097' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.307212' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.308503' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.309063' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:34:28.312720"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:34:28.312720"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.313799' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.314379' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.315588' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.316136' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.320491' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.322147' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.323484' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:34:28.326734"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.327890' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.328653' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.329415' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.330356' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.331098' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:34:28.336647"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.336647"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-9431' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.340965' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:28.345626' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-7225' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-7225' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:34:28.351010"], ["created_at", "2014-11-14 23:34:28.354857"], ["description", "Nam ea cupiditate voluptatibus inventore nostrum. Qui ipsa iste quis reprehenderit occaecati voluptatem maxime voluptatem. Vel laudantium velit unde debitis occaecati asperiores. Asperiores deleniti neque quasi quos in ex a similique. Est tempore exercitationem sequi a ut enim.\nQuod iure quam sit sunt repellat eum eum saepe. Nobis ratione odio doloremque veritatis. Temporibus quos et iste et laudantium neque eum. Ea est vitae quisquam et. Sed sapiente et culpa est eius illo quia et."], ["name", "Product #10 - 7225"], ["shipping_category_id", 1], ["slug", "product-10-7225"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.354857"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-14 23:34:28.356995"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.359061' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.360161' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.361490' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.362067' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:34:28.365427"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:34:28.365427"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.366359' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.366868' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.367974' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.368440' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.372231' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.372750' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.373271' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:34:28.375033"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.375764' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.376290' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.376822' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.377468' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.377949' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:34:28.382887"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.382887"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-7225' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.387241' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:28.391927' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:34:28.400849' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-14 23:34:28.412747"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-14 23:34:28.412747"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:28.416363' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.416942' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:34:28.420806"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:34:28.420806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:34:28.422948"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:34:28.422948"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'norberto@schowalter.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141600806864710xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:34:28.426237"], ["email", "norberto@schowalter.co.uk"], ["encrypted_password", "fa347fd84ba9aba1c0e71d80e7d2fcbed37dce9ea0e5e6129698fcf28d7d855a5301b66303f9e4292f4821fbabc9d7e638ab36e759548a9b1defe5250fbc187c"], ["login", "norberto@schowalter.co.uk"], ["password_salt", "RkYnXzPQnHzn-sYXyPbS"], ["updated_at", "2014-11-14 23:34:28.426237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:28.428949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:34:28.430399"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:34:28.430399"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R352425296' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R352425296%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R352425296' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'VR-b3wk-UdyVHnMcVD-1Yg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:34:28.436201"], ["currency", "USD"], ["email", "norberto@schowalter.co.uk"], ["guest_token", "VR-b3wk-UdyVHnMcVD-1Yg"], ["number", "R352425296"], ["state", "cart"], ["updated_at", "2014-11-14 23:34:28.436201"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '76Q2CVMZ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:34:28.438677"], ["identifier", "76Q2CVMZ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:34:28.438677"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.440936' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-022000' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-022000"], ["updated_at", "2014-11-14 23:34:28.442234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sally@hamill.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141600806824811xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:34:28.462367"], ["email", "sally@hamill.ca"], ["encrypted_password", "acb238318c0618e6935be91e53483b52aa5ab1c5e0b29fd64d7e15318885e71ad37e49ea5ca8384f1e3446ef3a71d4c9ba9aadf44d2a790b325b4a8243168ba7"], ["login", "sally@hamill.ca"], ["password_salt", "Kk5S8ZULELmC_LNzsvdA"], ["updated_at", "2014-11-14 23:34:28.462367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:34:28.465991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:28.467486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:34:28.469065"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-14 23:34:28.469065"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R783284285' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R783284285%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R783284285' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'kZ1BjNHAEqaezyL93yJGYA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-14 23:34:28.474920"], ["currency", "USD"], ["email", "sally@hamill.ca"], ["guest_token", "kZ1BjNHAEqaezyL93yJGYA"], ["number", "R783284285"], ["state", "cart"], ["updated_at", "2014-11-14 23:34:28.474920"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-14 23:34:28.483226"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-14 23:34:28.483226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 5443' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-14 23:34:28.486129"], ["description", "Ut ad voluptatibus omnis unde eaque similique in."], ["name", "TaxCategory - 5443"], ["updated_at", "2014-11-14 23:34:28.486129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-14 23:34:28.489406"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-14 23:34:28.489406"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-2193' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-2193' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:34:28.482003"], ["created_at", "2014-11-14 23:34:28.507605"], ["description", "Ut et iusto tempora officiis. Harum possimus ex quia assumenda quam enim. Quia impedit magnam et ut repellendus veniam deserunt aut. Ea adipisci odit vero harum. Ipsam quia excepturi consequatur dolorem.\nModi maxime velit deserunt voluptate est. Voluptas ut excepturi harum hic dicta ut quis. Dolore odio officia aut reprehenderit ut eaque. Quia doloribus veritatis et et quis qui."], ["name", "Product #11 - 2193"], ["shipping_category_id", 1], ["slug", "product-11-2193"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.507605"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-14 23:34:28.509988"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.512198' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.513400' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.514787' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.515421' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:34:28.518895"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:34:28.518895"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.519904' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.520430' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.521509' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.522037' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.526105' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.526628' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.527184' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-14 23:34:28.528985"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.529721' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.530238' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.530761' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.531381' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.531876' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:34:28.536839"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.536839"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-2193' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.541180' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:28.545918' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-8795' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-8795' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-14 23:34:28.552373"], ["created_at", "2014-11-14 23:34:28.556074"], ["description", "Libero itaque cumque voluptas enim. Omnis enim dolores reprehenderit hic earum quam. Laudantium ut voluptatum consequatur et maxime. Possimus voluptates esse veniam repellendus sint eos quisquam. Est sint consectetur ut ipsa corporis.\nInventore suscipit dolores distinctio non consequuntur fuga. Pariatur necessitatibus voluptatum dolorum rerum similique. Assumenda reiciendis eum ex ipsum eligendi fugiat quod. Nostrum odit aut vel a deserunt.\nNesciunt aliquam placeat vel enim id alias molestiae. Commodi quasi et assumenda omnis deserunt est numquam. Laudantium voluptatum voluptas et est sequi vel.\nEligendi deserunt voluptatibus quaerat aut sunt voluptas. Ut nobis perferendis vel inventore est animi magnam aut. Et animi recusandae perferendis officiis doloremque aut. Quibusdam nemo quia non odio aut rem. Quae distinctio voluptas ullam maiores et quia sed similique."], ["name", "Product #12 - 8795"], ["shipping_category_id", 1], ["slug", "product-12-8795"], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.556074"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-14 23:34:28.558193"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.560159' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.561219' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.562392' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.562954' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-14 23:34:28.566416"], ["stock_location_id", 1], ["updated_at", "2014-11-14 23:34:28.566416"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.567344' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.567901' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.568991' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.569472' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.573352' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.573919' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.574456' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-14 23:34:28.576392"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.577106' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.577614' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.578159' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.578794' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-14 23:34:28.579290' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-14 23:34:28.584062"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-14 23:34:28.584062"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-8795' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.588306' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:28.592956' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-14 23:34:28.601932' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-14 23:34:28.604398"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-14 23:34:28.604398"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-14 23:34:28.610368' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.611195' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:34:28.616385"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-14 23:34:28.616385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-14 23:34:28.618554"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-14 23:34:28.618554"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'vicky.keebler@breitenbergfriesen.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141600806847312xxxxxxxxxxxxx"], ["created_at", "2014-11-14 23:34:28.621511"], ["email", "vicky.keebler@breitenbergfriesen.ca"], ["encrypted_password", "f1c63273cba979dec5cc24b027aa2c67c04cdcc8fa2f223abb8e2959b92c30fbaf2e3939092bff00ed49b30e2f8233b98a08abe329a1a1a201495cba7dd69d1a"], ["login", "vicky.keebler@breitenbergfriesen.ca"], ["password_salt", "3LocJQ52ZoxvxeDeVjNP"], ["updated_at", "2014-11-14 23:34:28.621511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:28.624097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-14 23:34:28.625458"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-14 23:34:28.625458"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R157461006' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R157461006%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R157461006' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Weh-o_UYgCEsf6LL2aVdDQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-14 23:34:28.630642"], ["currency", "USD"], ["email", "vicky.keebler@breitenbergfriesen.ca"], ["guest_token", "Weh-o_UYgCEsf6LL2aVdDQ"], ["number", "R157461006"], ["state", "cart"], ["updated_at", "2014-11-14 23:34:28.630642"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'NKD77T7P' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-14 23:34:28.632999"], ["identifier", "NKD77T7P"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-14 23:34:28.632999"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.635262' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-540150' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-540150"], ["updated_at", "2014-11-14 23:34:28.636466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (10.9ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'yvonne_runte@lang.info' LIMIT 1 SQL (6.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14162637798061xxxxxxxxxxxxx"], ["created_at", "2014-11-17 22:36:20.016900"], ["email", "yvonne_runte@lang.info"], ["encrypted_password", "21ec5ce549fafe0713a30af8499f97249496b06d02a6b6b1dacffcd7c0686e9414520f1d9b743fcd0fb08161304688c44328201e424986a833a7c08b8cde62b9"], ["login", "yvonne_runte@lang.info"], ["password_salt", "iCjAx34_SHx-KuMHzsZU"], ["updated_at", "2014-11-17 22:36:20.016900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.7ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-17 22:36:20.092310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (16.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:20.098227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-17 22:36:20.141413"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-17 22:36:20.141413"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (1.0ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R405979900' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R405979900%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R405979900' LIMIT 1 Spree::Order Exists (0.7ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'jZFubDyHkCQpkX6xHQk39A' LIMIT 1 SQL (6.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-17 22:36:20.205596"], ["currency", "USD"], ["email", "yvonne_runte@lang.info"], ["guest_token", "jZFubDyHkCQpkX6xHQk39A"], ["number", "R405979900"], ["state", "cart"], ["updated_at", "2014-11-17 22:36:20.205596"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (1.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-17 22:36:20.321555"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-17 22:36:20.321555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.6ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 704698' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (1.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-17 22:36:20.334406"], ["description", "Sed aut delectus et soluta deserunt."], ["name", "TaxCategory - 704698"], ["updated_at", "2014-11-17 22:36:20.334406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (4.6ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-17 22:36:20.359580"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-17 22:36:20.359580"], ["zipcode", "20500"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (2.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-1887' LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-1887' LIMIT 1 SQL (5.0ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-17 22:36:20.294250"], ["created_at", "2014-11-17 22:36:20.394355"], ["description", "Quaerat repellendus magnam quisquam odio eos molestiae et. Ducimus perferendis veritatis consequatur laborum incidunt sapiente voluptas assumenda. Culpa consequatur atque modi consequatur sed nesciunt molestiae. Voluptates nam deleniti ullam aut libero quam laudantium omnis. Necessitatibus cum illo ut voluptatum laudantium harum ea accusamus."], ["name", "Product #1 - 1887"], ["shipping_category_id", 1], ["slug", "product-1-1887"], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:20.394355"]] Spree::Variant Exists (0.6ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (3.6ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-17 22:36:20.404851"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (2.0ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.418045' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.419831' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.436126' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.437665' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (1.0ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (3.7ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-17 22:36:20.539493"], ["stock_location_id", 1], ["updated_at", "2014-11-17 22:36:20.539493"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.546545' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.547903' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.549916' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.550736' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.563418' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.564067' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.564611' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-17 22:36:20.566286"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.567501' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.568014' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.568495' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.569099' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.569529' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (3.6ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-17 22:36:20.586064"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:20.586064"], ["variant_id", 1]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-1887' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.8ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:20.605909' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.8ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:20.617586' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-6676' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-6676' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-17 22:36:20.624057"], ["created_at", "2014-11-17 22:36:20.628078"], ["description", "Consequatur ea natus voluptas inventore aut. Praesentium voluptate voluptas et deserunt doloremque placeat rerum. Architecto accusantium animi et esse cumque voluptas ut impedit.\nRepellat aut ut non a vel. Voluptatem cumque deleniti consequatur ut excepturi. Est laborum dolor veniam repellat pariatur.\nFugit non quaerat tempora maxime. Ducimus magnam et distinctio velit. Minima enim praesentium velit ullam laboriosam.\nNostrum quibusdam nihil harum quaerat consectetur sint nesciunt. Quo fuga est sequi at. Cupiditate aliquam et id repellat ipsa distinctio. Ex animi quis accusamus voluptatem perspiciatis sit et. Adipisci eum placeat quidem sed esse voluptatem."], ["name", "Product #2 - 6676"], ["shipping_category_id", 1], ["slug", "product-2-6676"], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:20.628078"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-17 22:36:20.630306"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.632254' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.633314' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.634539' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.635067' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-17 22:36:20.638226"], ["stock_location_id", 1], ["updated_at", "2014-11-17 22:36:20.638226"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.639121' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.639594' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.640639' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.641106' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.644786' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.645290' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.645771' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-17 22:36:20.647440"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.648171' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.648659' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.649149' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.649740' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.650204' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-17 22:36:20.654804"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:20.654804"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-6676' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:20.658678' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:20.662905' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.7ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.9ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-17 22:36:20.685933' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-17 22:36:20.705737"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-17 22:36:20.705737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-17 22:36:20.719532"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-17 22:36:20.719532"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ignatius@glover.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14162637805032xxxxxxxxxxxxx"], ["created_at", "2014-11-17 22:36:20.727651"], ["email", "ignatius@glover.us"], ["encrypted_password", "547d58ae55dc131ff153752831961865c22d7681c79a6f93e0163ab200a86216de4abff7c36330c630020c1c943019cc153c93aab41b62a5c46042069e7446ce"], ["login", "ignatius@glover.us"], ["password_salt", "4HEuSmoFV9C2x8YGm5Bf"], ["updated_at", "2014-11-17 22:36:20.727651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:20.730415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-17 22:36:20.731803"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-17 22:36:20.731803"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R837958995' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R837958995%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R837958995' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'y33G2cdI4DUXBFgZW1LcYQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-17 22:36:20.736929"], ["currency", "USD"], ["email", "ignatius@glover.us"], ["guest_token", "y33G2cdI4DUXBFgZW1LcYQ"], ["number", "R837958995"], ["state", "cart"], ["updated_at", "2014-11-17 22:36:20.736929"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.7ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'VMA87PA5' LIMIT 1 SQL (1.4ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-17 22:36:20.747807"], ["identifier", "VMA87PA5"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-17 22:36:20.747807"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:20.753026' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-303103' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-303103"], ["updated_at", "2014-11-17 22:36:20.754513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'joel_hessel@robel.co.uk' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14162637803043xxxxxxxxxxxxx"], ["created_at", "2014-11-17 22:36:20.803405"], ["email", "joel_hessel@robel.co.uk"], ["encrypted_password", "826d7f4a3de433bde0c9bae111046c80be6edfe0bf1cf269040ef53df419ccc76554312b76ccb9ca9f5aea8e94228c301b3f4701f6b213f80d4e31546384acbb"], ["login", "joel_hessel@robel.co.uk"], ["password_salt", "oy472xbey2v23N3Hhv7_"], ["updated_at", "2014-11-17 22:36:20.803405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-17 22:36:20.808998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:20.810897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-17 22:36:20.812931"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-17 22:36:20.812931"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R602418194' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R602418194%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R602418194' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'YhU2z1TgXlSl6EzFdFhcXw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-17 22:36:20.818841"], ["currency", "USD"], ["email", "joel_hessel@robel.co.uk"], ["guest_token", "YhU2z1TgXlSl6EzFdFhcXw"], ["number", "R602418194"], ["state", "cart"], ["updated_at", "2014-11-17 22:36:20.818841"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-17 22:36:20.825185"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-17 22:36:20.825185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 811366' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-17 22:36:20.827724"], ["description", "Voluptate vitae voluptatem dolores maxime."], ["name", "TaxCategory - 811366"], ["updated_at", "2014-11-17 22:36:20.827724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-17 22:36:20.830886"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-17 22:36:20.830886"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-8326' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-8326' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-17 22:36:20.824120"], ["created_at", "2014-11-17 22:36:20.836524"], ["description", "Omnis nisi consectetur quas corporis. Dolor iusto perferendis atque itaque a ab. Aut et odit est iste deserunt asperiores aut dignissimos."], ["name", "Product #3 - 8326"], ["shipping_category_id", 1], ["slug", "product-3-8326"], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:20.836524"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-17 22:36:20.840541"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.843648' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.845137' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.846620' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.847158' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-17 22:36:20.851290"], ["stock_location_id", 1], ["updated_at", "2014-11-17 22:36:20.851290"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.852383' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.852952' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.854133' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.854613' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.858438' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.859483' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.860932' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-17 22:36:20.864154"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.865467' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.866219' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.866929' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.867809' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.868497' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-17 22:36:20.874225"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:20.874225"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-8326' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:20.878317' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:20.882729' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-3624' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-3624' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-17 22:36:20.888720"], ["created_at", "2014-11-17 22:36:20.892385"], ["description", "Distinctio assumenda hic ut a cupiditate placeat natus. Hic maiores aut nostrum perspiciatis eveniet quos vitae. Id et praesentium quia nesciunt eos.\nTemporibus voluptatem eius voluptatem ullam. At id provident consectetur a laudantium maiores eum. Dolorem itaque sapiente facilis facere nulla repellendus quia. Dolorum hic assumenda a molestias perferendis maiores voluptates. Eum accusamus quas maiores vel voluptates omnis ut debitis.\nAut nam aut ipsum et maxime eaque quidem. Fugiat voluptas nam inventore facere numquam laboriosam quis. Accusamus voluptatem autem eveniet quod est et commodi.\nEa nobis minus soluta incidunt. Aut et ratione quo omnis consectetur tempore dolores autem. Ut quia eos animi libero. Blanditiis fugiat est quis dolore ex. Ipsum aspernatur assumenda perferendis nihil ut rerum."], ["name", "Product #4 - 3624"], ["shipping_category_id", 1], ["slug", "product-4-3624"], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:20.892385"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-17 22:36:20.894462"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.896395' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.897446' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.898631' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.899155' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-17 22:36:20.902272"], ["stock_location_id", 1], ["updated_at", "2014-11-17 22:36:20.902272"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.903148' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.903643' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.904732' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.905205' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.908885' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.909420' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.909904' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-17 22:36:20.913071"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.914541' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.915508' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.916462' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.917577' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:20.918258' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-17 22:36:20.924668"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:20.924668"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-3624' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:20.928680' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:20.933014' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-17 22:36:20.941464' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-17 22:36:20.945042"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-17 22:36:20.945042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-17 22:36:20.947014"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-17 22:36:20.947014"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hildegard.gerlach@harber.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14162637808464xxxxxxxxxxxxx"], ["created_at", "2014-11-17 22:36:20.950165"], ["email", "hildegard.gerlach@harber.name"], ["encrypted_password", "cfba2db7d1dce473b382d82f7c37d553ab6e0632868b1d46e90d29befce8b253f407f71b11fdc35dff73fe0d0610e0f99c8e97bdded523c3abe2e728b82e3d68"], ["login", "hildegard.gerlach@harber.name"], ["password_salt", "L3WQ8wnVbe4zyw6HyEX-"], ["updated_at", "2014-11-17 22:36:20.950165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:20.953437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-17 22:36:20.954974"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-17 22:36:20.954974"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R182357258' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R182357258%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R182357258' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'JPuRYHa7Kl3JT6Xl73K4pg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-17 22:36:20.960149"], ["currency", "USD"], ["email", "hildegard.gerlach@harber.name"], ["guest_token", "JPuRYHa7Kl3JT6Xl73K4pg"], ["number", "R182357258"], ["state", "cart"], ["updated_at", "2014-11-17 22:36:20.960149"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'UK2B6UNJ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-17 22:36:20.962563"], ["identifier", "UK2B6UNJ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-17 22:36:20.962563"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:20.964624' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-443500' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-443500"], ["updated_at", "2014-11-17 22:36:20.965759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'francisca_murray@kuhicmacejkovic.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14162637803965xxxxxxxxxxxxx"], ["created_at", "2014-11-17 22:36:20.982913"], ["email", "francisca_murray@kuhicmacejkovic.com"], ["encrypted_password", "a8bc87d90af3706700793cbfd5501eacf24308a85babaa39ba7a3716f00dcbc0fba3d107e9b2e730f60a9348eec6c9d155f907086034d81afaaa72f8b0c6ae73"], ["login", "francisca_murray@kuhicmacejkovic.com"], ["password_salt", "Hser_8znzey_yNis9msL"], ["updated_at", "2014-11-17 22:36:20.982913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-17 22:36:20.987088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:20.988416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-17 22:36:20.989787"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-17 22:36:20.989787"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001265179' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R001265179%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001265179' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '6d3mzQDWdUibkAAObrXhng' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-17 22:36:20.995275"], ["currency", "USD"], ["email", "francisca_murray@kuhicmacejkovic.com"], ["guest_token", "6d3mzQDWdUibkAAObrXhng"], ["number", "R001265179"], ["state", "cart"], ["updated_at", "2014-11-17 22:36:20.995275"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-17 22:36:21.004594"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-17 22:36:21.004594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 321238' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-17 22:36:21.007186"], ["description", "In est vel omnis consequatur sapiente."], ["name", "TaxCategory - 321238"], ["updated_at", "2014-11-17 22:36:21.007186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-17 22:36:21.010320"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-17 22:36:21.010320"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-2389' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-2389' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-17 22:36:21.003528"], ["created_at", "2014-11-17 22:36:21.013964"], ["description", "Blanditiis porro id praesentium quia aut rem perspiciatis assumenda. Alias asperiores voluptatem repudiandae et. Ut et maxime soluta at ipsum. Facilis ea nam id necessitatibus minus ut.\nAut aliquam illum sunt asperiores non sapiente itaque. Possimus non totam qui quo qui. Est accusamus omnis corrupti perspiciatis asperiores numquam qui est. Non id dolore et veniam eos.\nAut sit assumenda voluptatum autem doloremque. Dignissimos quis dolores voluptatem voluptatem voluptate molestiae rerum. Qui illum quasi est voluptatem porro. Sed aliquid voluptatem sit nihil. Ipsam adipisci eos quidem est nesciunt.\nMollitia aspernatur modi distinctio unde sint numquam. Voluptatem cumque qui numquam consequatur deserunt possimus eos. Eveniet id saepe dolor quis laudantium tempore minima ut. Temporibus enim rerum non et velit ullam amet iste. Dolor nesciunt iusto voluptas ut asperiores expedita magnam ut.\nOfficia et in error et. Et aut eaque neque consectetur tempora enim voluptas. Rerum voluptatum distinctio qui aut eum."], ["name", "Product #5 - 2389"], ["shipping_category_id", 1], ["slug", "product-5-2389"], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.013964"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-17 22:36:21.016558"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.018847' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.019998' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.021262' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.021833' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-17 22:36:21.025044"], ["stock_location_id", 1], ["updated_at", "2014-11-17 22:36:21.025044"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.025985' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.026503' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.027594' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.028096' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.031886' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.032414' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.032908' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-17 22:36:21.034598"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.035320' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.035842' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.036352' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.036946' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.037419' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-17 22:36:21.042058"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.042058"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-2389' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.060505' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:21.065635' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-3855' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-3855' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-17 22:36:21.070753"], ["created_at", "2014-11-17 22:36:21.074408"], ["description", "Qui fuga ut eius voluptatem. Enim aliquam voluptatem repellat sint eos maiores. Omnis ut consequatur distinctio et tempore tenetur consequatur quis.\nEt cumque esse dolor voluptas consequatur quia odit nisi. Quam incidunt dolore temporibus omnis. Distinctio minima itaque enim est consequatur iure. Id voluptatibus perferendis et facere ut et."], ["name", "Product #6 - 3855"], ["shipping_category_id", 1], ["slug", "product-6-3855"], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.074408"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-17 22:36:21.076445"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.078366' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.079408' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.080621' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.081163' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-17 22:36:21.084303"], ["stock_location_id", 1], ["updated_at", "2014-11-17 22:36:21.084303"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.085188' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.085713' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.086819' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.087303' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.091228' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.091797' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.092315' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-17 22:36:21.094082"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.094788' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.095278' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.095749' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.096325' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.096776' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-17 22:36:21.101526"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.101526"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-3855' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.105538' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:21.109973' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-17 22:36:21.118752' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-17 22:36:21.122387"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-17 22:36:21.122387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-17 22:36:21.124446"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-17 22:36:21.124446"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'isabella_miller@cassinstokes.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14162637817476xxxxxxxxxxxxx"], ["created_at", "2014-11-17 22:36:21.127394"], ["email", "isabella_miller@cassinstokes.us"], ["encrypted_password", "b3ea6ba6ffc18c7c1df0ba8d409754149573516c48e0c6e545564f100e278ef766646aa5d4e30593ea417f7453d1efab031b5d6b3b2991f8bcde2f3c95dcdcde"], ["login", "isabella_miller@cassinstokes.us"], ["password_salt", "EiccvNNrxdFhBgWVcFr9"], ["updated_at", "2014-11-17 22:36:21.127394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:21.129967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-17 22:36:21.131356"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-17 22:36:21.131356"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R158649672' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R158649672%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R158649672' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XWGYxKRKB3hUP8-X38Sg3A' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-17 22:36:21.136617"], ["currency", "USD"], ["email", "isabella_miller@cassinstokes.us"], ["guest_token", "XWGYxKRKB3hUP8-X38Sg3A"], ["number", "R158649672"], ["state", "cart"], ["updated_at", "2014-11-17 22:36:21.136617"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7HJEJ947' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-17 22:36:21.139059"], ["identifier", "7HJEJ947"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-17 22:36:21.139059"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.141283' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-205042' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-205042"], ["updated_at", "2014-11-17 22:36:21.142458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jesse_leuschke@grady.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14162637816707xxxxxxxxxxxxx"], ["created_at", "2014-11-17 22:36:21.159853"], ["email", "jesse_leuschke@grady.name"], ["encrypted_password", "2630f9d7fc663316647c836c4ccfa7bd78ab64ac99a893621e5a5641111f6a7a014a1e0d2e046add1d2328b55b560ea7209d4142d8ad3605ca9ebdbd3238c981"], ["login", "jesse_leuschke@grady.name"], ["password_salt", "d2zZD3iJKkspjhoSypp1"], ["updated_at", "2014-11-17 22:36:21.159853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-17 22:36:21.163842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:21.165065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-17 22:36:21.166452"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-17 22:36:21.166452"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R307650590' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R307650590%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R307650590' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '_sDX9g-VA8oxGlq7ufghfQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-17 22:36:21.172044"], ["currency", "USD"], ["email", "jesse_leuschke@grady.name"], ["guest_token", "_sDX9g-VA8oxGlq7ufghfQ"], ["number", "R307650590"], ["state", "cart"], ["updated_at", "2014-11-17 22:36:21.172044"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-17 22:36:21.181300"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-17 22:36:21.181300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 14757' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-17 22:36:21.183930"], ["description", "Omnis facere dolores est quo ea eum."], ["name", "TaxCategory - 14757"], ["updated_at", "2014-11-17 22:36:21.183930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-17 22:36:21.187259"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-17 22:36:21.187259"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-7195' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-7195' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-17 22:36:21.180214"], ["created_at", "2014-11-17 22:36:21.191082"], ["description", "Rerum voluptatem ea sed et et omnis expedita asperiores. Ut autem et perspiciatis nulla non. A voluptate labore eius dolorem omnis.\nSed expedita necessitatibus et aut eum. Illum molestiae dolor et molestias a earum. Consequatur cupiditate adipisci quos nisi ratione autem nulla. Et maiores soluta dicta eius sequi.\nSint rem nihil ut sint dolorum voluptate eligendi. Doloremque sint ipsum pariatur nihil quo provident consequatur est. Aspernatur eum quis officiis nobis asperiores sunt.\nSequi nihil enim molestias et porro qui. Sit ex ipsum rerum commodi. Quae magnam non aut numquam iure illo possimus quos. Non aut aut blanditiis fugit culpa.\nEa qui similique aut labore ipsam. Esse est vel ad quod dolores ratione inventore velit. Sunt in ut saepe iusto. Ab aut cum quia et culpa nobis veritatis omnis. Maxime aut iusto eligendi nobis provident."], ["name", "Product #7 - 7195"], ["shipping_category_id", 1], ["slug", "product-7-7195"], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.191082"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-17 22:36:21.193457"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.195547' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.196678' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.197950' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.198531' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-17 22:36:21.204073"], ["stock_location_id", 1], ["updated_at", "2014-11-17 22:36:21.204073"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.206089' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.207056' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.208962' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.209776' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.216006' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.216699' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.217211' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-17 22:36:21.218847"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.219499' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.219994' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.220448' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.221001' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.221431' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-17 22:36:21.226115"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.226115"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-7195' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.230755' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:21.235220' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-1285' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-1285' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-17 22:36:21.241884"], ["created_at", "2014-11-17 22:36:21.245502"], ["description", "Beatae laborum omnis tenetur libero quo quis corrupti. Deleniti porro omnis amet voluptas. Magnam voluptatem cumque veniam minus veritatis aliquid accusantium qui.\nDicta molestiae veritatis hic deserunt aliquam ut velit. Sapiente eaque placeat ut sint dolores. Fugit aut vel laudantium omnis. Nesciunt accusantium suscipit in ipsam est ea perspiciatis. Possimus earum pariatur molestiae autem est.\nMaxime odit sint et suscipit et. Cumque animi unde enim similique deleniti et. Est autem ipsam molestiae at nulla.\nFacere commodi odio impedit beatae omnis et nemo nam. Qui cum temporibus assumenda voluptas libero ex at in. Dolor ratione qui voluptas at nesciunt quia corporis harum. Quis enim quos perspiciatis vel voluptatem quasi omnis voluptatem. Illo est perspiciatis aperiam repellendus quod itaque tempora sunt.\nNulla in neque occaecati commodi rerum. Omnis culpa autem aut rerum sunt. Unde quia est ut numquam ea deserunt veritatis. Velit eius nostrum ea minima exercitationem quia qui."], ["name", "Product #8 - 1285"], ["shipping_category_id", 1], ["slug", "product-8-1285"], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.245502"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-17 22:36:21.247552"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.249476' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.250560' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.251794' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.252315' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-17 22:36:21.255476"], ["stock_location_id", 1], ["updated_at", "2014-11-17 22:36:21.255476"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.256391' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.256903' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.258057' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.258546' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.262416' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.262956' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.263477' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-17 22:36:21.265194"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.265965' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.266503' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.267051' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.267702' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.268220' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-17 22:36:21.273076"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.273076"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-1285' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.277193' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:21.281730' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-17 22:36:21.290714' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-17 22:36:21.294482"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-17 22:36:21.294482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-17 22:36:21.296627"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-17 22:36:21.296627"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ted.botsford@green.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14162637815798xxxxxxxxxxxxx"], ["created_at", "2014-11-17 22:36:21.299688"], ["email", "ted.botsford@green.us"], ["encrypted_password", "083ca33e6ef49dd79b44546cc59d05f2a1a9238fe541dc396b17332d0ce09c524783aec3edfad70077edf78111dc669344e9d1caf4f27d428b9793da02e4bc66"], ["login", "ted.botsford@green.us"], ["password_salt", "VuLaqhoMZXTsU1fQGYoD"], ["updated_at", "2014-11-17 22:36:21.299688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:21.302387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-17 22:36:21.303822"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-17 22:36:21.303822"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R431584601' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R431584601%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R431584601' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NVXTd7hwzfZn5Mt9tDMH7g' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-17 22:36:21.309241"], ["currency", "USD"], ["email", "ted.botsford@green.us"], ["guest_token", "NVXTd7hwzfZn5Mt9tDMH7g"], ["number", "R431584601"], ["state", "cart"], ["updated_at", "2014-11-17 22:36:21.309241"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '9TJQ8XWW' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-17 22:36:21.311625"], ["identifier", "9TJQ8XWW"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-17 22:36:21.311625"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.313855' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-421523' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-421523"], ["updated_at", "2014-11-17 22:36:21.315036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kelsi.dare@graham.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1416263781279xxxxxxxxxxxxx"], ["created_at", "2014-11-17 22:36:21.332697"], ["email", "kelsi.dare@graham.us"], ["encrypted_password", "93fe1fed738e4245bada6c20bf2524c0d58127ec2234dc9d0e020d63b6cc3873edafb3455da94ea64a68724f8c00d334f8e1952478cba9ada5be13cf0c6c3539"], ["login", "kelsi.dare@graham.us"], ["password_salt", "r__tEU9qRM_WDd2FRzoX"], ["updated_at", "2014-11-17 22:36:21.332697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-17 22:36:21.337054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:21.338297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-17 22:36:21.339752"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-17 22:36:21.339752"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R078955218' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R078955218%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R078955218' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'oZW5R_R5oikCvqIcA13dtg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-17 22:36:21.345363"], ["currency", "USD"], ["email", "kelsi.dare@graham.us"], ["guest_token", "oZW5R_R5oikCvqIcA13dtg"], ["number", "R078955218"], ["state", "cart"], ["updated_at", "2014-11-17 22:36:21.345363"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-17 22:36:21.353024"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-17 22:36:21.353024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 339344' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-17 22:36:21.356025"], ["description", "Sit soluta dolor sit tempora."], ["name", "TaxCategory - 339344"], ["updated_at", "2014-11-17 22:36:21.356025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-17 22:36:21.359729"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-17 22:36:21.359729"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-5014' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-5014' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-17 22:36:21.351933"], ["created_at", "2014-11-17 22:36:21.363946"], ["description", "In ut veniam temporibus autem quos ad. Possimus consequatur velit odio quia voluptas. Totam sit a nisi exercitationem eum. Voluptatem voluptas quisquam consequatur eum et.\nAliquam laudantium sit placeat consequatur. Perferendis voluptatibus odit corrupti consequuntur repellendus. Qui voluptatem beatae eius nisi qui ut autem corrupti. Cum magnam aut enim non harum itaque consequuntur."], ["name", "Product #9 - 5014"], ["shipping_category_id", 1], ["slug", "product-9-5014"], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.363946"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-17 22:36:21.366461"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.368976' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.370293' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.371651' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.372307' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-17 22:36:21.375748"], ["stock_location_id", 1], ["updated_at", "2014-11-17 22:36:21.375748"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.376735' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.377286' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.378423' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.378926' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.382905' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.384046' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.385557' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-17 22:36:21.388880"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.390195' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.390976' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.391761' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.392697' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.393518' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-17 22:36:21.399289"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.399289"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-5014' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.403827' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:21.408540' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-5686' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-5686' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-17 22:36:21.413333"], ["created_at", "2014-11-17 22:36:21.416986"], ["description", "Ut eos at quas ut incidunt. Facilis est ipsum quam earum architecto et. Est ut earum molestias veniam velit nesciunt.\nQui sed quo et fugiat modi maxime explicabo perspiciatis. Dolore sed maxime officia voluptate magni qui. Nemo ab unde fuga aut. Ducimus est velit rerum laudantium ut minima sit possimus."], ["name", "Product #10 - 5686"], ["shipping_category_id", 1], ["slug", "product-10-5686"], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.416986"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-17 22:36:21.419106"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.421049' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.422116' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.423371' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.423907' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-17 22:36:21.427107"], ["stock_location_id", 1], ["updated_at", "2014-11-17 22:36:21.427107"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.427992' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.428570' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.429850' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.430384' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.434325' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.434875' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.435496' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-17 22:36:21.439247"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.440569' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.441408' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.442196' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.443094' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.443832' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-17 22:36:21.449636"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.449636"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-5686' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.453782' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:21.458329' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-17 22:36:21.467566' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-17 22:36:21.478881"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-17 22:36:21.478881"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:21.487616' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.488503' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-17 22:36:21.493922"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-17 22:36:21.493922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-17 22:36:21.496108"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-17 22:36:21.496108"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'madisyn.ziemann@larson.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141626378161410xxxxxxxxxxxxx"], ["created_at", "2014-11-17 22:36:21.499251"], ["email", "madisyn.ziemann@larson.info"], ["encrypted_password", "ee097a786c5b36a02c222a533ec1b420c4e7351b8840075f4915d3ee363fe8b50f23f727b8b01b102b7b1b84a879f507b5a0423ad7733843a152e7da9cb84c58"], ["login", "madisyn.ziemann@larson.info"], ["password_salt", "LeN8_YKA_13CXjY-YBvD"], ["updated_at", "2014-11-17 22:36:21.499251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:21.502117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-17 22:36:21.503595"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-17 22:36:21.503595"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R899084944' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R899084944%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R899084944' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '5mTv6rr7sOVWwloK2zaBZA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-17 22:36:21.509260"], ["currency", "USD"], ["email", "madisyn.ziemann@larson.info"], ["guest_token", "5mTv6rr7sOVWwloK2zaBZA"], ["number", "R899084944"], ["state", "cart"], ["updated_at", "2014-11-17 22:36:21.509260"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'YHJ78PPF' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-17 22:36:21.511711"], ["identifier", "YHJ78PPF"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-17 22:36:21.511711"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.513903' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-554104' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-554104"], ["updated_at", "2014-11-17 22:36:21.515217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'euna.predovic@huelschamplin.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141626378128511xxxxxxxxxxxxx"], ["created_at", "2014-11-17 22:36:21.528901"], ["email", "euna.predovic@huelschamplin.biz"], ["encrypted_password", "3bc8d6b529a2d8e7a858285a9d94dcdc347fbcc64e0d82bcb1bb30ccc93fce8b333421de3a5a9e55e7fc9917d5f0148af8f6d18f88c46dec801d8568fe6c7951"], ["login", "euna.predovic@huelschamplin.biz"], ["password_salt", "bQZ89rHyxU3XAbzou3KM"], ["updated_at", "2014-11-17 22:36:21.528901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-17 22:36:21.532142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:21.533546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-17 22:36:21.535138"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-11-17 22:36:21.535138"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R993035555' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R993035555%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R993035555' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '7jRLNUJdarqFBZnPczJkEw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-11-17 22:36:21.541117"], ["currency", "USD"], ["email", "euna.predovic@huelschamplin.biz"], ["guest_token", "7jRLNUJdarqFBZnPczJkEw"], ["number", "R993035555"], ["state", "cart"], ["updated_at", "2014-11-17 22:36:21.541117"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-17 22:36:21.562643"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-17 22:36:21.562643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 440235' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-17 22:36:21.565656"], ["description", "Est mollitia autem eligendi illo minus voluptate fuga."], ["name", "TaxCategory - 440235"], ["updated_at", "2014-11-17 22:36:21.565656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-11-17 22:36:21.568971"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-11-17 22:36:21.568971"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-8403' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-8403' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-17 22:36:21.561207"], ["created_at", "2014-11-17 22:36:21.573208"], ["description", "Hic veritatis sed accusamus aut esse tenetur ratione repudiandae. Non accusamus molestias reiciendis sit. Perferendis quibusdam nostrum illo quasi. Laborum commodi ea fugiat molestiae sit delectus soluta. Sed veniam debitis natus laudantium voluptatem."], ["name", "Product #11 - 8403"], ["shipping_category_id", 1], ["slug", "product-11-8403"], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.573208"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-17 22:36:21.575498"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.577498' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.578618' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.579903' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.580475' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-17 22:36:21.583793"], ["stock_location_id", 1], ["updated_at", "2014-11-17 22:36:21.583793"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.584780' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.585329' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.586460' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.586981' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.590865' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.591432' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.592117' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-11-17 22:36:21.593862"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.594602' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.595134' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.595656' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.596314' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.596828' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-17 22:36:21.601753"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.601753"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-8403' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.606266' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:21.610913' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-2943' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-2943' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-11-17 22:36:21.615502"], ["created_at", "2014-11-17 22:36:21.619092"], ["description", "Maiores voluptatibus pariatur totam mollitia ab rerum consequatur. Totam ea impedit necessitatibus tenetur. Enim in sed esse ut expedita perspiciatis consectetur. Ullam saepe voluptas unde magnam consequatur. Sit debitis mollitia totam ipsa eos est et ex."], ["name", "Product #12 - 2943"], ["shipping_category_id", 1], ["slug", "product-12-2943"], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.619092"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-17 22:36:21.621143"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.623094' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.624126' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.625372' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.625906' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-11-17 22:36:21.629065"], ["stock_location_id", 1], ["updated_at", "2014-11-17 22:36:21.629065"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.629939' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.630436' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.631520' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.632033' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.635837' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.636375' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.636921' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-11-17 22:36:21.640281"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.641637' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.642650' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.643681' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.644714' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-11-17 22:36:21.645436' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-11-17 22:36:21.651725"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-11-17 22:36:21.651725"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-2943' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.656030' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:21.660658' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-11-17 22:36:21.669719' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-11-17 22:36:21.671442"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-11-17 22:36:21.671442"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-11-17 22:36:21.674305' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.674813' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-17 22:36:21.678462"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-11-17 22:36:21.678462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-11-17 22:36:21.680494"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-11-17 22:36:21.680494"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'angeline@maggio.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141626378154612xxxxxxxxxxxxx"], ["created_at", "2014-11-17 22:36:21.683504"], ["email", "angeline@maggio.ca"], ["encrypted_password", "eb2d40c66d917190ed2a6027147f8a18f44dacfeee53ce82d195e248fa6353a1d9f760863128da1b089e18b8cdf1439b23c7bfff78c43c33974ed3c93cdb8141"], ["login", "angeline@maggio.ca"], ["password_salt", "emQpzbapPAv6kZwmDjt3"], ["updated_at", "2014-11-17 22:36:21.683504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:21.686110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-11-17 22:36:21.687515"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-11-17 22:36:21.687515"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R779765466' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R779765466%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R779765466' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'lIsuZYcxzwlbPSU5ar_iCQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-11-17 22:36:21.692886"], ["currency", "USD"], ["email", "angeline@maggio.ca"], ["guest_token", "lIsuZYcxzwlbPSU5ar_iCQ"], ["number", "R779765466"], ["state", "cart"], ["updated_at", "2014-11-17 22:36:21.692886"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'NK6QGFMQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-11-17 22:36:21.695251"], ["identifier", "NK6QGFMQ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-11-17 22:36:21.695251"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.697405' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-023451' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-023451"], ["updated_at", "2014-11-17 22:36:21.698596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'zane.heathcote@kuhlmandurgan.name' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175377665851xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:26.496199"], ["email", "zane.heathcote@kuhlmandurgan.name"], ["encrypted_password", "be82656278e0155eb2880922e933a6b8ebafe10440fdf151b2447da5947b83df0712992a2911bd80e44230be2f4ea5196863dae8fce31cecdbe82dcb67e2f3b6"], ["login", "zane.heathcote@kuhlmandurgan.name"], ["password_salt", "UKxqWgJVD7U3owvyDyS1"], ["updated_at", "2014-12-02 16:29:26.496199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:26.558640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:26.565177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:26.599906"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:26.599906"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R586547981' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R586547981%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R586547981' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'lK8PpYbbrAVPc0b-Euq4jQ' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:26.669830"], ["currency", "USD"], ["email", "zane.heathcote@kuhlmandurgan.name"], ["guest_token", "lK8PpYbbrAVPc0b-Euq4jQ"], ["number", "R586547981"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:26.669830"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'turner@brekke.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175377669362xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:26.678915"], ["email", "turner@brekke.biz"], ["encrypted_password", "82077681437684bad59d5dd43cd65b280b3263d81498d1afc0cf01ad9bdf766c76361f516df40fb8a8f305266b10e9c9a5bd06a207a9c9f3b8957cbe5d4f6b4b"], ["login", "turner@brekke.biz"], ["password_salt", "RsKZWsRSyypbMdFdHs68"], ["updated_at", "2014-12-02 16:29:26.678915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:26.682580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:26.683793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:26.685325"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:26.685325"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R620429249' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R620429249%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R620429249' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LVWSw0jli23F3fS-9F72gA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:26.690773"], ["currency", "USD"], ["email", "turner@brekke.biz"], ["guest_token", "LVWSw0jli23F3fS-9F72gA"], ["number", "R620429249"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:26.690773"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shany@kutchfeeney.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175377666973xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:26.698378"], ["email", "shany@kutchfeeney.name"], ["encrypted_password", "9161a968be06c8bac1fe13aae2d32c7580d89098e5746f329733aaca22f136fd04a2e7d8d74bad9f017a7eae6e6d5e2a3e8294607e5549bc96ce306c9f627a30"], ["login", "shany@kutchfeeney.name"], ["password_salt", "fLossRzzcvk2MsYQooZW"], ["updated_at", "2014-12-02 16:29:26.698378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:26.701992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:26.703190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:26.706795"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:26.706795"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R654417107' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R654417107%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R654417107' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'DH1f95Q1gjp_xWr70BAneQ' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:26.714914"], ["currency", "USD"], ["email", "shany@kutchfeeney.name"], ["guest_token", "DH1f95Q1gjp_xWr70BAneQ"], ["number", "R654417107"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:26.714914"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (3.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kristopher@dickens.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175377662014xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:26.724654"], ["email", "kristopher@dickens.ca"], ["encrypted_password", "25dce824a1c1ab0b5aa715d44bedf32539324efe47a472e90dd719aadb3f24ccb127b2fa7e1d7ed20c8066c398bb0cd7632091dc364054d742848562cc9133d9"], ["login", "kristopher@dickens.ca"], ["password_salt", "437Lp7zsGfhMxKcX3fhJ"], ["updated_at", "2014-12-02 16:29:26.724654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:26.728566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:26.730219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:26.731844"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:26.731844"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R476395078' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R476395078%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R476395078' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '7X_6o0o65PK4BVJEhAkJ0A' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:26.737355"], ["currency", "USD"], ["email", "kristopher@dickens.ca"], ["guest_token", "7X_6o0o65PK4BVJEhAkJ0A"], ["number", "R476395078"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:26.737355"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (45.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'candace.gorczany@goyette.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175377669065xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:26.789898"], ["email", "candace.gorczany@goyette.name"], ["encrypted_password", "93470b5c5b742c549003fcfffad010b7562c6752836c2d65d87c3b6b3ab27ae182d40ace0a669f05ba9144e5b7e5959e07ea00c7f6ab99a36468f95346d311e4"], ["login", "candace.gorczany@goyette.name"], ["password_salt", "JR2UX-LnMnYspb4vVVBT"], ["updated_at", "2014-12-02 16:29:26.789898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:26.794609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:26.795904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:26.797420"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:26.797420"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417099420' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R417099420%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417099420' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Mk2xiUDQHZly_M7TYRrGIQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:26.802780"], ["currency", "USD"], ["email", "candace.gorczany@goyette.name"], ["guest_token", "Mk2xiUDQHZly_M7TYRrGIQ"], ["number", "R417099420"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:26.802780"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (59.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'zella.wintheiser@larkin.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417537766896xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:26.870366"], ["email", "zella.wintheiser@larkin.com"], ["encrypted_password", "9d687e4545cb131100020c4a47e41691429b6b589b287ac0b4783f6e4d437180ee7b968fbdf75dbd2105af1b0ede0aa2d5bae5d3866255a697e95123bddbd184"], ["login", "zella.wintheiser@larkin.com"], ["password_salt", "X_t2wbERoNwAe3VCrKCu"], ["updated_at", "2014-12-02 16:29:26.870366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:26.876106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:26.877826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:26.879477"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:26.879477"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R315353333' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R315353333%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R315353333' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'F8F_arC4I61kYVHnfsDkhQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:26.885407"], ["currency", "USD"], ["email", "zella.wintheiser@larkin.com"], ["guest_token", "F8F_arC4I61kYVHnfsDkhQ"], ["number", "R315353333"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:26.885407"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (81.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'reed_medhurst@veum.co.uk' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175377665247xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:26.975143"], ["email", "reed_medhurst@veum.co.uk"], ["encrypted_password", "f23f415d8a4bca694c0d33776b4e065232eca8c3c44887cd71c4390701421f804c92e3b060dc203b146a5ac59d36a0305a3d17c6355aec345d47fe4a84bb41d0"], ["login", "reed_medhurst@veum.co.uk"], ["password_salt", "8mm6fGmLymw_9VNtgEtS"], ["updated_at", "2014-12-02 16:29:26.975143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:26.980637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:26.982292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:26.983795"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:26.983795"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R002212359' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R002212359%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R002212359' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XM8kbT3FqK18I27MwBRg9Q' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:26.989154"], ["currency", "USD"], ["email", "reed_medhurst@veum.co.uk"], ["guest_token", "XM8kbT3FqK18I27MwBRg9Q"], ["number", "R002212359"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:26.989154"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (93.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dora.thompson@rogahn.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175377673608xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.087894"], ["email", "dora.thompson@rogahn.biz"], ["encrypted_password", "7e0f893c88bec29acb1390692e268ee3c750d304c7b1a56712750f00059eeec57afe196d9688cf3b7248ccc61f28adaf6e2e54088e70f9b9cfff4d9669ee83b0"], ["login", "dora.thompson@rogahn.biz"], ["password_salt", "BaYySBAcw2f1Fv5rxKvT"], ["updated_at", "2014-12-02 16:29:27.087894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.091612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.092922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.094623"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.094623"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R687083407' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R687083407%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R687083407' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'vgI_kEd7UtGi8Z7MvYk7mw' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.105048"], ["currency", "USD"], ["email", "dora.thompson@rogahn.biz"], ["guest_token", "vgI_kEd7UtGi8Z7MvYk7mw"], ["number", "R687083407"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.105048"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (124.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'fausto@kassulke.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175377678749xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.237891"], ["email", "fausto@kassulke.co.uk"], ["encrypted_password", "d09737b036e0a20abcc4d2d87a519eae282e6e0430bc7e770a2b0968fcfa6cb8d40860cf716fc923672c8e742e456bc8b03c00cc1a396f326e36ade092aa6fc8"], ["login", "fausto@kassulke.co.uk"], ["password_salt", "xo1tPwevzfm24swoKtD5"], ["updated_at", "2014-12-02 16:29:27.237891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.243175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.244606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.246124"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.246124"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R725711006' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R725711006%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R725711006' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '8_eHh17OkwmGnDNLRkP-1w' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.251662"], ["currency", "USD"], ["email", "fausto@kassulke.co.uk"], ["guest_token", "8_eHh17OkwmGnDNLRkP-1w"], ["number", "R725711006"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.251662"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (198.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hettie@marvinpowlowski.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776732110xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.458659"], ["email", "hettie@marvinpowlowski.ca"], ["encrypted_password", "31279073c7aaeb11df18a8e8cde62f1f80c8839cbfb73b3e359e22fc3d8a5404ec75c8ea35be074d77c4ced87f78525244989d8cb8b1fc4bab7a6d1806e0066e"], ["login", "hettie@marvinpowlowski.ca"], ["password_salt", "QiBL6F5TT2s6RkwhLors"], ["updated_at", "2014-12-02 16:29:27.458659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.464488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.465973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.467408"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.467408"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R333742841' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R333742841%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R333742841' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XxewUThc-dtvmGKH__1b4Q' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.472940"], ["currency", "USD"], ["email", "hettie@marvinpowlowski.ca"], ["guest_token", "XxewUThc-dtvmGKH__1b4Q"], ["number", "R333742841"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.472940"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (141.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'barney@cormier.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776787311xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.622315"], ["email", "barney@cormier.us"], ["encrypted_password", "0c9d63c699b7374d0a86dd55f0f15e599fa09909c3ac9b25887f5397d1e226ee639634a6b5313333de9b5869d44e9e008918c18e7e768e9180ffa95dd2076a4f"], ["login", "barney@cormier.us"], ["password_salt", "59k9gFy8SGjZHxdSZJrS"], ["updated_at", "2014-12-02 16:29:27.622315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.627938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.629679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.631227"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.631227"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R936182238' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R936182238%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R936182238' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'mMZHnggf21b5cXpmV9S5nA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.636946"], ["currency", "USD"], ["email", "barney@cormier.us"], ["guest_token", "mMZHnggf21b5cXpmV9S5nA"], ["number", "R936182238"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.636946"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hassan_swaniawski@streich.info' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175377676412xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.645329"], ["email", "hassan_swaniawski@streich.info"], ["encrypted_password", "85fb78bd8bcf0e5be66cf5ec6f20cad92c71a2bc4d3d01f7f1b6ffdf29edbd340b7ea6e12333891665d59870a42ef79664f2e031b22cb71057b2ca16270a6528"], ["login", "hassan_swaniawski@streich.info"], ["password_salt", "8khszQktGYQ5ydKMm_UH"], ["updated_at", "2014-12-02 16:29:27.645329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.649245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.650501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.652295"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.652295"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R542207827' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R542207827%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R542207827' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'h6bqz6Dw_dGC1SFeBTumYg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.658393"], ["currency", "USD"], ["email", "hassan_swaniawski@streich.info"], ["guest_token", "h6bqz6Dw_dGC1SFeBTumYg"], ["number", "R542207827"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.658393"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lionel.conroy@hudson.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776752113xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.666337"], ["email", "lionel.conroy@hudson.name"], ["encrypted_password", "964295900c406abfa235a4edd3223729260ec40b535893c9149b73edadc7506db013100dafe574ce24ae07df599c49e30cb48edd5ccc5fce5c1edf8c91b0dc62"], ["login", "lionel.conroy@hudson.name"], ["password_salt", "i5H-kMFCnVz3bsaqztsz"], ["updated_at", "2014-12-02 16:29:27.666337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.670842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.731554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.733131"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.733131"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R318078996' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R318078996%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R318078996' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'MuZfcSiL37xIxf9SKNU3uQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.738681"], ["currency", "USD"], ["email", "lionel.conroy@hudson.name"], ["guest_token", "MuZfcSiL37xIxf9SKNU3uQ"], ["number", "R318078996"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.738681"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jess@wolff.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776734914xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.746160"], ["email", "jess@wolff.name"], ["encrypted_password", "bf3fb4dbf7a1fc022c5592cf00337e65e50bc552dd64d2a75669388a996356debd7ee613b7e6c08243c6a931ac3400474ca8c2ff1a899bbf18b990336657317c"], ["login", "jess@wolff.name"], ["password_salt", "sU2aV4eWkRMJLs-kBUJu"], ["updated_at", "2014-12-02 16:29:27.746160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.749766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.750956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.752272"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.752272"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R838931126' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R838931126%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R838931126' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'BQSbVig7VlP9IBD3EjUlwQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.757908"], ["currency", "USD"], ["email", "jess@wolff.name"], ["guest_token", "BQSbVig7VlP9IBD3EjUlwQ"], ["number", "R838931126"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.757908"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (3.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lisa_kunze@roob.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776710415xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.767134"], ["email", "lisa_kunze@roob.name"], ["encrypted_password", "ed12a1141d73cac923db042f9ada9ec52fee6efbf9e8b8839dad9377d96fb794089404b797eaf55a21d796c23bb2f2971ee08371f8ab389285f5b0c14b5eb392"], ["login", "lisa_kunze@roob.name"], ["password_salt", "nobHCPGCtvSvV1ocxzAj"], ["updated_at", "2014-12-02 16:29:27.767134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.771413"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.774643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.777336"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.777336"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R992714998' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R992714998%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R992714998' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '0kDqcjeBtChBPjUif5xNpA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.785605"], ["currency", "USD"], ["email", "lisa_kunze@roob.name"], ["guest_token", "0kDqcjeBtChBPjUif5xNpA"], ["number", "R992714998"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.785605"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'monroe@fritschgrimes.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776749916xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.793934"], ["email", "monroe@fritschgrimes.name"], ["encrypted_password", "247962b3636ec8be1e32812a299a60a4f18f779da1952016beb7b9a4a63e002854dd754ebe8d9f140eaa84ea829eb7473effe022f865ecc86ce017a3f4f9e2f4"], ["login", "monroe@fritschgrimes.name"], ["password_salt", "pz-UwTksreShaxoMHaQD"], ["updated_at", "2014-12-02 16:29:27.793934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.797633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.798914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.800401"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.800401"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R716858623' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R716858623%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R716858623' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'PDx7HkVOUCL93nKn7KAmjQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.805966"], ["currency", "USD"], ["email", "monroe@fritschgrimes.name"], ["guest_token", "PDx7HkVOUCL93nKn7KAmjQ"], ["number", "R716858623"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.805966"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'amely@boylebernier.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175377679617xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.813656"], ["email", "amely@boylebernier.name"], ["encrypted_password", "faa50c779b6f155d67425029124741dacf635c253c86a2cc1c3d14dbac46893ad74870efdf8ff6ded795fbe2c3a955fa0e98538295607507b4bbcf5ce44e35fb"], ["login", "amely@boylebernier.name"], ["password_salt", "676YUWDqrpqobGbwWk7h"], ["updated_at", "2014-12-02 16:29:27.813656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.817230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.818432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.819927"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.819927"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R192680042' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R192680042%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R192680042' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'jeF9Lq_hfy4W4FkDggOoDw' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.825460"], ["currency", "USD"], ["email", "amely@boylebernier.name"], ["guest_token", "jeF9Lq_hfy4W4FkDggOoDw"], ["number", "R192680042"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.825460"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'reece_gottlieb@wiza.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776795618xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.833129"], ["email", "reece_gottlieb@wiza.com"], ["encrypted_password", "7415427f11d52dd9a013e95c51383db27bc1d2cb70c30900cfe5525a3aa852ae66e07177900fb1e2e9f892d4be9e353335868038a3ff296be7c5aa50efea5402"], ["login", "reece_gottlieb@wiza.com"], ["password_salt", "R4BEKna9b8j6F1Xzv3PL"], ["updated_at", "2014-12-02 16:29:27.833129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.837281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.838774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.841946"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.841946"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R259486449' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R259486449%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R259486449' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '7OnEBs2rLgJ0U_1i_mRu4g' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.850381"], ["currency", "USD"], ["email", "reece_gottlieb@wiza.com"], ["guest_token", "7OnEBs2rLgJ0U_1i_mRu4g"], ["number", "R259486449"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.850381"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brennon.watsica@schinner.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417537767919xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.860869"], ["email", "brennon.watsica@schinner.com"], ["encrypted_password", "e42891c5df034a41c616a0be652abaeb51b63157c77fbbe01902eea7bca1ede6dd74c90a01104e7eab11f2294e638750ab9881c0ec13f81cd1311a9c72ca5308"], ["login", "brennon.watsica@schinner.com"], ["password_salt", "HUv_pvHRZ59rmozPbrrU"], ["updated_at", "2014-12-02 16:29:27.860869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.865764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.867103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.868485"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.868485"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R228338954' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R228338954%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R228338954' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'g7-6czEbngSB78L0MMRXmQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.874186"], ["currency", "USD"], ["email", "brennon.watsica@schinner.com"], ["guest_token", "g7-6czEbngSB78L0MMRXmQ"], ["number", "R228338954"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.874186"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kory@lesch.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776720020xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.882247"], ["email", "kory@lesch.name"], ["encrypted_password", "b1c7d18d37565d3fb1a17d6090eef8b035d75f51ea25b33b36b79b77388b8df160005722bac109aaeda1d6d86f602f17151d7cac3fd80ecf6112f027b301ef38"], ["login", "kory@lesch.name"], ["password_salt", "2k23CCM_qjeyWjnZfeSU"], ["updated_at", "2014-12-02 16:29:27.882247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.886182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.887862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.889434"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.889434"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153381900' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R153381900%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153381900' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bGGj9-YUYSeetiWs-xVz0A' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.895355"], ["currency", "USD"], ["email", "kory@lesch.name"], ["guest_token", "bGGj9-YUYSeetiWs-xVz0A"], ["number", "R153381900"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.895355"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (3.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shayne@ortizkuhic.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175377671421xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.904081"], ["email", "shayne@ortizkuhic.biz"], ["encrypted_password", "240fc824d38a79797ba2fcab24ba197b6295b18b86b81e8885851930f84825bca2f27eedb9671ace52b4bf938ffb55b5b7c2719a0705ccc5053f4ce67b4521dd"], ["login", "shayne@ortizkuhic.biz"], ["password_salt", "KRUA_y-xuS832xkqdXHH"], ["updated_at", "2014-12-02 16:29:27.904081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.907911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.911148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.914036"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.914036"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R700753177' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R700753177%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R700753177' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bwSuvVEQc1ghkvFt0nos5w' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:27.923805"], ["currency", "USD"], ["email", "shayne@ortizkuhic.biz"], ["guest_token", "bwSuvVEQc1ghkvFt0nos5w"], ["number", "R700753177"], ["state", "payment"], ["updated_at", "2014-12-02 16:29:27.923805"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'katarina@weber.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776719522xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:27.985691"], ["email", "katarina@weber.com"], ["encrypted_password", "2a149400bdad5ff0d55bb8b7eb2249ece619be15a23b35f8dccb56fdde9c357daecc7d211b0c9a336475591f35ff3bd72efe2452978a1fd7a591330790bbfc4c"], ["login", "katarina@weber.com"], ["password_salt", "ozU-v7B2sVbj6t-aZ8Mj"], ["updated_at", "2014-12-02 16:29:27.985691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.989225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.990639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:27.992130"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:27.992130"], ["zipcode", "35005"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R721217942' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R721217942%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R721217942' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'rjxv406udI_WLPT6zvkyqg' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:28.002148"], ["currency", "USD"], ["email", "katarina@weber.com"], ["guest_token", "rjxv406udI_WLPT6zvkyqg"], ["number", "R721217942"], ["state", "cart"], ["updated_at", "2014-12-02 16:29:28.002148"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 16:29:28.127317"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 16:29:28.127317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 472922' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 16:29:28.137365"], ["description", "Error quos porro sit est."], ["name", "TaxCategory - 472922"], ["updated_at", "2014-12-02 16:29:28.137365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 16:29:28.162637"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:28.162637"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-1280' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-1280' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:29:28.108326"], ["created_at", "2014-12-02 16:29:28.168360"], ["description", "Earum in molestias vitae odio exercitationem. Dolorem suscipit fugiat et sed. Accusamus ut vitae incidunt ut voluptatibus perspiciatis hic et.\nTemporibus aliquid sed error quisquam sit voluptatem in. Pariatur id non nulla illo minima qui assumenda ea. Non velit ut sapiente minus dicta fugiat error ipsum. Officia quo voluptas et est. Qui harum id dolore sit in.\nDebitis velit quia labore ipsa neque. Ratione rerum nihil praesentium asperiores totam eveniet fugiat. Sed ut doloremque incidunt excepturi facere. Odio sed autem quaerat dolore ut accusamus et.\nSapiente sit dignissimos suscipit aspernatur explicabo non. Molestias alias ut natus est et. Labore debitis aliquam eligendi aut. Expedita repellendus nihil delectus ut maiores. Hic iste placeat amet atque qui.\nVoluptas et voluptate aliquam commodi adipisci sunt iste. Deserunt voluptates laborum sunt quis voluptatibus voluptas beatae. Vel dolore magnam sint commodi eveniet id enim autem. Ut eos debitis fuga minus. Enim reiciendis commodi dolor voluptatem explicabo itaque."], ["name", "Product #1 - 1280"], ["shipping_category_id", 1], ["slug", "product-1-1280"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:28.168360"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 16:29:28.171226"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.179255' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.180602' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.217816' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.219228' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:29:28.241494"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:29:28.241494"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.242846' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.243464' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.244774' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.245300' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.258113' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.258738' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.259315' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 16:29:28.261070"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.262292' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.262820' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.263332' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.263867' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.264370' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:29:28.284803"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:28.284803"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-1280' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:28.296897' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:28.331957' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-4211' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-4211' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:29:28.340342"], ["created_at", "2014-12-02 16:29:28.344273"], ["description", "Aut vel saepe earum unde eaque fuga ab. Dolores natus id quia quis incidunt. Suscipit nihil vel qui qui eum. Fugit ad debitis reprehenderit quisquam voluptatem sint sit.\nVelit necessitatibus iusto aut laborum voluptas. Et alias qui ea iure doloremque quisquam. Pariatur veritatis commodi incidunt aut delectus adipisci voluptatum sunt. Natus voluptatibus odit itaque iusto harum optio vel. Deserunt rem minima veritatis facere fuga.\nVoluptas quas aut doloribus unde at incidunt eligendi aliquam. In nam cumque aperiam praesentium nihil modi. Nihil doloribus ullam magnam ratione in sint. Excepturi aut autem corporis et assumenda. Dolore et magnam nesciunt quis corrupti.\nEnim saepe perferendis aliquam qui voluptatem. Laudantium iste consequuntur vel sunt. Soluta voluptates officiis magnam et aut aliquid. Eos cupiditate quam facilis vitae veritatis et sed."], ["name", "Product #2 - 4211"], ["shipping_category_id", 1], ["slug", "product-2-4211"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:28.344273"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 16:29:28.346525"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.348635' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.349770' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.351134' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.351691' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:29:28.355059"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:29:28.355059"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.356018' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.356612' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.357791' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.358319' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.362724' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.364326' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.365577' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 16:29:28.368740"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.369963' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.370721' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.371521' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.372450' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.373173' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:29:28.378639"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:28.378639"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-4211' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:28.383111' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:28.402818' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 16:29:28.426983' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:29:28.449401"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 16:29:28.449401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:29:28.481948"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 16:29:28.481948"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'adelia@nader.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776858123xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:28.507985"], ["email", "adelia@nader.com"], ["encrypted_password", "8e223af3feadcba00795179545d3bfd8e4c1705ef01b70d1cbcb9c3ee514e0d9e020df678d9bf2ab1ff07aaed62f6c15c6730919b75cd2cc9f1dbc29791d333c"], ["login", "adelia@nader.com"], ["password_salt", "qECpizPESKW5w8tRfTsT"], ["updated_at", "2014-12-02 16:29:28.507985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:28.512383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:28.514282"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 16:29:28.514282"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R519600439' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R519600439%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R519600439' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'uY8tP70x-TmbzyBCsKXFZg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 16:29:28.519889"], ["currency", "USD"], ["email", "adelia@nader.com"], ["guest_token", "uY8tP70x-TmbzyBCsKXFZg"], ["number", "R519600439"], ["state", "cart"], ["updated_at", "2014-12-02 16:29:28.519889"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'ZJKBAD3C' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 16:29:28.533660"], ["identifier", "ZJKBAD3C"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 16:29:28.533660"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:28.538903' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-102420' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-102420"], ["updated_at", "2014-12-02 16:29:28.541012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'aditya@purdy.com' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776874124xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:28.581029"], ["email", "aditya@purdy.com"], ["encrypted_password", "caf3cb8f4921f72a582c0881d25ef65362412821b5ebc260b037c87b4346d75d9a5f08580e073bf20ad01eca431360a16301f47c83a896271794f88c21d247e2"], ["login", "aditya@purdy.com"], ["password_salt", "1sx7nus6H1qMzGVXmrMf"], ["updated_at", "2014-12-02 16:29:28.581029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:28.585314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:28.586551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:28.588038"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:28.588038"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R084906231' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R084906231%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R084906231' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9pXUpYsz9vxin_LZZzYc1g' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:28.593400"], ["currency", "USD"], ["email", "aditya@purdy.com"], ["guest_token", "9pXUpYsz9vxin_LZZzYc1g"], ["number", "R084906231"], ["state", "cart"], ["updated_at", "2014-12-02 16:29:28.593400"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 16:29:28.600299"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 16:29:28.600299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 272014' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 16:29:28.605415"], ["description", "Facilis sit ea dignissimos omnis labore cumque accusantium."], ["name", "TaxCategory - 272014"], ["updated_at", "2014-12-02 16:29:28.605415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 16:29:28.611427"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:28.611427"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5519' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5519' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:29:28.599279"], ["created_at", "2014-12-02 16:29:28.617206"], ["description", "Soluta consequatur suscipit incidunt deleniti rerum tempora et. Eligendi velit nulla ea nobis. Est optio autem sint rerum et. Consequatur et id doloribus aliquam."], ["name", "Product #3 - 5519"], ["shipping_category_id", 1], ["slug", "product-3-5519"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:28.617206"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-12-02 16:29:28.619533"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.621541' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.622721' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.624312' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.625109' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:29:28.628747"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:29:28.628747"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.629767' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.630322' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.631436' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.631923' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.635948' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.637637' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.639098' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 16:29:28.642224"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.643401' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.644145' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.644944' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.645814' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.646544' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:29:28.652140"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:28.652140"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5519' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:28.656809' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:28.662054' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2778' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2778' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:29:28.667309"], ["created_at", "2014-12-02 16:29:28.670945"], ["description", "Ut eveniet et sunt natus autem est. Commodi sunt id cumque magnam sint mollitia consequatur. Enim est sint fugiat libero laudantium aut. At repellendus quae culpa corrupti ullam. Et expedita sit vel distinctio sequi sunt a debitis.\nAut non laborum quaerat dolorum. Nisi rerum architecto ea at voluptatem et ut. Inventore nisi omnis iusto optio repellendus. Quo harum quaerat ut tempora. Ullam impedit dicta blanditiis velit quia qui cupiditate."], ["name", "Product #4 - 2778"], ["shipping_category_id", 1], ["slug", "product-4-2778"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:28.670945"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-12-02 16:29:28.673002"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.674912' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.675927' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.677196' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.677745' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:29:28.681039"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:29:28.681039"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.681949' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.682468' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.683628' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.684182' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.688115' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.688649' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.689170' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 16:29:28.690965"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.691695' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.692212' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.692739' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.693376' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.693806' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:29:28.698498"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:28.698498"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2778' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:28.702587' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:28.711673' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 16:29:28.721869' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:29:28.725703"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 16:29:28.725703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:29:28.727875"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 16:29:28.727875"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'anastasia_conroy@morar.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776896325xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:28.730911"], ["email", "anastasia_conroy@morar.info"], ["encrypted_password", "ce28bb5e1ec290ced3bc95ae55b54339c902ac17531e2a5143a29fc6280af7d79fd4f88fa9f1f6c6844873556d2d5a96fa3303c1334409dadeffb241cd85c78a"], ["login", "anastasia_conroy@morar.info"], ["password_salt", "Xz1cyHdFYzJdPmuYk6Dp"], ["updated_at", "2014-12-02 16:29:28.730911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:28.733517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:28.734867"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 16:29:28.734867"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R489286974' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R489286974%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R489286974' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Guw3NuwBl_BXW2cecjOteA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 16:29:28.740018"], ["currency", "USD"], ["email", "anastasia_conroy@morar.info"], ["guest_token", "Guw3NuwBl_BXW2cecjOteA"], ["number", "R489286974"], ["state", "cart"], ["updated_at", "2014-12-02 16:29:28.740018"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'Z3ZVTJJC' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 16:29:28.742403"], ["identifier", "Z3ZVTJJC"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 16:29:28.742403"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:28.744529' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-304304' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-304304"], ["updated_at", "2014-12-02 16:29:28.745804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dillon@jakubowskilehner.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776813126xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:28.762474"], ["email", "dillon@jakubowskilehner.us"], ["encrypted_password", "31af4f80ba415cf41ab394f73c36d3b711fff500168bdaa57d2430d0509217650cfed13b979c1279da3dc4e27742e850df1547eb110f29bc3092776cdd32f15c"], ["login", "dillon@jakubowskilehner.us"], ["password_salt", "3dJX3KXdLsnAwmk4qS17"], ["updated_at", "2014-12-02 16:29:28.762474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:28.765687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:28.767016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:28.768445"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:28.768445"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R432524529' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R432524529%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R432524529' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'h_FLWw3cWc8IfhpxBIGUAw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:28.774345"], ["currency", "USD"], ["email", "dillon@jakubowskilehner.us"], ["guest_token", "h_FLWw3cWc8IfhpxBIGUAw"], ["number", "R432524529"], ["state", "cart"], ["updated_at", "2014-12-02 16:29:28.774345"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 16:29:28.784468"], ["name", "ShippingCategory #3"], ["updated_at", "2014-12-02 16:29:28.784468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 282259' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 16:29:28.787380"], ["description", "Laudantium voluptatum itaque sed hic veniam."], ["name", "TaxCategory - 282259"], ["updated_at", "2014-12-02 16:29:28.787380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 16:29:28.791018"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:28.791018"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8779' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8779' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:29:28.783129"], ["created_at", "2014-12-02 16:29:28.795800"], ["description", "Numquam quia ad esse ea sed sed dolorem cum. Asperiores enim quasi est eveniet autem aperiam excepturi. Est suscipit iste ut ut ea.\nDolorem dolor iure repellendus sit. Corporis qui eius animi facere excepturi aut aut nam. Et ipsum aut et aut iure consequatur. Enim est voluptatum accusantium iusto dolore.\nEt itaque iure id iste. Error velit magni esse assumenda ipsa. Et culpa perspiciatis libero totam sunt. Velit deleniti expedita perspiciatis quis amet pariatur.\nQuod praesentium et omnis voluptatum. Eligendi explicabo et et maiores voluptatem et suscipit. Sunt ullam porro neque asperiores quo sunt dolor. Voluptatem fugiat quasi doloremque possimus asperiores. Sed reiciendis corporis dolor nisi.\nDolores in autem dolores illum sit consequatur hic. Maxime autem numquam voluptas odio. Nihil cum ipsa eius et nostrum magni eaque."], ["name", "Product #5 - 8779"], ["shipping_category_id", 1], ["slug", "product-5-8779"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:28.795800"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-12-02 16:29:28.798537"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.800894' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.802174' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.803570' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.804172' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:29:28.808221"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:29:28.808221"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.809655' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.810406' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.812353' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.813628' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.821030' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.821863' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.822496' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 16:29:28.824350"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.825099' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.825621' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.826132' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.826766' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.827305' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:29:28.833255"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:28.833255"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8779' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:28.838843' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:28.845214' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-7357' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-7357' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:29:28.850321"], ["created_at", "2014-12-02 16:29:28.854006"], ["description", "Numquam beatae ut ut maiores ea iste nisi. Omnis nam ea culpa fugit asperiores aperiam iste sit. Consectetur nulla quo dignissimos iure tenetur dolore vel. Qui ea et voluptatibus tempore ea ipsum consequuntur.\nPraesentium ab reprehenderit eos quasi sapiente eum harum id. Excepturi ipsam aut omnis ut quo voluptates sunt. Sed veritatis maxime architecto asperiores numquam quia iusto. Est ipsa quae ipsam velit."], ["name", "Product #6 - 7357"], ["shipping_category_id", 1], ["slug", "product-6-7357"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:28.854006"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-12-02 16:29:28.856156"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.858056' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.859171' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.860474' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.861017' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:29:28.864991"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:29:28.864991"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.866049' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.866613' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.867831' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.868393' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.872391' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.874177' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.875453' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 16:29:28.878563"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.879653' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.880435' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.881270' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.882174' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.882900' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:29:28.888283"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:28.888283"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-7357' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:28.892391' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:28.896870' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 16:29:28.905489' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:29:28.909231"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 16:29:28.909231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:29:28.911308"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 16:29:28.911308"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'herbert@pollichlittle.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776894227xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:28.914268"], ["email", "herbert@pollichlittle.biz"], ["encrypted_password", "b513810f5bd68310de19a502ef604cfbb59968298719c477d4c7813fca966dea0ad9bd3015c3ecf24a64341f7277e281a8541c91cd8f1358bd382fbb580bc962"], ["login", "herbert@pollichlittle.biz"], ["password_salt", "JdxU6WBrbwuDzP-x92o5"], ["updated_at", "2014-12-02 16:29:28.914268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:28.916869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:28.918261"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 16:29:28.918261"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R291396700' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R291396700%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R291396700' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9CydTbsLvsA-WcO-RnnA4w' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 16:29:28.923597"], ["currency", "USD"], ["email", "herbert@pollichlittle.biz"], ["guest_token", "9CydTbsLvsA-WcO-RnnA4w"], ["number", "R291396700"], ["state", "cart"], ["updated_at", "2014-12-02 16:29:28.923597"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'TZ35EZ3D' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 16:29:28.926244"], ["identifier", "TZ35EZ3D"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 16:29:28.926244"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:28.928620' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-554550' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-554550"], ["updated_at", "2014-12-02 16:29:28.929853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hayden@cummings.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776885528xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:28.958478"], ["email", "hayden@cummings.com"], ["encrypted_password", "3037184d86a4ed1d4991885db11a6d7c9bd2295d59d08b189effab450612efb1d553572b10eb4ed51d0578e9d15191461a8408940615bf43a004cbd8dac2d01b"], ["login", "hayden@cummings.com"], ["password_salt", "r1gSEwiELWM3skTMmGhm"], ["updated_at", "2014-12-02 16:29:28.958478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:28.961738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:28.962984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:28.964397"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:28.964397"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R625706455' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R625706455%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R625706455' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'idbInIVoKteZWIi1bdqPzA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:28.970034"], ["currency", "USD"], ["email", "hayden@cummings.com"], ["guest_token", "idbInIVoKteZWIi1bdqPzA"], ["number", "R625706455"], ["state", "cart"], ["updated_at", "2014-12-02 16:29:28.970034"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 16:29:28.979483"], ["name", "ShippingCategory #4"], ["updated_at", "2014-12-02 16:29:28.979483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 885737' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 16:29:28.982157"], ["description", "Qui voluptatum at asperiores in illo dolore eveniet."], ["name", "TaxCategory - 885737"], ["updated_at", "2014-12-02 16:29:28.982157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 16:29:28.985414"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:28.985414"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-2248' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-2248' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:29:28.978371"], ["created_at", "2014-12-02 16:29:28.988947"], ["description", "Numquam ad dolorem aperiam sint. Laborum mollitia et voluptatem et cupiditate optio tempora dolore. Dolor aut quia ut fugit eligendi odio provident autem. Nobis odio placeat molestiae atque doloribus et quis omnis.\nAperiam libero et dolore soluta. Ea iusto rem fuga veniam. Labore animi minus aspernatur alias ratione exercitationem dignissimos est.\nQui et placeat quasi distinctio quos libero assumenda tempore. Repudiandae est voluptatem neque dolor. Qui quo modi consequuntur quia quia. Quaerat dolore quasi sed non voluptatibus omnis.\nVoluptatem cum quod ut dignissimos nostrum dolor commodi. Aspernatur et blanditiis error non. Veritatis neque aut tempora pariatur omnis natus consequuntur. Aut nulla non voluptatum ut ullam. Pariatur cumque et unde officia vero.\nOfficiis animi dolore corrupti libero qui odit. Sequi veritatis inventore reiciendis in adipisci aspernatur. Nihil illum similique fugiat sed velit quibusdam."], ["name", "Product #7 - 2248"], ["shipping_category_id", 1], ["slug", "product-7-2248"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:28.988947"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-12-02 16:29:28.991229"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.993387' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.994661' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.996062' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:28.996675' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:29:29.000211"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:29:29.000211"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:29.001205' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.001744' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.002872' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.003359' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.007307' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.007856' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.008422' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 16:29:29.010508"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.011306' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.011855' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.012415' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.013046' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.013527' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:29:29.018584"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:29.018584"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-2248' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:29.022887' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:29.027559' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3734' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3734' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:29:29.032969"], ["created_at", "2014-12-02 16:29:29.036669"], ["description", "Accusamus voluptas consequuntur est sed quis. Tenetur unde dignissimos quia quisquam voluptatem. Eum fugit aut voluptas rerum ab molestiae. Molestias ut excepturi sed vel ea est incidunt. Veritatis autem culpa est voluptas molestias ex.\nAssumenda ex facere ab est enim perspiciatis. Expedita voluptatem repellat soluta quae quasi. Magni dolor suscipit adipisci voluptas beatae voluptatibus ducimus.\nEst mollitia rem ut repudiandae. Dicta aut pariatur in et. Aut perspiciatis in voluptatum earum fuga est."], ["name", "Product #8 - 3734"], ["shipping_category_id", 1], ["slug", "product-8-3734"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:29.036669"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-12-02 16:29:29.038747"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:29.040756' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.041845' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.043139' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.043727' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:29:29.047062"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:29:29.047062"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:29.048013' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.048539' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.049666' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.050149' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.054005' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.054570' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.055070' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 16:29:29.056841"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.057596' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.058110' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.058660' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.059264' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.059737' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:29:29.064672"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:29.064672"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3734' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:29.069139' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:29.073726' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 16:29:29.082390' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:29:29.086126"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 16:29:29.086126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:29:29.088134"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 16:29:29.088134"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'theresa@stehrspencer.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776963029xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:29.091030"], ["email", "theresa@stehrspencer.info"], ["encrypted_password", "68cdfab95fdc42fd7dd9c2dce10c9a077ba55078ccbbb6d774ae85e3fcef1e69eaba204f4d913f5b86ccec7630f654c030d3fc6973dd8c34dace6e5f01ec559e"], ["login", "theresa@stehrspencer.info"], ["password_salt", "NFJX8cR65iRsjA3ivTxk"], ["updated_at", "2014-12-02 16:29:29.091030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:29.093594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:29.094970"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 16:29:29.094970"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R664883780' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R664883780%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R664883780' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '956MlefL8WZ__pWX7kz_4A' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 16:29:29.100101"], ["currency", "USD"], ["email", "theresa@stehrspencer.info"], ["guest_token", "956MlefL8WZ__pWX7kz_4A"], ["number", "R664883780"], ["state", "cart"], ["updated_at", "2014-12-02 16:29:29.100101"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WV3MGSXL' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 16:29:29.102465"], ["identifier", "WV3MGSXL"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 16:29:29.102465"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:29.104701' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-012520' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-012520"], ["updated_at", "2014-12-02 16:29:29.105943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'bert.nikolaus@schoen.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776969730xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:29.123138"], ["email", "bert.nikolaus@schoen.com"], ["encrypted_password", "53d7a437315389ca47a2b3332a1c4895d73b100093b4c5537fc867c2adf95f7c5b85090b26d71450c59dd3bc976b4d08d84f4a16e0683b976a4f9376333d4321"], ["login", "bert.nikolaus@schoen.com"], ["password_salt", "M-eR7VWfzCpY_WcYxj-k"], ["updated_at", "2014-12-02 16:29:29.123138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:29.127414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:29.128943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:29.130438"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:29.130438"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R503324127' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R503324127%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R503324127' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'gihTeKMVTq05Y5Piz1GBfQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:29.136592"], ["currency", "USD"], ["email", "bert.nikolaus@schoen.com"], ["guest_token", "gihTeKMVTq05Y5Piz1GBfQ"], ["number", "R503324127"], ["state", "cart"], ["updated_at", "2014-12-02 16:29:29.136592"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 16:29:29.146048"], ["name", "ShippingCategory #5"], ["updated_at", "2014-12-02 16:29:29.146048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 760603' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 16:29:29.149073"], ["description", "Quia consequatur et praesentium molestiae ad facere fugit."], ["name", "TaxCategory - 760603"], ["updated_at", "2014-12-02 16:29:29.149073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 16:29:29.152455"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:29.152455"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-7318' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-7318' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:29:29.144836"], ["created_at", "2014-12-02 16:29:29.156410"], ["description", "Magni ut omnis iusto quod eum dicta corrupti et. Sed quo commodi dolor neque aspernatur. In aut cum sit deserunt. Ea repudiandae dolore aspernatur nemo.\nArchitecto in natus culpa voluptatem. Est placeat natus nobis et quaerat fugiat. Neque odio reprehenderit veniam eum quos unde a dolores. Ut doloribus libero at qui eos. Accusamus et aperiam perferendis earum suscipit.\nNon consequuntur voluptatem ex neque sint architecto. Est possimus velit enim soluta ut quaerat ab. Non quis cumque assumenda sit est fuga ad. Voluptatibus pariatur cupiditate totam veniam iure. Et debitis placeat deleniti dignissimos dolor est.\nHarum nostrum animi accusantium excepturi saepe. Repudiandae est maxime atque sint. Voluptatem laboriosam non autem delectus ut. Sit eligendi enim est delectus nisi reprehenderit dolorem."], ["name", "Product #9 - 7318"], ["shipping_category_id", 1], ["slug", "product-9-7318"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:29.156410"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-12-02 16:29:29.158697"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:29.160836' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.162214' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.163565' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.164163' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:29:29.167640"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:29:29.167640"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:29.168637' WHERE "spree_variants"."id" = 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.169799' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.172508' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.173502' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.3ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.180190' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.180909' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.181611' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 16:29:29.183246"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.183905' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.184349' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.184805' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.185373' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.185802' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:29:29.190573"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:29.190573"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-7318' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:29.195240' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:29.199692' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-9595' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-9595' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:29:29.205491"], ["created_at", "2014-12-02 16:29:29.209029"], ["description", "Laudantium et fuga iure nihil voluptatem deserunt veniam dolorem. Tempora voluptas eum explicabo odio nemo maiores dolorum aut. Officiis nulla mollitia quia rerum necessitatibus.\nIllum quia incidunt minus voluptatem. Quae odit aut sunt voluptatibus officia. Esse officiis doloribus quia ipsum non possimus velit.\nDoloremque ut exercitationem architecto sunt molestiae. Iste et nihil eius ea rerum placeat. Nam libero aut magnam reiciendis in. Velit at ut iure deleniti. Consequatur quam laboriosam exercitationem et sint quo corporis.\nSed est distinctio voluptatum modi molestiae sed. Minus animi repellendus enim officiis. Possimus deleniti praesentium porro eaque consequatur."], ["name", "Product #10 - 9595"], ["shipping_category_id", 1], ["slug", "product-10-9595"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:29.209029"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-12-02 16:29:29.211120"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:29.213052' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.214062' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.215271' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.215810' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:29:29.219093"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:29:29.219093"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:29.220028' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.220548' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.221607' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.222100' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.225835' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.226403' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.226921' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 16:29:29.228661"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.229354' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.229865' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.230428' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.231042' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.231522' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:29:29.236194"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:29.236194"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-9595' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:29.240262' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:29.244717' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 16:29:29.253279' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 16:29:29.264604"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 16:29:29.264604"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:29.268128' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:29.268715' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:29:29.272583"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 16:29:29.272583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:29:29.274808"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 16:29:29.274808"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shaina_crona@haag.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776929031xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:29.277788"], ["email", "shaina_crona@haag.biz"], ["encrypted_password", "534658154ac0aa5d1f54703f16162ef50a097cecffccd0ada8bf13c14c6f38d48891aaf55255afafc3cef1c5f2414c16097e6a6becfae759274334eae01c6e2d"], ["login", "shaina_crona@haag.biz"], ["password_salt", "2f4EwX86tt6KXJRfacuS"], ["updated_at", "2014-12-02 16:29:29.277788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:29.280418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:29.281834"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 16:29:29.281834"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R464970667' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R464970667%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R464970667' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Zh2ikSt8lhIrd2y-X80yUA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 16:29:29.287051"], ["currency", "USD"], ["email", "shaina_crona@haag.biz"], ["guest_token", "Zh2ikSt8lhIrd2y-X80yUA"], ["number", "R464970667"], ["state", "cart"], ["updated_at", "2014-12-02 16:29:29.287051"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'DNBTVK5L' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 16:29:29.289501"], ["identifier", "DNBTVK5L"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 16:29:29.289501"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:29.291621' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-103011' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-103011"], ["updated_at", "2014-12-02 16:29:29.292771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'davion@crooks.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776997732xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:29.309809"], ["email", "davion@crooks.co.uk"], ["encrypted_password", "60bf3ea32003077a67816238efeea0c665a94bbbd2f5572fdb70680383ed8771e96b91faf9e7bf31ab1841ddf63331fdee886b65ccb80eb249259a069ff44575"], ["login", "davion@crooks.co.uk"], ["password_salt", "bTRnXKiQKZsDZ5RZnxxE"], ["updated_at", "2014-12-02 16:29:29.309809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:29.314109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:29.315490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:29.316858"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:29.316858"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R487523044' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R487523044%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R487523044' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'SMM6P6qQX2yHp6X33CQx_A' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:29:29.322417"], ["currency", "USD"], ["email", "davion@crooks.co.uk"], ["guest_token", "SMM6P6qQX2yHp6X33CQx_A"], ["number", "R487523044"], ["state", "cart"], ["updated_at", "2014-12-02 16:29:29.322417"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 16:29:29.331108"], ["name", "ShippingCategory #6"], ["updated_at", "2014-12-02 16:29:29.331108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 958550' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 16:29:29.333782"], ["description", "Iusto voluptatibus officiis quod praesentium ut magnam error."], ["name", "TaxCategory - 958550"], ["updated_at", "2014-12-02 16:29:29.333782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 16:29:29.337264"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 16:29:29.337264"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-9524' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-9524' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:29:29.330015"], ["created_at", "2014-12-02 16:29:29.341061"], ["description", "Nihil dolorum repellendus eos doloremque facere. Iure totam assumenda aut omnis. Est molestias perspiciatis ipsum rerum exercitationem consequatur. Voluptatem amet odio id in. Ut accusamus velit mollitia exercitationem.\nEx illo esse facilis quia neque vero qui. Qui dolores optio est aut saepe est aut. Consectetur dolor et rerum eos est. Molestiae eum aut cumque facere repudiandae et numquam.\nIn corrupti maiores a reprehenderit. Minima est laborum explicabo repudiandae ipsum nihil. Cupiditate voluptates laboriosam saepe omnis maiores expedita vel ut. Quo minus voluptatem qui ut maxime qui.\nEarum ut autem minus itaque quaerat omnis ad adipisci. Distinctio corporis culpa officiis sunt aut qui omnis. Qui reiciendis qui dolores consequuntur incidunt quas velit libero. Voluptatem a nulla sunt possimus. Aut repellendus corrupti tempore quia in distinctio nobis."], ["name", "Product #11 - 9524"], ["shipping_category_id", 1], ["slug", "product-11-9524"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:29.341061"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-12-02 16:29:29.343447"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:29.345964' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.347323' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.348747' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.349315' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:29:29.352727"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:29:29.352727"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:29.353689' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.354204' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.355287' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.355777' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.359760' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.360321' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.361001' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 16:29:29.365080"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.366411' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.367378' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.368293' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.369206' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.369939' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:29:29.376187"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:29.376187"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-9524' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:29.380554' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:29.385415' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-5916' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-5916' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:29:29.391090"], ["created_at", "2014-12-02 16:29:29.394865"], ["description", "Qui illo pariatur laborum perspiciatis ea fugiat tempore ipsam. Vel perspiciatis ut nisi animi in distinctio incidunt sequi. Ut sed voluptatibus iusto consequatur sit ipsam expedita rerum. Voluptatem fuga reprehenderit aut assumenda qui earum sit.\nModi voluptatem consequuntur dolores possimus amet impedit officia. Et facilis quia similique sed mollitia. Architecto deleniti eaque pariatur magnam nostrum totam est voluptates.\nSequi et sunt libero animi quia. Et nostrum distinctio sed voluptates nam aut explicabo. Necessitatibus fuga nulla delectus excepturi molestias repellendus nobis unde. Nesciunt autem dolores non reprehenderit laudantium ut rerum. Dolorem et ex quia totam."], ["name", "Product #12 - 5916"], ["shipping_category_id", 1], ["slug", "product-12-5916"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:29.394865"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-12-02 16:29:29.396986"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:29.398923' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.400014' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.416989' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.417774' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:29:29.421330"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:29:29.421330"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:29.422297' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.422849' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.423972' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.424437' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.428317' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.428812' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.429360' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 16:29:29.433519"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:29.434846' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.435779' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.436664' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:29.437590' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:29:29.438313' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:29:29.444336"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:29:29.444336"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-5916' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:29.448337' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:29.452948' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 16:29:29.461342' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 16:29:29.462995"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 16:29:29.462995"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:29:29.465763' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:29.466260' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:29:29.469756"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 16:29:29.469756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:29:29.471706"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 16:29:29.471706"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'joy.ernser@boehmwolff.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753776969733xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:29:29.474569"], ["email", "joy.ernser@boehmwolff.co.uk"], ["encrypted_password", "e136eb15b2fb7a80cd816b39302e38e3546ce7653c488e75d2a9ad889d459716aa1c9fc22f4ee6f38b0874e90d498ba340a74703fe59947fd0ab54ada8689b98"], ["login", "joy.ernser@boehmwolff.co.uk"], ["password_salt", "soiobsJs-44tACeq3WsN"], ["updated_at", "2014-12-02 16:29:29.474569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:29.479089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:29:29.480465"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 16:29:29.480465"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R646164789' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R646164789%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R646164789' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Krk_AZIk_RA79lDb1viRDQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 16:29:29.485513"], ["currency", "USD"], ["email", "joy.ernser@boehmwolff.co.uk"], ["guest_token", "Krk_AZIk_RA79lDb1viRDQ"], ["number", "R646164789"], ["state", "cart"], ["updated_at", "2014-12-02 16:29:29.485513"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '2HRR5HVG' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 16:29:29.487842"], ["identifier", "2HRR5HVG"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 16:29:29.487842"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:29.489985' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-253442' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-253442"], ["updated_at", "2014-12-02 16:29:29.491132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::CheckoutController#update as HTML Parameters: {"state"=>"payment", "order"=>{"payments_attributes"=>[{"payment_method_id"=>"fake_id"}]}} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1 Completed 500 Internal Server Error in 16ms  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by Spree::CheckoutController#update as HTML Parameters: {"state"=>"payment", "order"=>{"payments_attributes"=>[{"payment_method_id"=>"fake_id"}]}} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1 Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::CheckoutController#update as HTML Parameters: {"state"=>"payment", "order"=>{"payments_attributes"=>[{"payment_method_id"=>"fake_id"}]}} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1 Completed 500 Internal Server Error in 15ms  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by Spree::CheckoutController#update as HTML Parameters: {"state"=>"payment", "order"=>{"payments_attributes"=>[{"payment_method_id"=>"fake_id"}]}} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1 Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rafael_kuhn@stroman.us' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175379731221xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.416691"], ["email", "rafael_kuhn@stroman.us"], ["encrypted_password", "6d8bf18be18c8782f22fb72c7f2f584c4a2aa6ab64ed6296ff5e5e6f16e2bfe4bd4c87351a1b1d0da3cbfa43723ff853e78d2fb196c59b7e9d6581f6e840bbe9"], ["login", "rafael_kuhn@stroman.us"], ["password_salt", "4oTvtjzzU2po_33xndXu"], ["updated_at", "2014-12-02 16:32:53.416691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.457051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.463309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.471695"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.471695"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R637399423' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R637399423%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R637399423' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9E90LfaQ8fmyT5Hbze58lQ' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.520273"], ["currency", "USD"], ["email", "rafael_kuhn@stroman.us"], ["guest_token", "9E90LfaQ8fmyT5Hbze58lQ"], ["number", "R637399423"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.520273"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kelsie_king@emarddach.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175379737352xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.532029"], ["email", "kelsie_king@emarddach.co.uk"], ["encrypted_password", "d3f889062b73d54e692c610473cc0a8da8e35714402ae449d89301d3258eb716227fc094801130497e3bcdd9d752f285b2a949fd7462232497c3ce9042df8a84"], ["login", "kelsie_king@emarddach.co.uk"], ["password_salt", "6L-6WxUykFHozzerMUqd"], ["updated_at", "2014-12-02 16:32:53.532029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.537998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.539774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.541314"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.541314"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R132831240' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R132831240%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R132831240' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-5fWxQ3outqFpAznXz7D-A' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.546721"], ["currency", "USD"], ["email", "kelsie_king@emarddach.co.uk"], ["guest_token", "-5fWxQ3outqFpAznXz7D-A"], ["number", "R132831240"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.546721"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'raul_mcdermott@streichschuster.biz' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175379736763xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.558042"], ["email", "raul_mcdermott@streichschuster.biz"], ["encrypted_password", "5320232128dcb64b9f56268f3343c4d15dca0fe53c834b739d457339114b9187b1765b339624233b1f5b51b47fbf658051a3da2734b488ddeb104f6f5980d7f4"], ["login", "raul_mcdermott@streichschuster.biz"], ["password_salt", "of9fS9Xqajv-9sxgUrsw"], ["updated_at", "2014-12-02 16:32:53.558042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.564661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.566490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.568146"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.568146"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R737280331' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R737280331%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R737280331' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'SsTv8XgaIyqC_rbEAeiKoQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.573625"], ["currency", "USD"], ["email", "raul_mcdermott@streichschuster.biz"], ["guest_token", "SsTv8XgaIyqC_rbEAeiKoQ"], ["number", "R737280331"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.573625"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ottis@corwinbashirian.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175379731894xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.581213"], ["email", "ottis@corwinbashirian.ca"], ["encrypted_password", "587473ffae34b07c19c2b31842a86075216ddfcd0120916704c7ec087b2bbd254a7c476c30cda937aaaa536d4f5ae959b6ee7cfecc1e9e6112dc95fc8d5faeb9"], ["login", "ottis@corwinbashirian.ca"], ["password_salt", "seBFwmAKHNWSnuKLe2fA"], ["updated_at", "2014-12-02 16:32:53.581213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.584920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.586133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.587505"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.587505"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R748802667' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R748802667%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R748802667' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'a4lHohdRhZ1NSQv5Jp3SPg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.593389"], ["currency", "USD"], ["email", "ottis@corwinbashirian.ca"], ["guest_token", "a4lHohdRhZ1NSQv5Jp3SPg"], ["number", "R748802667"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.593389"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'raleigh.orn@yost.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175379737125xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.601724"], ["email", "raleigh.orn@yost.us"], ["encrypted_password", "15b17c4a49f8c1087b146b6c4c2ca081012045a14950e4a807f2f5e482a56aeb2f9a3ade0c40ca364b0e2ce7382689a319964eeb4e6cb1c60b6431d23820eb83"], ["login", "raleigh.orn@yost.us"], ["password_salt", "XPwLCd567k4nGUqEb_KR"], ["updated_at", "2014-12-02 16:32:53.601724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.605233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.606542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.608094"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.608094"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R972499501' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R972499501%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R972499501' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'AhVgNwEfWYvucfoUSX1NMg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.613868"], ["currency", "USD"], ["email", "raleigh.orn@yost.us"], ["guest_token", "AhVgNwEfWYvucfoUSX1NMg"], ["number", "R972499501"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.613868"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jamal@abbott.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175379733766xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.624759"], ["email", "jamal@abbott.ca"], ["encrypted_password", "8adf0bf75ecd500eb57cb47ce4ff73ce9429bda6c6cf2b6b80c820cc88b420738e5a3c3137e86f8ba41e160767a4b315091082bf04a17b15f3e9f5c3a8aa6a88"], ["login", "jamal@abbott.ca"], ["password_salt", "sbA3fUPspVd557KEQWpQ"], ["updated_at", "2014-12-02 16:32:53.624759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.630234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.631703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.633119"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.633119"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R168148360' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R168148360%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R168148360' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'H0PDSjskp19XadqJg2Ekug' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.638573"], ["currency", "USD"], ["email", "jamal@abbott.ca"], ["guest_token", "H0PDSjskp19XadqJg2Ekug"], ["number", "R168148360"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.638573"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'alice@torp.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417537973167xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.646331"], ["email", "alice@torp.ca"], ["encrypted_password", "241dc695f0f6a7afb65ec710080b8ed1b22c3545832722a93afd257428dca0834869c88f0388f79d1776e33d31ef71ebe2708b389dee48dd60b43b989a841f4a"], ["login", "alice@torp.ca"], ["password_salt", "gupewC-y9REjGDj13Kae"], ["updated_at", "2014-12-02 16:32:53.646331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.650144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.651390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.653328"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.653328"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R381615326' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R381615326%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R381615326' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'rlebRwpAM7E11imkse1P2Q' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.663834"], ["currency", "USD"], ["email", "alice@torp.ca"], ["guest_token", "rlebRwpAM7E11imkse1P2Q"], ["number", "R381615326"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.663834"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'otho.herman@hermannbeahan.co.uk' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175379737918xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.672856"], ["email", "otho.herman@hermannbeahan.co.uk"], ["encrypted_password", "a65b34468ad6955bca8d45dd846db8126d3156a8eae2ac6382b7f6561f42b47c9a27e1247da34352ee40b582e66f4182777a4f10a9a046b618eb8247576e2fee"], ["login", "otho.herman@hermannbeahan.co.uk"], ["password_salt", "xz1-AVtXH8pHNs3K22zS"], ["updated_at", "2014-12-02 16:32:53.672856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.676634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.678216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.679822"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.679822"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R539605437' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R539605437%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R539605437' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'grOY1NhpmCTFLfwqJ0MNeQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.685625"], ["currency", "USD"], ["email", "otho.herman@hermannbeahan.co.uk"], ["guest_token", "grOY1NhpmCTFLfwqJ0MNeQ"], ["number", "R539605437"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.685625"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'astrid@bergstromhessel.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175379732989xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.693331"], ["email", "astrid@bergstromhessel.ca"], ["encrypted_password", "a064e8ca233c448883c3dcc123a3ad6f100db56f030ff8d3dd26dd25be3bd16cd3a9218d54cec52848b1210ddda96f470e25608f4e2f80946a9cb9da64ec49e2"], ["login", "astrid@bergstromhessel.ca"], ["password_salt", "scUa1szQ8yDcUs9HsLwo"], ["updated_at", "2014-12-02 16:32:53.693331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.697110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.698402"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.701633"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.701633"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R668389222' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R668389222%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R668389222' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '8SurH2FXe9uUZkxhn1Gfww' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.710865"], ["currency", "USD"], ["email", "astrid@bergstromhessel.ca"], ["guest_token", "8SurH2FXe9uUZkxhn1Gfww"], ["number", "R668389222"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.710865"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'johnny@schamberger.co.uk' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797323910xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.719156"], ["email", "johnny@schamberger.co.uk"], ["encrypted_password", "5577567a0a0044a9549502a80cf37d5ac124d4ffd0dae796162392d31bc28c6c87ea805a0866aac44f5cc7a2545a091ad75b05acb7d92de60c248ef84c2b0be2"], ["login", "johnny@schamberger.co.uk"], ["password_salt", "indbvMHkcwMUpFpH3Lsm"], ["updated_at", "2014-12-02 16:32:53.719156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.723115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.724460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.726065"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.726065"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R611918549' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R611918549%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R611918549' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'fbL4hIptw8AewEqytKQFtA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.732226"], ["currency", "USD"], ["email", "johnny@schamberger.co.uk"], ["guest_token", "fbL4hIptw8AewEqytKQFtA"], ["number", "R611918549"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.732226"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'leslie_gleichner@runolfsson.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797380211xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.739926"], ["email", "leslie_gleichner@runolfsson.us"], ["encrypted_password", "f2ea5e0791b7809c9491cf9700ac4e1f7c31a77a250dc54331ef78dc62f807b5ddd7e0d7cf6c8ca7deddfda5ff826ceb82906c77bb49381853c10012a93e0146"], ["login", "leslie_gleichner@runolfsson.us"], ["password_salt", "z3okqKipDRvTC8XY4qn_"], ["updated_at", "2014-12-02 16:32:53.739926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.743925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.745319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.748805"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.748805"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R207604348' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R207604348%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R207604348' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'OkyugvAgsOayJBVbqeg02Q' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.758212"], ["currency", "USD"], ["email", "leslie_gleichner@runolfsson.us"], ["guest_token", "OkyugvAgsOayJBVbqeg02Q"], ["number", "R207604348"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.758212"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sanford@thompson.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797314212xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.767650"], ["email", "sanford@thompson.ca"], ["encrypted_password", "665c59cd66af10fcdde66a58013395ae7d1c3fb1209aecde43019cfb55b0f29f10340e6dbed4d9430e327181094528f7c9e7a611787e529df58741d600855cca"], ["login", "sanford@thompson.ca"], ["password_salt", "RpfEsposUoU_YRZRky-s"], ["updated_at", "2014-12-02 16:32:53.767650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.771711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.773254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.774818"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.774818"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R442918208' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R442918208%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R442918208' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '4g1geWensgEehLu_VEwL3w' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.839625"], ["currency", "USD"], ["email", "sanford@thompson.ca"], ["guest_token", "4g1geWensgEehLu_VEwL3w"], ["number", "R442918208"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.839625"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'reina@okondaniel.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797368313xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.850484"], ["email", "reina@okondaniel.co.uk"], ["encrypted_password", "a0a53f3745a6abb002e24ac2825172eb58be43245dc1c79cb270c7edf38c621293f7ae2f1732911213bfcc9b8dea80fbde4f7d15577e5976f8d5988e42016fc6"], ["login", "reina@okondaniel.co.uk"], ["password_salt", "Xk3xWmHwfCRMfF2GzZSy"], ["updated_at", "2014-12-02 16:32:53.850484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.856394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.858262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.859979"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.859979"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R735979671' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R735979671%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R735979671' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'fEy0hP5uYihWsO2Cir5uZg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.865630"], ["currency", "USD"], ["email", "reina@okondaniel.co.uk"], ["guest_token", "fEy0hP5uYihWsO2Cir5uZg"], ["number", "R735979671"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.865630"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'marcos@smithambayer.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175379732814xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.872712"], ["email", "marcos@smithambayer.biz"], ["encrypted_password", "6de0421605addb89796b07245a5be7d03f0fb7cb8630469f4c7968640f72d0fc7987d58c37dc50ddd4c736b86ec9f84957570ef5708028e9b66b1806d5654d22"], ["login", "marcos@smithambayer.biz"], ["password_salt", "q7Q2s_txriS5pWyZ_THU"], ["updated_at", "2014-12-02 16:32:53.872712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.876445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.877735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.879144"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.879144"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R540139160' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R540139160%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R540139160' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'DzQ4dnmq3n8Ttv40m9Qn7g' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.885672"], ["currency", "USD"], ["email", "marcos@smithambayer.biz"], ["guest_token", "DzQ4dnmq3n8Ttv40m9Qn7g"], ["number", "R540139160"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.885672"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jeff.erdman@graham.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797382415xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.893595"], ["email", "jeff.erdman@graham.biz"], ["encrypted_password", "bb2ef80b9be24131113331b8c5c333beaabceab9c1c237b45fcd92dd3869b723e13ad667ddadbc7e84373974a5c47bef5d75d228e3a793ab15f07f68d748c569"], ["login", "jeff.erdman@graham.biz"], ["password_salt", "oAHp_zejWc9CkGEjMRyJ"], ["updated_at", "2014-12-02 16:32:53.893595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.897626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.899213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.900844"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.900844"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R998612318' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R998612318%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R998612318' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'JVV0vE6llVV53hnHGI0xyg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.906592"], ["currency", "USD"], ["email", "jeff.erdman@graham.biz"], ["guest_token", "JVV0vE6llVV53hnHGI0xyg"], ["number", "R998612318"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.906592"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'keenan.cormier@kerluke.co.uk' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797355516xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.914230"], ["email", "keenan.cormier@kerluke.co.uk"], ["encrypted_password", "94a2d9d941512826183a1d0e6aa1c9a3ccaae6818aaa963dd49275af3ceed60bc864de93e8fe5ac18df5965417397333091e1c368473cd04d3ec2f75de370107"], ["login", "keenan.cormier@kerluke.co.uk"], ["password_salt", "ZewEXqZmt8-micW9aUxU"], ["updated_at", "2014-12-02 16:32:53.914230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.917890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.919125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.920779"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.920779"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R193809409' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R193809409%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R193809409' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '_n20QoPqWqJAKh2ZfgdSKw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.926375"], ["currency", "USD"], ["email", "keenan.cormier@kerluke.co.uk"], ["guest_token", "_n20QoPqWqJAKh2ZfgdSKw"], ["number", "R193809409"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.926375"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'arno@larsonzulauf.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797348217xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.934071"], ["email", "arno@larsonzulauf.us"], ["encrypted_password", "b50b8ee46d948be5a3ebeff2955ab351a88783e8906418064c9e7dee0c028bf288c0a565d7fed7057012efa5a1139e572043187a91b99f04696a5176f719730a"], ["login", "arno@larsonzulauf.us"], ["password_salt", "zgyKAuve8QrgumyhatmL"], ["updated_at", "2014-12-02 16:32:53.934071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.937666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.938913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.940384"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.940384"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R240945013' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R240945013%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R240945013' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'vdtMbqT9Un94xWAP5UHOww' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.945577"], ["currency", "USD"], ["email", "arno@larsonzulauf.us"], ["guest_token", "vdtMbqT9Un94xWAP5UHOww"], ["number", "R240945013"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.945577"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dana@hirthemueller.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797390118xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.955963"], ["email", "dana@hirthemueller.com"], ["encrypted_password", "c1690648900fa84edd5fe1bff0682c502e0d0ab467bf132892ca5ace5917fbd379b03c934acbe91861fd8161f853775bb47983beec2480d00eb7dfd5f98e6924"], ["login", "dana@hirthemueller.com"], ["password_salt", "gfcya7Z4wgr9ZtqSz2jU"], ["updated_at", "2014-12-02 16:32:53.955963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.963004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.965496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.967675"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.967675"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R948941748' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R948941748%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R948941748' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'kuw0rxH3ipHqvuLlPax8IA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.974400"], ["currency", "USD"], ["email", "dana@hirthemueller.com"], ["guest_token", "kuw0rxH3ipHqvuLlPax8IA"], ["number", "R948941748"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.974400"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'electa@lebsackziemann.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797323819xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:53.982411"], ["email", "electa@lebsackziemann.us"], ["encrypted_password", "146ef6225ee8d6b79b10ddf20df4b4b71d18ba14ab510c4fc58c2c3c4eac187eddfeae52e5320cf34efcb438bc2d2c8f6ead026d493049947d03ad3b81957c2c"], ["login", "electa@lebsackziemann.us"], ["password_salt", "AkZ5VrBs_XBxxGjVzAw_"], ["updated_at", "2014-12-02 16:32:53.982411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:53.986431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:53.987711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:53.989276"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:53.989276"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R319961689' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R319961689%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R319961689' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'YulF6PJODhXrFWD5DTmvHQ' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:53.995095"], ["currency", "USD"], ["email", "electa@lebsackziemann.us"], ["guest_token", "YulF6PJODhXrFWD5DTmvHQ"], ["number", "R319961689"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:53.995095"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'otho_vandervort@hudson.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797432320xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:54.003138"], ["email", "otho_vandervort@hudson.com"], ["encrypted_password", "a36aee48414407f26ac19b85fae322ad7c3080d66c989a3f98ee7d1fcf5b9084f70fd0cc8bbb1f326e39629ba400d004fc0e02fdd5f68d47959086bed2c6f79f"], ["login", "otho_vandervort@hudson.com"], ["password_salt", "7kjoAUwU4AAzJ21zhyM5"], ["updated_at", "2014-12-02 16:32:54.003138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:54.007046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:54.008286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.009806"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:54.009806"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R512826067' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R512826067%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R512826067' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'c9A1zg7C_2uxkpO-AXxA0Q' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:54.015330"], ["currency", "USD"], ["email", "otho_vandervort@hudson.com"], ["guest_token", "c9A1zg7C_2uxkpO-AXxA0Q"], ["number", "R512826067"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:54.015330"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'alana.runte@johnston.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797476621xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:54.026116"], ["email", "alana.runte@johnston.com"], ["encrypted_password", "f1d232c940a05d68ad8651e51e08a163ab0e89e384b5f8e5f48d8672a7efb3796f068d28a3ab6f2da3ab6f5c2aa1722452b1d00dd6814d1850facff0996c5120"], ["login", "alana.runte@johnston.com"], ["password_salt", "vRksSsFsxvs7QU2xrz85"], ["updated_at", "2014-12-02 16:32:54.026116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:54.031786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:54.033246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.034643"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:54.034643"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R883646074' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R883646074%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R883646074' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '35akP4NmpuT35kPdsjZlOQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:54.040730"], ["currency", "USD"], ["email", "alana.runte@johnston.com"], ["guest_token", "35akP4NmpuT35kPdsjZlOQ"], ["number", "R883646074"], ["state", "payment"], ["updated_at", "2014-12-02 16:32:54.040730"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'garrison@prohaskavon.co.uk' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797496322xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:54.066183"], ["email", "garrison@prohaskavon.co.uk"], ["encrypted_password", "a127f2f6b74e09dce364ee4bc86d45aca2329b87c8379f1acd0d5145d44177a3f110b3094c691e1e26aca56c0514279b6ff8985d1ffdc278ab36940791e801bc"], ["login", "garrison@prohaskavon.co.uk"], ["password_salt", "3zjxFeQSTRy8QP6smz9R"], ["updated_at", "2014-12-02 16:32:54.066183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:54.069138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:54.070424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.071859"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:54.071859"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R320501696' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R320501696%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R320501696' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '3xnSBhVkerOqLKD7JYT8xQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:54.077382"], ["currency", "USD"], ["email", "garrison@prohaskavon.co.uk"], ["guest_token", "3xnSBhVkerOqLKD7JYT8xQ"], ["number", "R320501696"], ["state", "cart"], ["updated_at", "2014-12-02 16:32:54.077382"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 16:32:54.133558"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 16:32:54.133558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 81658' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 16:32:54.143620"], ["description", "Voluptatem odio sed consectetur voluptatem sapiente aspernatur."], ["name", "TaxCategory - 81658"], ["updated_at", "2014-12-02 16:32:54.143620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.167339"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:54.167339"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-504' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-504' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:32:54.129493"], ["created_at", "2014-12-02 16:32:54.172878"], ["description", "Dolorum eum et ut culpa aspernatur qui. Alias tempore sunt omnis quasi hic dolorem. Dolorem laborum eos totam illo eaque sint. Laudantium non ea voluptates ullam mollitia. Consequatur sed molestiae occaecati distinctio.\nQuaerat et eos veniam voluptas natus. Delectus magni assumenda beatae molestiae saepe. Quae nam corrupti molestiae et repellendus.\nIpsam perspiciatis praesentium nihil voluptatem non aut. Fugit ab ipsa architecto sunt dolor quod et. Autem pariatur aliquid nemo dolorem eius molestiae.\nPerspiciatis quidem aliquid sint qui animi ex. Nihil dolores labore recusandae doloribus sunt at harum quia. Quos temporibus velit sapiente at repellendus.\nIn molestiae ullam aliquam voluptas quia. Eos autem cupiditate deserunt unde at nisi rerum non. Veritatis dolores veniam saepe suscipit soluta expedita numquam dolorum. Saepe necessitatibus voluptate doloribus iste sapiente voluptatibus. Et molestias corrupti ex qui et."], ["name", "Product #1 - 504"], ["shipping_category_id", 1], ["slug", "product-1-504"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.172878"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 16:32:54.175937"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.183537' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.184925' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.199782' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.201186' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:32:54.229262"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:32:54.229262"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.230599' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.231213' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.232425' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.232951' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.243422' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.244082' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.244670' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 16:32:54.246465"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.247791' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.248307' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.248785' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.249387' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.249897' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:32:54.272398"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.272398"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-504' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:54.281046' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:54.289984' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-2432' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-2432' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:32:54.294900"], ["created_at", "2014-12-02 16:32:54.302920"], ["description", "Velit exercitationem in vero dignissimos illo. Unde error blanditiis deserunt ratione veritatis corrupti. Repellendus mollitia dolorum nemo ipsam hic ad cupiditate. Asperiores repudiandae ab rem blanditiis provident."], ["name", "Product #2 - 2432"], ["shipping_category_id", 1], ["slug", "product-2-2432"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.302920"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 16:32:54.306323"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.308807' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.309960' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.311297' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.311869' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:32:54.315534"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:32:54.315534"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.316658' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.317273' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.318588' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.319153' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.324420' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.325924' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.327035' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 16:32:54.330193"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.331357' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.332112' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.332844' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.333898' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.334716' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:32:54.356482"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.356482"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-2432' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:54.360771' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:54.365522' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 16:32:54.382545' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:32:54.403143"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 16:32:54.403143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:32:54.416030"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 16:32:54.416030"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'chyna@schillerkulas.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797495123xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:54.420621"], ["email", "chyna@schillerkulas.biz"], ["encrypted_password", "3f48431ffc6b4e77620e7c5de3cc0b37240eeda002e81795fe6ec7590508797d06dd023053320a4397cd447f296a15ac60569b02a9d699b1167c8233b8a9d73d"], ["login", "chyna@schillerkulas.biz"], ["password_salt", "_uhy2sxka6R4zqKcc9EE"], ["updated_at", "2014-12-02 16:32:54.420621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:54.423327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.424732"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 16:32:54.424732"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R635497212' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R635497212%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R635497212' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'sOwQRn6cvMY7oA3V6d5fqQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 16:32:54.429933"], ["currency", "USD"], ["email", "chyna@schillerkulas.biz"], ["guest_token", "sOwQRn6cvMY7oA3V6d5fqQ"], ["number", "R635497212"], ["state", "cart"], ["updated_at", "2014-12-02 16:32:54.429933"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'A4KZPDJ5' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 16:32:54.442357"], ["identifier", "A4KZPDJ5"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 16:32:54.442357"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:54.445389' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-105102' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-105102"], ["updated_at", "2014-12-02 16:32:54.446797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mafalda_spinka@tremblay.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797484224xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:54.464349"], ["email", "mafalda_spinka@tremblay.com"], ["encrypted_password", "19c40a240bea06038d1a28a098652cce81642d16dc210d1b8cbe08b2e536c998f1d00712849e59ac081ad786a2232571095312c8f7e10d253922ca0bc670a286"], ["login", "mafalda_spinka@tremblay.com"], ["password_salt", "JK6YTVcLvT_7it8_xaTs"], ["updated_at", "2014-12-02 16:32:54.464349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:54.467586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:54.468987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.470479"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:54.470479"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R242614428' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R242614428%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R242614428' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'GTYDtq9ffXKghKzUJ0Wn6g' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:54.476067"], ["currency", "USD"], ["email", "mafalda_spinka@tremblay.com"], ["guest_token", "GTYDtq9ffXKghKzUJ0Wn6g"], ["number", "R242614428"], ["state", "cart"], ["updated_at", "2014-12-02 16:32:54.476067"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 16:32:54.490257"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 16:32:54.490257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 584475' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 16:32:54.493618"], ["description", "Alias sed quo molestiae delectus ipsam vel."], ["name", "TaxCategory - 584475"], ["updated_at", "2014-12-02 16:32:54.493618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.497197"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:54.497197"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5290' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5290' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:32:54.488511"], ["created_at", "2014-12-02 16:32:54.501893"], ["description", "Unde facere dolorum est ducimus at placeat. Voluptatem et voluptates excepturi atque ut. Iste beatae dolorem exercitationem voluptatem debitis ratione hic. Rerum dolore non reprehenderit laboriosam.\nDucimus nesciunt labore rem repudiandae magnam quas eveniet enim. Dolor et libero nihil dicta dolores dolorum autem atque. Similique explicabo ratione et omnis magni.\nUt itaque eveniet perferendis et. Recusandae ut voluptates sed magnam. Similique necessitatibus dolores et laboriosam exercitationem earum modi voluptas.\nAutem exercitationem atque et temporibus excepturi architecto fugit. Hic id enim sed officiis incidunt quidem saepe. Repellat aut sed alias perferendis fugit odit.\nProvident adipisci et distinctio non incidunt et. Earum atque velit voluptates aut libero aspernatur. Dolor perferendis ut provident a recusandae sunt. Assumenda dolorum est quia magni omnis non odio."], ["name", "Product #3 - 5290"], ["shipping_category_id", 1], ["slug", "product-3-5290"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.501893"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-12-02 16:32:54.504462"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.506559' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.507765' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.509115' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.509673' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:32:54.513135"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:32:54.513135"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.514066' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.514611' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.515706' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.516195' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.520138' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.520668' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.521167' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 16:32:54.523254"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.524011' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.524540' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.525111' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.525730' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.526183' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:32:54.531037"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.531037"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5290' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:54.535375' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:54.540143' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-1834' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-1834' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:32:54.545154"], ["created_at", "2014-12-02 16:32:54.548999"], ["description", "Fugiat repudiandae et dicta commodi aut doloremque sunt incidunt. Aperiam veniam qui totam ex. Deleniti ut aut alias beatae ab ut. Aut rerum voluptas perspiciatis sint ducimus ut reiciendis minima. Perspiciatis neque ipsa eos at et quibusdam et itaque.\nVeritatis quis sed quo natus quaerat. Dolorem quidem voluptatibus harum voluptas. Sint necessitatibus quisquam a quasi facere odio."], ["name", "Product #4 - 1834"], ["shipping_category_id", 1], ["slug", "product-4-1834"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.548999"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-12-02 16:32:54.551193"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.553191' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.554262' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.555586' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.556149' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:32:54.559469"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:32:54.559469"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.560402' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.560919' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.562074' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.562600' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.566495' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.567056' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.567563' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 16:32:54.571534"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.572915' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.573897' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.574741' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.575651' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.576374' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:32:54.582647"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.582647"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-1834' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:54.586982' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:54.591555' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 16:32:54.600090' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:32:54.603740"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 16:32:54.603740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:32:54.605770"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 16:32:54.605770"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'chanel_hudson@gutmann.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797459825xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:54.608842"], ["email", "chanel_hudson@gutmann.info"], ["encrypted_password", "49c8c5e42d91423ac9cbb811a68dd87fbf4755b1d3945785958806eafec73eec1495043346baebaef50d4abfb7c1d45e8f2ed8d43714ad16a8fa265d074070d6"], ["login", "chanel_hudson@gutmann.info"], ["password_salt", "TFa-eBozRgkP_kj3CtdZ"], ["updated_at", "2014-12-02 16:32:54.608842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:54.611510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.612902"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 16:32:54.612902"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R028745222' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R028745222%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R028745222' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'YTETSFn7CvVG_4Yyn8rdog' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 16:32:54.618241"], ["currency", "USD"], ["email", "chanel_hudson@gutmann.info"], ["guest_token", "YTETSFn7CvVG_4Yyn8rdog"], ["number", "R028745222"], ["state", "cart"], ["updated_at", "2014-12-02 16:32:54.618241"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WRCEBH9A' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 16:32:54.620649"], ["identifier", "WRCEBH9A"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 16:32:54.620649"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:54.622916' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-235042' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-235042"], ["updated_at", "2014-12-02 16:32:54.624077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'magnus@boganmayert.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797482226xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:54.637115"], ["email", "magnus@boganmayert.ca"], ["encrypted_password", "7d7616ed0265d7b71e27e176095a0c7227d50dc2c0a5172d77e95bbd19bdb014837789b6b33634c1c220cd90cc991fe322586b3efb8b1bb240e8cc458235483d"], ["login", "magnus@boganmayert.ca"], ["password_salt", "xyn9hTNnm4Lbo_SDoy5S"], ["updated_at", "2014-12-02 16:32:54.637115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:54.640162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:54.641776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.643502"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:54.643502"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R330117183' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R330117183%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R330117183' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9BxMLkOpVJW9rMvSbgT7Gw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:54.649135"], ["currency", "USD"], ["email", "magnus@boganmayert.ca"], ["guest_token", "9BxMLkOpVJW9rMvSbgT7Gw"], ["number", "R330117183"], ["state", "cart"], ["updated_at", "2014-12-02 16:32:54.649135"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 16:32:54.662999"], ["name", "ShippingCategory #3"], ["updated_at", "2014-12-02 16:32:54.662999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 934668' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 16:32:54.666209"], ["description", "Facilis autem est dolorem dolorem quibusdam quaerat nobis quas."], ["name", "TaxCategory - 934668"], ["updated_at", "2014-12-02 16:32:54.666209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.669640"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:54.669640"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-804' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-804' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:32:54.661364"], ["created_at", "2014-12-02 16:32:54.673632"], ["description", "Odio beatae alias molestiae aut in architecto. Quia nihil consequatur tempore non. Placeat dolorem sed qui omnis velit. Qui est ut recusandae quisquam excepturi ducimus. Totam perferendis ipsam in minima ea voluptatem sit doloremque.\nEt deserunt harum enim sit dolorem consequuntur veniam accusantium. Incidunt asperiores nihil illum quibusdam id ex. Est esse quae at sed incidunt assumenda non.\nHic aut ad impedit ratione aliquid non. Molestiae et quaerat voluptatem perspiciatis iusto voluptatem nemo officiis. Distinctio delectus consequatur ut veniam voluptatem.\nEt ut accusamus quod consectetur. Quisquam ea qui odio cumque ut. Aut ut officiis ducimus quia accusantium quis enim. Corporis est velit animi culpa. Eos ut est minima culpa quidem esse nesciunt."], ["name", "Product #5 - 804"], ["shipping_category_id", 1], ["slug", "product-5-804"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.673632"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-12-02 16:32:54.675907"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.677947' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.679085' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.680400' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.680958' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:32:54.684802"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:32:54.684802"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.685928' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.686509' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.687817' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.688367' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.692527' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.693170' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.693797' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 16:32:54.696129"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.697773' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.698753' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.699753' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.700983' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.701942' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:32:54.709514"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.709514"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-804' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:54.713762' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:54.718578' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9874' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9874' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:32:54.724859"], ["created_at", "2014-12-02 16:32:54.728587"], ["description", "Enim corrupti dolorem sit recusandae omnis voluptas dicta. Praesentium rem corrupti error a optio. Autem eos quae praesentium quis nesciunt eum. Esse voluptate cumque sunt nihil quam quo ducimus quia.\nSed quos et id doloribus ut. Dolorum provident rem expedita voluptatibus similique. Repellat ipsum autem recusandae quo. Ut qui aspernatur sint est sit.\nNam repellat non modi expedita qui. Iusto ut quidem vel sit odio assumenda occaecati expedita. Totam sint commodi ea velit quidem. Asperiores earum eius rem et porro occaecati vero tenetur. Molestias ipsum quia et error et est repellendus labore.\nIpsa quis blanditiis ut quia perspiciatis accusamus odit. Molestiae debitis a non et consequatur maiores. Facilis nihil unde sit vitae omnis dolorem."], ["name", "Product #6 - 9874"], ["shipping_category_id", 1], ["slug", "product-6-9874"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.728587"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-12-02 16:32:54.730793"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.732753' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.733856' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.735141' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.735762' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:32:54.739225"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:32:54.739225"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.740235' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.740753' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.741897' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.742437' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.746397' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.746945' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.747525' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 16:32:54.749306"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.750083' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.750622' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.751178' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.751853' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.752380' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:32:54.757173"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.757173"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9874' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:54.761390' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:54.766047' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 16:32:54.774774' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:32:54.778578"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 16:32:54.778578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:32:54.780717"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 16:32:54.780717"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'junius.haag@steuberschmidt.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797478127xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:54.783697"], ["email", "junius.haag@steuberschmidt.biz"], ["encrypted_password", "407a24353b6b004f9e3352842b3c5409aeea39a452600850a3b1ceeb0881d6706f35316e20504c4257629ae00204b9e97f37ace4448835825203675425d035df"], ["login", "junius.haag@steuberschmidt.biz"], ["password_salt", "Vm_kQw-uHVnT6cFZEt8a"], ["updated_at", "2014-12-02 16:32:54.783697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:54.786674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.788107"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 16:32:54.788107"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R658463302' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R658463302%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R658463302' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'e-fcUQYhz7ZoJ4bn9KfcrQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 16:32:54.808874"], ["currency", "USD"], ["email", "junius.haag@steuberschmidt.biz"], ["guest_token", "e-fcUQYhz7ZoJ4bn9KfcrQ"], ["number", "R658463302"], ["state", "cart"], ["updated_at", "2014-12-02 16:32:54.808874"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'VKFHCJMA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 16:32:54.811647"], ["identifier", "VKFHCJMA"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 16:32:54.811647"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:54.813858' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-213423' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-213423"], ["updated_at", "2014-12-02 16:32:54.815071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rose.wehner@schmidtabbott.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797472628xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:54.832152"], ["email", "rose.wehner@schmidtabbott.com"], ["encrypted_password", "ba7ca53bc86d89cadf20b0188e646979895e3279f226b3b5ed37a1ded9c213d08bf4abc9724e64e90d67e02d99550450819681ce3525c122aab505b8729feed3"], ["login", "rose.wehner@schmidtabbott.com"], ["password_salt", "AUVS-KzPHcJnpjwH7zHG"], ["updated_at", "2014-12-02 16:32:54.832152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:54.836367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:54.837701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.839076"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:54.839076"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R178339733' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R178339733%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R178339733' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'VtHY2tapRf9k0wB0aTQ0-A' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:54.844727"], ["currency", "USD"], ["email", "rose.wehner@schmidtabbott.com"], ["guest_token", "VtHY2tapRf9k0wB0aTQ0-A"], ["number", "R178339733"], ["state", "cart"], ["updated_at", "2014-12-02 16:32:54.844727"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 16:32:54.852312"], ["name", "ShippingCategory #4"], ["updated_at", "2014-12-02 16:32:54.852312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 986872' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 16:32:54.854928"], ["description", "Nemo autem quae qui eum est alias quos."], ["name", "TaxCategory - 986872"], ["updated_at", "2014-12-02 16:32:54.854928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.858154"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:54.858154"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-4336' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-4336' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:32:54.851244"], ["created_at", "2014-12-02 16:32:54.861821"], ["description", "Sed blanditiis eos atque et illo quo laborum veniam. Fugit neque autem sint corporis labore. Fuga sint nam aperiam voluptatem explicabo non nobis et.\nError fugit expedita sapiente blanditiis laboriosam vitae. Voluptatem sint ea incidunt pariatur. Nihil et quia consectetur aut inventore doloribus. Eligendi provident sit ex ut. Expedita quas voluptates eum cum quo corporis dignissimos."], ["name", "Product #7 - 4336"], ["shipping_category_id", 1], ["slug", "product-7-4336"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.861821"]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-12-02 16:32:54.866129"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.869519' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.871360' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.873325' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.874133' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:32:54.877743"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:32:54.877743"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.878718' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.879219' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.880396' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.880879' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.884796' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.885340' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.885990' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 16:32:54.890124"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.891547' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.892562' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.893370' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.894259' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.895076' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:32:54.901226"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.901226"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-4336' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:54.905560' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:54.910292' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3060' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3060' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:32:54.917059"], ["created_at", "2014-12-02 16:32:54.920754"], ["description", "Quis vel odio architecto quisquam earum. Enim dicta commodi praesentium fugit ut. Dolore consequatur beatae odio libero quaerat a consequuntur voluptatem.\nDeleniti non maxime quia laboriosam sunt inventore autem quidem. Blanditiis distinctio illum assumenda odit. Placeat ratione consectetur tempora dignissimos eaque nostrum suscipit libero. At ut aut corporis quas magni vel.\nOdit dolores numquam ipsam accusantium sunt perferendis et quo. Ipsum magni eos fuga et quidem architecto esse. Omnis iure voluptatem magni omnis repudiandae. Maxime repudiandae ut distinctio autem ipsum dolore.\nDignissimos et nobis ut est. Aut porro voluptates alias qui. Qui molestias ut modi pariatur. Recusandae qui at doloribus et rerum similique harum voluptate.\nId cupiditate adipisci unde fuga nisi dolor quidem. Dignissimos distinctio at praesentium veritatis rerum animi. Vel temporibus ad quasi debitis enim pariatur. Amet iure nostrum aspernatur in commodi laudantium."], ["name", "Product #8 - 3060"], ["shipping_category_id", 1], ["slug", "product-8-3060"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.920754"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-12-02 16:32:54.922931"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.924868' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.925966' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.927268' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.927837' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:32:54.931160"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:32:54.931160"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:54.932100' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.932627' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.933757' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.934278' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.938193' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.938766' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.939303' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 16:32:54.941306"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:54.942066' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.942597' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.943113' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:54.943745' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:54.944218' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:32:54.949296"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:54.949296"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3060' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:54.954250' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:54.959129' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 16:32:54.967995' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:32:54.971677"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 16:32:54.971677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:32:54.973724"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 16:32:54.973724"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'steve@bogisich.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797439429xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:54.976614"], ["email", "steve@bogisich.us"], ["encrypted_password", "8729d4811927221b2fc1762de92c158aaad31481e6be9cb2a2f47b5523e6c7d2ee9ec508767d563f17462d971b3566b8a18c2e35ce7969e3770a6e26db78ceba"], ["login", "steve@bogisich.us"], ["password_salt", "BdLEqCkAssnkEurhFVF4"], ["updated_at", "2014-12-02 16:32:54.976614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:54.979131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:54.980536"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 16:32:54.980536"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R283987700' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R283987700%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R283987700' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xz7UwsdOnaVYa8vLqxyhgA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 16:32:54.985898"], ["currency", "USD"], ["email", "steve@bogisich.us"], ["guest_token", "xz7UwsdOnaVYa8vLqxyhgA"], ["number", "R283987700"], ["state", "cart"], ["updated_at", "2014-12-02 16:32:54.985898"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'FU9PFSVU' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 16:32:54.988346"], ["identifier", "FU9PFSVU"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 16:32:54.988346"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:54.990667' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-111043' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-111043"], ["updated_at", "2014-12-02 16:32:54.992007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'petra.corkery@kochbartoletti.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175379757130xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:55.009660"], ["email", "petra.corkery@kochbartoletti.com"], ["encrypted_password", "f774a7b35c3d9badd2e2220c0b51e44431828a6bd10129e6625045d026bfb22569c698131abe91944e015ff5fb08575ebb2ab71fcee103d5fca8821869dba971"], ["login", "petra.corkery@kochbartoletti.com"], ["password_salt", "ss1XA7s9GHjHxCVDkzaN"], ["updated_at", "2014-12-02 16:32:55.009660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:55.013902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:55.015243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:55.016616"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:55.016616"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R028534776' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R028534776%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R028534776' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'OEJXYnBbbU3749DoSpvdhQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:55.021986"], ["currency", "USD"], ["email", "petra.corkery@kochbartoletti.com"], ["guest_token", "OEJXYnBbbU3749DoSpvdhQ"], ["number", "R028534776"], ["state", "cart"], ["updated_at", "2014-12-02 16:32:55.021986"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 16:32:55.030139"], ["name", "ShippingCategory #5"], ["updated_at", "2014-12-02 16:32:55.030139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 547651' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 16:32:55.032873"], ["description", "Laudantium error natus reiciendis illum iure rerum."], ["name", "TaxCategory - 547651"], ["updated_at", "2014-12-02 16:32:55.032873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 16:32:55.036148"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:55.036148"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-6211' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-6211' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:32:55.029010"], ["created_at", "2014-12-02 16:32:55.039736"], ["description", "Voluptatem sint dicta et non eaque sunt. Rerum fugit ducimus rem deleniti. Id tempora deserunt dolorem officiis.\nAutem sed vitae adipisci facilis omnis amet. Culpa exercitationem eos mollitia in distinctio in. Ad minus iste totam nemo molestiae.\nOmnis quasi officiis unde voluptas aut eveniet fuga. Est dolores animi quia blanditiis impedit voluptates voluptatem cumque. Doloremque dolores omnis quam in nisi nobis error velit. Atque qui rerum est in mollitia delectus voluptas et. Quo provident deleniti odit atque maiores ratione illo consectetur."], ["name", "Product #9 - 6211"], ["shipping_category_id", 1], ["slug", "product-9-6211"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:55.039736"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-12-02 16:32:55.042328"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:55.044519' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.045655' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.046958' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.047516' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:32:55.050790"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:32:55.050790"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:55.051774' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.052298' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.053640' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.054179' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.058281' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.058887' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.059469' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 16:32:55.061224"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.061973' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.062481' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.062985' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.063539' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.063997' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:32:55.068672"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:55.068672"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-6211' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:55.072950' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:55.077512' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2909' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2909' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:32:55.084618"], ["created_at", "2014-12-02 16:32:55.088216"], ["description", "Aliquam reprehenderit ullam est minima. Aut doloremque eveniet qui tenetur molestias sint iusto autem. Aut dignissimos eum at delectus aperiam autem. Commodi et et enim et corrupti quia nesciunt.\nCupiditate assumenda eum consequatur ut. Molestiae aut unde est labore ea quas omnis veritatis. Eos accusantium est debitis enim quis est ducimus dicta. Laboriosam dolorem autem rerum ipsam culpa aut. Dolor odio et beatae quidem.\nRerum eveniet ipsam aliquam vero et cupiditate placeat. Est consequuntur eveniet ipsam ullam deleniti sunt. Velit mollitia ipsam sed enim. Inventore est cupiditate in id unde. Labore soluta voluptates cupiditate eius voluptas atque.\nEa tempora nulla eveniet soluta. Ut est nostrum quibusdam quia excepturi. Quo voluptate sint unde neque dolores et omnis. Tempora corrupti modi quod suscipit est delectus. Quaerat et rerum fugit amet aut asperiores voluptatem in.\nFugiat aut consequatur maiores placeat possimus ea qui. Autem quis officia quibusdam porro earum voluptas inventore hic. Qui sed perferendis aut et dicta. Quis exercitationem quisquam unde totam."], ["name", "Product #10 - 2909"], ["shipping_category_id", 1], ["slug", "product-10-2909"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:55.088216"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-12-02 16:32:55.090275"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:55.092224' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.093283' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.094610' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.095137' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:32:55.098504"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:32:55.098504"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:55.099469' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.099986' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.101095' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.101601' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.105403' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.105943' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.106439' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 16:32:55.108196"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.108896' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.109415' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.109913' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.110522' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.111034' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:32:55.115619"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:55.115619"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2909' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:55.119751' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:55.124218' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 16:32:55.132685' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 16:32:55.143836"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 16:32:55.143836"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:55.147270' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:55.147801' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:32:55.151399"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 16:32:55.151399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:32:55.153444"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 16:32:55.153444"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kennedi.botsford@mertz.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797514531xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:55.156341"], ["email", "kennedi.botsford@mertz.biz"], ["encrypted_password", "2bbc21fc98af9f154538aee431c69b7c1897d79dbb058997531ea73b8536332a59aac80f512233765f2b6a49536d9f68c476eb942bb089bc57d08894d35f650f"], ["login", "kennedi.botsford@mertz.biz"], ["password_salt", "qwHHrvTQH5MQjH4UctqH"], ["updated_at", "2014-12-02 16:32:55.156341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:55.158843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:55.160194"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 16:32:55.160194"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R032308272' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R032308272%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R032308272' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9KqtZJgeDheYtyGQLaBMKw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 16:32:55.165499"], ["currency", "USD"], ["email", "kennedi.botsford@mertz.biz"], ["guest_token", "9KqtZJgeDheYtyGQLaBMKw"], ["number", "R032308272"], ["state", "cart"], ["updated_at", "2014-12-02 16:32:55.165499"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '9ULLCZFN' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 16:32:55.167865"], ["identifier", "9ULLCZFN"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 16:32:55.167865"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:55.169949' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-523314' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-523314"], ["updated_at", "2014-12-02 16:32:55.171109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carolanne@rogahn.co.uk' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797557632xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:55.183719"], ["email", "carolanne@rogahn.co.uk"], ["encrypted_password", "50f2c99498072e0d033a4f230c1f1b7986c7f2758c831c83d906bcb3d5ce836a8124e8a4e946139f4f42f55d6f8134ef539aed961f19f482097c0c6ac897a43f"], ["login", "carolanne@rogahn.co.uk"], ["password_salt", "cMS3sEqenu7y2ra5Lbz1"], ["updated_at", "2014-12-02 16:32:55.183719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:32:55.186645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:55.188072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:55.189653"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:55.189653"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R864437195' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R864437195%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R864437195' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xQgzYIiqvLfeDFHgfrPRrw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 16:32:55.195738"], ["currency", "USD"], ["email", "carolanne@rogahn.co.uk"], ["guest_token", "xQgzYIiqvLfeDFHgfrPRrw"], ["number", "R864437195"], ["state", "cart"], ["updated_at", "2014-12-02 16:32:55.195738"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 16:32:55.203441"], ["name", "ShippingCategory #6"], ["updated_at", "2014-12-02 16:32:55.203441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 654143' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 16:32:55.206107"], ["description", "Tempore explicabo occaecati distinctio vel."], ["name", "TaxCategory - 654143"], ["updated_at", "2014-12-02 16:32:55.206107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 16:32:55.209420"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 16:32:55.209420"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-104' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-104' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:32:55.202221"], ["created_at", "2014-12-02 16:32:55.213013"], ["description", "Et vitae occaecati tempore repellat dolores. Assumenda nihil iusto mollitia in qui voluptatem quibusdam nemo. Saepe et rem qui dolorem commodi suscipit amet possimus. Suscipit quam sapiente exercitationem consequatur consectetur rerum veritatis. Illo quibusdam consequuntur ea fugit blanditiis."], ["name", "Product #11 - 104"], ["shipping_category_id", 1], ["slug", "product-11-104"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:55.213013"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-12-02 16:32:55.215163"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:55.219844' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.221753' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.223954' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.224857' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:32:55.229429"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:32:55.229429"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:55.230396' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.230925' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.232044' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.232562' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.236643' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.237533' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.238157' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 16:32:55.239988"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.240784' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.241314' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.241792' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.242352' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.242820' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:32:55.247735"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:55.247735"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-104' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:55.252044' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:55.257206' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-9102' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-9102' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 16:32:55.281412"], ["created_at", "2014-12-02 16:32:55.285319"], ["description", "Iste ipsam quo tempore aperiam. Eos iusto et aut commodi dolore. Aspernatur quo ut nam facilis amet id eos asperiores. Rerum magni porro labore aperiam minus natus ipsa."], ["name", "Product #12 - 9102"], ["shipping_category_id", 1], ["slug", "product-12-9102"], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:55.285319"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-12-02 16:32:55.287372"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:55.289256' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.290344' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.291663' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.292242' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 16:32:55.295522"], ["stock_location_id", 1], ["updated_at", "2014-12-02 16:32:55.295522"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:32:55.296453' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.297013' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.298585' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.300119' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.306382' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.306987' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.307554' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 16:32:55.309279"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:32:55.309972' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.310454' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.310915' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:32:55.311452' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 16:32:55.311954' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 16:32:55.316521"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 16:32:55.316521"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-9102' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:55.321111' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:55.325816' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 16:32:55.334257' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 16:32:55.336007"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 16:32:55.336007"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 16:32:55.339109' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:55.339629' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:32:55.343389"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 16:32:55.343389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 16:32:55.345511"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 16:32:55.345511"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'allie.turcotte@emmerich.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141753797562533xxxxxxxxxxxxx"], ["created_at", "2014-12-02 16:32:55.348665"], ["email", "allie.turcotte@emmerich.name"], ["encrypted_password", "e06070daa68c0873807a76d8b32b0cb83f57b12e35f2113b03f44eaa78187099b4c1125b339acb7349d212e667d56ea14025372bb8d1b45b5314f51d60d7e27b"], ["login", "allie.turcotte@emmerich.name"], ["password_salt", "Agp5iXNXv4gQRRzsd3M3"], ["updated_at", "2014-12-02 16:32:55.348665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:32:55.351565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 16:32:55.353038"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 16:32:55.353038"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R683709493' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R683709493%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R683709493' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'C4QGneM4vfo6Dz2MwS5klg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 16:32:55.358829"], ["currency", "USD"], ["email", "allie.turcotte@emmerich.name"], ["guest_token", "C4QGneM4vfo6Dz2MwS5klg"], ["number", "R683709493"], ["state", "cart"], ["updated_at", "2014-12-02 16:32:55.358829"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'MYEBGMXT' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 16:32:55.361326"], ["identifier", "MYEBGMXT"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 16:32:55.361326"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:32:55.363480' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-450534' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-450534"], ["updated_at", "2014-12-02 16:32:55.364632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (5.0ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::CheckoutController#update as HTML Parameters: {"state"=>"payment", "order"=>{"payments_attributes"=>[{"payment_method_id"=>"fake_id"}]}} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1 Completed 500 Internal Server Error in 14ms  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by Spree::CheckoutController#update as HTML Parameters: {"state"=>"payment", "order"=>{"payments_attributes"=>[{"payment_method_id"=>"fake_id"}]}} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1 Completed 500 Internal Server Error in 2ms  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carol.larson@cummerata.com' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175532216701xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.347133"], ["email", "carol.larson@cummerata.com"], ["encrypted_password", "16d00c5f1d50a2beb03f0051f686f2b80f68468fbb163ade2e98441c58ee1a0d4840ee41d58f953f27cdd29fe6c47b66fed02647320a0a588218a1170325ce25"], ["login", "carol.larson@cummerata.com"], ["password_salt", "ydtzA9Z1Kezy8fQJoYhW"], ["updated_at", "2014-12-02 20:47:01.347133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.378623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.389428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.398484"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.398484"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R535297651' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R535297651%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R535297651' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '8MMyOYjClAcoS1eDS_MS7A' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.433493"], ["currency", "USD"], ["email", "carol.larson@cummerata.com"], ["guest_token", "8MMyOYjClAcoS1eDS_MS7A"], ["number", "R535297651"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.433493"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'barton.wiegand@wehner.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175532213052xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.444948"], ["email", "barton.wiegand@wehner.ca"], ["encrypted_password", "a896c0cebdf66412e2cb6b31daa38f6fe880ac63f37e5644a10a02b51b58ce855933230d51f757922682cb7f5f7c09558e14e56a88821cf4923c8252906ce480"], ["login", "barton.wiegand@wehner.ca"], ["password_salt", "s7CBkUNiWsXHxzsLkvMt"], ["updated_at", "2014-12-02 20:47:01.444948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.449807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.451221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.452718"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.452718"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R512900287' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R512900287%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R512900287' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'a0nRd8G-b82LWbsm5DgEvQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.457838"], ["currency", "USD"], ["email", "barton.wiegand@wehner.ca"], ["guest_token", "a0nRd8G-b82LWbsm5DgEvQ"], ["number", "R512900287"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.457838"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nicklaus@kunde.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175532215003xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.468601"], ["email", "nicklaus@kunde.co.uk"], ["encrypted_password", "c94f0c9e033c4eb8ff8b360e572ec32b3548af34e579a4a3e75f317ee99c46aadab304e7fc304b69386e45f0d9af64b02c00e0dd29bde89ee8d9fd52cdb7002a"], ["login", "nicklaus@kunde.co.uk"], ["password_salt", "qSZ4yLdWZA8qi1LyfeVm"], ["updated_at", "2014-12-02 20:47:01.468601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.474459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.476495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.478474"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.478474"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R183779176' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R183779176%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R183779176' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '5Fl2BV9zGEp4KKFVZxWrWw' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.484293"], ["currency", "USD"], ["email", "nicklaus@kunde.co.uk"], ["guest_token", "5Fl2BV9zGEp4KKFVZxWrWw"], ["number", "R183779176"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.484293"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tyler_oga@wintheiser.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175532219904xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.493172"], ["email", "tyler_oga@wintheiser.name"], ["encrypted_password", "3e27a14b8c3e09c66eaf0203483920ab3dec4f3c901e0a0f52db24072b2d0c209da545efd8b4b4f24d0ca4ed03f4ff3745052809809d6e026eecf2b6a6b50fe2"], ["login", "tyler_oga@wintheiser.name"], ["password_salt", "MuzGje1wa6NzjdmNwh_6"], ["updated_at", "2014-12-02 20:47:01.493172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.496887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.498169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.499747"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.499747"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R931604563' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R931604563%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R931604563' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ParSES6jJFjufuzxqdp2nw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.505397"], ["currency", "USD"], ["email", "tyler_oga@wintheiser.name"], ["guest_token", "ParSES6jJFjufuzxqdp2nw"], ["number", "R931604563"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.505397"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (3.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ari.sporer@cummerataratke.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175532213365xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.513900"], ["email", "ari.sporer@cummerataratke.us"], ["encrypted_password", "00a533912e7e76779a6c235bd0bfa0f6c10a0dcbaff01228ba55ca5f7fc09ec956ebd25e6b5df627711e4ce90c93be55c4da7460b8e12a6548607db11bb07e03"], ["login", "ari.sporer@cummerataratke.us"], ["password_salt", "Ew9tzvLSFijF8q6-8m39"], ["updated_at", "2014-12-02 20:47:01.513900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.517601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.519610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.522933"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.522933"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R924581498' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R924581498%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R924581498' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'OomYi4lX7VVVshalmgFnFQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.531512"], ["currency", "USD"], ["email", "ari.sporer@cummerataratke.us"], ["guest_token", "OomYi4lX7VVVshalmgFnFQ"], ["number", "R924581498"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.531512"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ike@mitchellstanton.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175532215656xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.539168"], ["email", "ike@mitchellstanton.us"], ["encrypted_password", "018ec35c87508409600f504ef7ec6dfbaf196235d50a7f45bd40f2e83c00db1d0801d7998ae57b7977ed73a6401179bb43b6b69e8711cda363797d144093510f"], ["login", "ike@mitchellstanton.us"], ["password_salt", "-fkpxEhRJAzjyoyeQq_B"], ["updated_at", "2014-12-02 20:47:01.539168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.542996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.544282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.545902"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.545902"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R631116185' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R631116185%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R631116185' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NF2CPEHBMJIIGhmRETCgTA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.551653"], ["currency", "USD"], ["email", "ike@mitchellstanton.us"], ["guest_token", "NF2CPEHBMJIIGhmRETCgTA"], ["number", "R631116185"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.551653"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (3.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jayme@greenfelder.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175532215607xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.560692"], ["email", "jayme@greenfelder.us"], ["encrypted_password", "7779c73c7765134ad9f28a5a155f48bcaeeae18c570f019e46cacacfdeba3e6292f4486934f0cba8bf19bcbbe9bc9d561ee9b2d5a526edbae5aa2a3d84368635"], ["login", "jayme@greenfelder.us"], ["password_salt", "7zsDeG6cKNbGpLDu-xYJ"], ["updated_at", "2014-12-02 20:47:01.560692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.564426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.565871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.567386"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.567386"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R187284884' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R187284884%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R187284884' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'eGK5ljBfTTj8Ir9XCUeKvw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.573345"], ["currency", "USD"], ["email", "jayme@greenfelder.us"], ["guest_token", "eGK5ljBfTTj8Ir9XCUeKvw"], ["number", "R187284884"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.573345"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cyrus@kertzmanngoodwin.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175532217038xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.581473"], ["email", "cyrus@kertzmanngoodwin.co.uk"], ["encrypted_password", "6c47c1e5074a16e03c7326d04e402786fbcce2bea28c1484c438fd61966cd8fe58248ca7ba3486c251f221b186b0966c6f8d47b9c6f741e49e7f6e2fc0253850"], ["login", "cyrus@kertzmanngoodwin.co.uk"], ["password_salt", "HyDufsq5GEPPzNVVss9K"], ["updated_at", "2014-12-02 20:47:01.581473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.585686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.587118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.590771"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.590771"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R944555107' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R944555107%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R944555107' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'AtgLi2yG-tzNgxPzWtfY2w' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.599694"], ["currency", "USD"], ["email", "cyrus@kertzmanngoodwin.co.uk"], ["guest_token", "AtgLi2yG-tzNgxPzWtfY2w"], ["number", "R944555107"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.599694"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ona@bogisich.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175532211709xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.607833"], ["email", "ona@bogisich.com"], ["encrypted_password", "5f42579c9b1ed79160ddfc5ae7232ae464f9a355e56f941bea210fe202cc17db4e7dd0cf66329dd5b45ff8d8b4aa0029b3cb1a3fbfd789d7482d63d4874c18cd"], ["login", "ona@bogisich.com"], ["password_salt", "zU2tygfU--9fXRYrQjdC"], ["updated_at", "2014-12-02 20:47:01.607833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.611564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.612849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.614401"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.614401"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R717194942' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R717194942%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R717194942' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'T1pzNSPB8LlrbbRsRIYhPw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.620343"], ["currency", "USD"], ["email", "ona@bogisich.com"], ["guest_token", "T1pzNSPB8LlrbbRsRIYhPw"], ["number", "R717194942"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.620343"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'fredrick_mckenzie@collins.info' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322115010xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.628850"], ["email", "fredrick_mckenzie@collins.info"], ["encrypted_password", "cceb74a92694d1253d0a6387c74fede3b750cb97ea13c62b2d82114d711781173c57e33ea695f1900ddb08ce2e169b3c079b46dbe171240a9c317c548af54967"], ["login", "fredrick_mckenzie@collins.info"], ["password_salt", "p2Sypr-3gd5rN82Fqvyj"], ["updated_at", "2014-12-02 20:47:01.628850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.632846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.635434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.638726"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.638726"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R178454983' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R178454983%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R178454983' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '0JE5r8uK26UA3NqoYXa69g' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.647855"], ["currency", "USD"], ["email", "fredrick_mckenzie@collins.info"], ["guest_token", "0JE5r8uK26UA3NqoYXa69g"], ["number", "R178454983"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.647855"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lina@mcclure.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322113311xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.656562"], ["email", "lina@mcclure.com"], ["encrypted_password", "45ac5c575db01ffc9c3b5df0dde926f2061f6ee7d2283e7f2f66d2e97a39d304155ba5960356c47f6aa9fdecf37494e296ff90647473617ff521ac3525cea7cc"], ["login", "lina@mcclure.com"], ["password_salt", "sws6afs6ytqWhcTRUe8j"], ["updated_at", "2014-12-02 20:47:01.656562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.660341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.661652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.665361"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.665361"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R910388802' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R910388802%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R910388802' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ugfBIT6p1lcnTwhfRDN-mA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.673902"], ["currency", "USD"], ["email", "lina@mcclure.com"], ["guest_token", "ugfBIT6p1lcnTwhfRDN-mA"], ["number", "R910388802"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.673902"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'isobel@ondricka.co.uk' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322110812xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.686372"], ["email", "isobel@ondricka.co.uk"], ["encrypted_password", "7adc5b94984699413b8a9c233ee27048055de4024a20fcd089168b3323cdd002962fcf68e8539b51c4c8896fe0da25b6adc638c438054653333192bf95bb3b79"], ["login", "isobel@ondricka.co.uk"], ["password_salt", "zVJMzPCzn6aLfsjk6h_X"], ["updated_at", "2014-12-02 20:47:01.686372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.691223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.692693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.694163"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.694163"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R566543905' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R566543905%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R566543905' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '_3IRtX6dnrRqfcR1mR09jA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.757260"], ["currency", "USD"], ["email", "isobel@ondricka.co.uk"], ["guest_token", "_3IRtX6dnrRqfcR1mR09jA"], ["number", "R566543905"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.757260"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'santino@hegmann.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322143213xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.768172"], ["email", "santino@hegmann.com"], ["encrypted_password", "9757fae541b974ca6a4f20aa5864db5093d9afc19b8a5c44664efe26d72380d7c15725afab6c90fc8766e44cf7251706241e08a7ca4161ce21928fa29df51f76"], ["login", "santino@hegmann.com"], ["password_salt", "yyzxLhDjbo22xJM9kh7Q"], ["updated_at", "2014-12-02 20:47:01.768172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.775675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.778101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.780281"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.780281"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R495831561' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R495831561%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R495831561' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '6zqq4kyPNv0grP6iuVprtg' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.786689"], ["currency", "USD"], ["email", "santino@hegmann.com"], ["guest_token", "6zqq4kyPNv0grP6iuVprtg"], ["number", "R495831561"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.786689"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'akeem.gulgowski@heathcotepowlowski.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322120514xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.794536"], ["email", "akeem.gulgowski@heathcotepowlowski.us"], ["encrypted_password", "0acca3bf9c5c303da6c98c1f4b848701eda682fb834b917eea53440a6884c935b426263fc6698bc936ce5ff1c34c5055d93a688d10c411288f0131a8a665e60e"], ["login", "akeem.gulgowski@heathcotepowlowski.us"], ["password_salt", "gbuCkWDcrVxgZUP--kEw"], ["updated_at", "2014-12-02 20:47:01.794536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.798416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.799907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.801610"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.801610"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R331671569' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R331671569%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R331671569' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'o239Qk8Y6VRi1r3i3_ND4Q' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.807657"], ["currency", "USD"], ["email", "akeem.gulgowski@heathcotepowlowski.us"], ["guest_token", "o239Qk8Y6VRi1r3i3_ND4Q"], ["number", "R331671569"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.807657"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (3.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'murl@pricekessler.info' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322128815xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.819786"], ["email", "murl@pricekessler.info"], ["encrypted_password", "044a6a7ade6a13d35601cc6103c13f1fe09548dde7a05f96d86012781b64d705a86a0e1708f52fcf9c44dfc492ca28f4bfd418fb21444b416bb8f9bdee23a845"], ["login", "murl@pricekessler.info"], ["password_salt", "X9xkhmSX3_KpkbHMfyJ1"], ["updated_at", "2014-12-02 20:47:01.819786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.825599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.827405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.828825"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.828825"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R300237307' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R300237307%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R300237307' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'MlZyvB2HFKFZLlDkekGupA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.834157"], ["currency", "USD"], ["email", "murl@pricekessler.info"], ["guest_token", "MlZyvB2HFKFZLlDkekGupA"], ["number", "R300237307"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.834157"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'arvilla@runtejacobi.co.uk' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322181016xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.842171"], ["email", "arvilla@runtejacobi.co.uk"], ["encrypted_password", "3fb1f6e41e6ac8307ab450f55d758e252ae98cc4c5dab370f68db1d865270d146c7ca5de85bc2b854b5d54326225e77295db809a09046dc8465b48d3c55fb09f"], ["login", "arvilla@runtejacobi.co.uk"], ["password_salt", "5UoVwwyj7uox_9xD3RKo"], ["updated_at", "2014-12-02 20:47:01.842171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.845798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.847000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.848685"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.848685"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R090109400' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R090109400%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R090109400' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'pMVCOww6F7ZRpk7rqlVjCQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.856992"], ["currency", "USD"], ["email", "arvilla@runtejacobi.co.uk"], ["guest_token", "pMVCOww6F7ZRpk7rqlVjCQ"], ["number", "R090109400"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.856992"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'roderick.connelly@rutherford.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322139717xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.868079"], ["email", "roderick.connelly@rutherford.biz"], ["encrypted_password", "bdb1d15698398eddb750053550b685a4aa3c59245f8ad28f1d6b4d597cafd347bc13440d751a9f5eefd820f823599bbed2a123472433f075caf765dad24d00b3"], ["login", "roderick.connelly@rutherford.biz"], ["password_salt", "zzvT4Lx_zEfn7AUEvLBV"], ["updated_at", "2014-12-02 20:47:01.868079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.873881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.875693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.877459"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.877459"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R580646307' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R580646307%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R580646307' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'elfrI_4bNH2XT4YBlXb_1g' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.882753"], ["currency", "USD"], ["email", "roderick.connelly@rutherford.biz"], ["guest_token", "elfrI_4bNH2XT4YBlXb_1g"], ["number", "R580646307"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.882753"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'aiden_crona@mayer.info' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175532213718xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.889951"], ["email", "aiden_crona@mayer.info"], ["encrypted_password", "8f1963c774288d4694e80690ee0408f36533c204e746238ad206b4b948b9e7cbb153b95a62363fc7ea58a09c5fd80cd2a2019e9d680f64f4a381bdc2c113b49f"], ["login", "aiden_crona@mayer.info"], ["password_salt", "UJy4siUYKQNpuhHmxGhS"], ["updated_at", "2014-12-02 20:47:01.889951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.893557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.894796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.896190"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.896190"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R674292610' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R674292610%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R674292610' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '6Amrcc5kAqpv81PRMFfULA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.902194"], ["currency", "USD"], ["email", "aiden_crona@mayer.info"], ["guest_token", "6Amrcc5kAqpv81PRMFfULA"], ["number", "R674292610"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.902194"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'diana@lednerpfeffer.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322110019xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.914671"], ["email", "diana@lednerpfeffer.ca"], ["encrypted_password", "71d0a44a3784dc84fa7710dabd123ae91fcd1c637378d92ad403f5797e88e1f87dd7cccc11433f74b5133f1d777d62286110ac591bf0f78cb284a15b46054558"], ["login", "diana@lednerpfeffer.ca"], ["password_salt", "5sbpStT3xp_1D3r-Um9S"], ["updated_at", "2014-12-02 20:47:01.914671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.920446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.922237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.923666"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.923666"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R746773263' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R746773263%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R746773263' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'sRRSUDQjL83Iln8rhudy5A' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.929115"], ["currency", "USD"], ["email", "diana@lednerpfeffer.ca"], ["guest_token", "sRRSUDQjL83Iln8rhudy5A"], ["number", "R746773263"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.929115"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'antonia@bartelltillman.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322130420xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.937126"], ["email", "antonia@bartelltillman.com"], ["encrypted_password", "350d709025bb5def6bb7770160a41e20653df6bb4d0e38fbde32e5ca33bcfc5990a89f5c407ffe2f13e635d006083cf41f64b3accfb1282018368251cd0a6a3e"], ["login", "antonia@bartelltillman.com"], ["password_salt", "9SDT13nLTb3oyYB4HU-2"], ["updated_at", "2014-12-02 20:47:01.937126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.940884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.942137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.944301"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.944301"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R358761375' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R358761375%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R358761375' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'OnR5J83eutvn7Syd0qtLKQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.954775"], ["currency", "USD"], ["email", "antonia@bartelltillman.com"], ["guest_token", "OnR5J83eutvn7Syd0qtLKQ"], ["number", "R358761375"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.954775"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'napoleon.stamm@farrell.co.uk' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322177721xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:01.963317"], ["email", "napoleon.stamm@farrell.co.uk"], ["encrypted_password", "163a96e4b27860a180a0784434054c7ebbe66f9f13d3586e92db7ac8d2d46807cbc552cc4573253bdef5240bae4cc69c895c9deac38da1eb7bf55ddf62f20c4d"], ["login", "napoleon.stamm@farrell.co.uk"], ["password_salt", "wKmQXsM5QWBNyva_V9NE"], ["updated_at", "2014-12-02 20:47:01.963317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:01.967192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:01.968915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:01.972406"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:01.972406"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R262288648' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R262288648%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R262288648' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 's2H2BPm_ZSH9GqmC7d30zQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:01.981993"], ["currency", "USD"], ["email", "napoleon.stamm@farrell.co.uk"], ["guest_token", "s2H2BPm_ZSH9GqmC7d30zQ"], ["number", "R262288648"], ["state", "payment"], ["updated_at", "2014-12-02 20:47:01.981993"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lafayette.sipes@cristweimann.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322279522xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:02.012190"], ["email", "lafayette.sipes@cristweimann.com"], ["encrypted_password", "1525cabbf9dacbb00bb3d714445c3382bfd979b4c0e89abb03d11ea1795ab5ccddf121d9583487db3565041eda24d4fa3d7c57b5b09807563219340a0c04dab6"], ["login", "lafayette.sipes@cristweimann.com"], ["password_salt", "anty52MzoL8u5dZsJbJq"], ["updated_at", "2014-12-02 20:47:02.012190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:02.015209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:02.016549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:02.018007"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:02.018007"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R043223408' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R043223408%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R043223408' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CY-b8FKMtF8ulU2ORFo6WQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:02.023682"], ["currency", "USD"], ["email", "lafayette.sipes@cristweimann.com"], ["guest_token", "CY-b8FKMtF8ulU2ORFo6WQ"], ["number", "R043223408"], ["state", "cart"], ["updated_at", "2014-12-02 20:47:02.023682"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 20:47:02.085867"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 20:47:02.085867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 318415' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 20:47:02.097113"], ["description", "Ad commodi placeat quia veritatis beatae eius blanditiis."], ["name", "TaxCategory - 318415"], ["updated_at", "2014-12-02 20:47:02.097113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 20:47:02.121050"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:02.121050"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-5972' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-5972' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:47:02.081419"], ["created_at", "2014-12-02 20:47:02.126598"], ["description", "Aliquid velit tenetur fugiat quam accusantium asperiores provident omnis. Perspiciatis qui ab ut aut error eaque voluptatem. Aspernatur voluptatum aperiam est id eius.\nConsequatur voluptatem veritatis modi delectus dolores sunt nulla neque. Et vero quia ullam facere sunt maxime et. Iste ut enim temporibus est illo beatae occaecati. Nihil omnis vel aut ad enim saepe id soluta. Necessitatibus ratione debitis reiciendis consequatur rem dolor sint et.\nIn corporis ut excepturi debitis nihil. Ea reprehenderit sed possimus nulla est velit earum voluptate. Voluptas voluptatum sint eveniet qui suscipit. Deserunt sint repudiandae soluta ut eos nisi."], ["name", "Product #1 - 5972"], ["shipping_category_id", 1], ["slug", "product-1-5972"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:02.126598"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 20:47:02.129362"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:02.136761' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.138049' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.152154' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.153460' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:47:02.175984"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:47:02.175984"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:02.177299' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.177905' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.179084' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.179647' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.2ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.191404' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.192266' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.192901' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 20:47:02.194805"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.196393' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.196956' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.197483' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.198087' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.198561' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:47:02.220715"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:02.220715"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-5972' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:02.229186' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:02.238114' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-7144' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-7144' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:47:02.243363"], ["created_at", "2014-12-02 20:47:02.247760"], ["description", "In mollitia ut delectus quod accusamus voluptatem. Id blanditiis aut quo voluptas et cumque. Distinctio eos quo aut perferendis itaque."], ["name", "Product #2 - 7144"], ["shipping_category_id", 1], ["slug", "product-2-7144"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:02.247760"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 20:47:02.250255"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:02.252472' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.253701' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.255036' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.255656' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:47:02.259438"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:47:02.259438"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:02.260585' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.261184' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.262586' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.263256' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.268317' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.268976' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.269586' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 20:47:02.271411"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.272275' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.272940' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.273539' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.274262' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.274793' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:47:02.298160"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:02.298160"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-7144' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:02.303272' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:02.309644' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 20:47:02.331021' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:47:02.353173"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 20:47:02.353173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:47:02.367371"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 20:47:02.367371"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'devan_eichmann@kling.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322231423xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:02.372308"], ["email", "devan_eichmann@kling.us"], ["encrypted_password", "43d127a56802de9b654c6c140c691fd80193b891ba486b94f5ecc5eb94e978f827d6a7e5da122b8ade2e7e9b77d574f89364d38517ad9c21205a94667e2cee10"], ["login", "devan_eichmann@kling.us"], ["password_salt", "KT3Jewqcqz13Tge9CCys"], ["updated_at", "2014-12-02 20:47:02.372308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:02.375457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:02.377155"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 20:47:02.377155"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R503187367' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R503187367%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R503187367' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'vUSqXUey_GOkyP7u_4XiCw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 20:47:02.387040"], ["currency", "USD"], ["email", "devan_eichmann@kling.us"], ["guest_token", "vUSqXUey_GOkyP7u_4XiCw"], ["number", "R503187367"], ["state", "cart"], ["updated_at", "2014-12-02 20:47:02.387040"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'J8ABF92K' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 20:47:02.399779"], ["identifier", "J8ABF92K"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 20:47:02.399779"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:02.402851' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-034022' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-034022"], ["updated_at", "2014-12-02 20:47:02.404232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (112.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'candido_rosenbaum@beckerdenesik.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322211624xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:02.533271"], ["email", "candido_rosenbaum@beckerdenesik.com"], ["encrypted_password", "838c63d4c06d73a6fc6a039c986d801f67e671ff1e3f206c68fb601109bc9341b709a497a61b4711a76263774cffce985f7db3379599fe83e2d954007aa4e4e5"], ["login", "candido_rosenbaum@beckerdenesik.com"], ["password_salt", "aarTos1iaZqUys-nVqNV"], ["updated_at", "2014-12-02 20:47:02.533271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:02.538645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:02.541434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:02.543922"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:02.543922"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R797980306' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R797980306%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R797980306' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 's0srnSvl4ObN2XOElK6c2A' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:02.551157"], ["currency", "USD"], ["email", "candido_rosenbaum@beckerdenesik.com"], ["guest_token", "s0srnSvl4ObN2XOElK6c2A"], ["number", "R797980306"], ["state", "cart"], ["updated_at", "2014-12-02 20:47:02.551157"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 20:47:02.560715"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 20:47:02.560715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 85090' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 20:47:02.563355"], ["description", "Tempore asperiores eum error suscipit enim qui aliquam totam."], ["name", "TaxCategory - 85090"], ["updated_at", "2014-12-02 20:47:02.563355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 20:47:02.567186"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:02.567186"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5872' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5872' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:47:02.559637"], ["created_at", "2014-12-02 20:47:02.571246"], ["description", "Sit et et non saepe. Nihil suscipit harum esse vel. Ducimus odio consequuntur et fugiat enim autem non fuga. Sed error nihil qui minima impedit nihil nulla. Maxime libero omnis minima quod.\nRepudiandae modi aliquid adipisci qui rerum est. Minus et itaque tenetur aliquam labore vero est. Cupiditate non expedita veritatis est consectetur. Id ut consectetur quia nihil odio aspernatur eaque. Incidunt qui sed molestiae iusto quia delectus voluptatem.\nMollitia ratione illo cum dignissimos non repudiandae quidem dolor. Ullam dicta facere autem exercitationem est nulla iure. Quos sequi dolorem rem quo nihil eos.\nUt unde pariatur libero itaque et natus est iure. Accusantium sequi voluptatem quaerat doloremque quae non totam. Rerum necessitatibus error dolorum debitis.\nVeritatis deleniti atque laboriosam placeat. Est quia quam aliquam eaque ut doloremque eius. Non et accusamus quam enim hic. Accusamus perferendis excepturi perspiciatis dicta voluptatem tenetur ducimus dolorem."], ["name", "Product #3 - 5872"], ["shipping_category_id", 1], ["slug", "product-3-5872"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:02.571246"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-12-02 20:47:02.574035"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:02.576501' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.577741' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.579150' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.579756' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:47:02.583306"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:47:02.583306"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:02.584324' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.584879' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.586078' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.586590' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.590596' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.591171' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.591753' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 20:47:02.593581"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.594313' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.594810' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.595347' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.595959' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.596447' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:47:02.601169"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:02.601169"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5872' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:02.605639' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:02.610367' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-3473' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-3473' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:47:02.614591"], ["created_at", "2014-12-02 20:47:02.618364"], ["description", "Voluptas illum placeat illo in mollitia pariatur. Debitis quaerat ipsa ea explicabo aut praesentium. Optio minus voluptas voluptatem nesciunt qui aut."], ["name", "Product #4 - 3473"], ["shipping_category_id", 1], ["slug", "product-4-3473"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:02.618364"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-12-02 20:47:02.620545"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:02.622539' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.623570' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.624838' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.625398' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:47:02.628702"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:47:02.628702"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:02.629617' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.630175' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.631263' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.631739' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.635759' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.636268' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.636792' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 20:47:02.638572"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.639292' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.639802' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.640320' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.640928' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.641407' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:47:02.648214"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:02.648214"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-3473' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:02.655440' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:02.660865' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 20:47:02.669599' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:47:02.673403"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 20:47:02.673403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:47:02.675596"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 20:47:02.675596"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kaylin_breitenberg@kozeyschuster.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322210725xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:02.678574"], ["email", "kaylin_breitenberg@kozeyschuster.co.uk"], ["encrypted_password", "6b914464ac9176498523766fb96a218821e5daaa71ed98f40ae35d2ce6cbe0a1a8c416c9c63713bb95f862e51f9ca9c81f2e8d094b1cccad4d9c109b2cffd823"], ["login", "kaylin_breitenberg@kozeyschuster.co.uk"], ["password_salt", "1PCC_Ti8QjyJXp-3UTKq"], ["updated_at", "2014-12-02 20:47:02.678574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:02.681262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:02.682700"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 20:47:02.682700"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R087082406' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R087082406%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R087082406' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'U8xZHGReZMLbkYd6eq1IqA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 20:47:02.688245"], ["currency", "USD"], ["email", "kaylin_breitenberg@kozeyschuster.co.uk"], ["guest_token", "U8xZHGReZMLbkYd6eq1IqA"], ["number", "R087082406"], ["state", "cart"], ["updated_at", "2014-12-02 20:47:02.688245"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '5ZJRJTAK' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 20:47:02.690762"], ["identifier", "5ZJRJTAK"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 20:47:02.690762"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:02.693097' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-442251' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-442251"], ["updated_at", "2014-12-02 20:47:02.694314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (133.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'osbaldo_rau@andersoncole.biz' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322271626xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:02.841083"], ["email", "osbaldo_rau@andersoncole.biz"], ["encrypted_password", "5d41a7b0dc71ff4fe919d4e1abb832a2398447d8b418e9b25963ce49cb39d1f37287a02b993f250428018bb3195f892bb59931d0ceee69c22dcd19a943b94724"], ["login", "osbaldo_rau@andersoncole.biz"], ["password_salt", "XRxq_4x6FKdiEyzDnaMu"], ["updated_at", "2014-12-02 20:47:02.841083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:02.845416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:02.846933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:02.848475"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:02.848475"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R214748356' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R214748356%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R214748356' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'irL6bqSPECuzjLOEGodoSw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:02.855066"], ["currency", "USD"], ["email", "osbaldo_rau@andersoncole.biz"], ["guest_token", "irL6bqSPECuzjLOEGodoSw"], ["number", "R214748356"], ["state", "cart"], ["updated_at", "2014-12-02 20:47:02.855066"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 20:47:02.864485"], ["name", "ShippingCategory #3"], ["updated_at", "2014-12-02 20:47:02.864485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 375796' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 20:47:02.867558"], ["description", "Voluptatibus sunt sunt voluptatem blanditiis."], ["name", "TaxCategory - 375796"], ["updated_at", "2014-12-02 20:47:02.867558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 20:47:02.871052"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:02.871052"], ["zipcode", "20500"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-9364' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-9364' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:47:02.863185"], ["created_at", "2014-12-02 20:47:02.878581"], ["description", "Quibusdam eum omnis quo veniam molestias sapiente et aut. Architecto voluptatem quidem molestias eveniet aut et. Et maiores consequatur rem fugit. Autem qui sunt dolor qui.\nPossimus quae vero qui maxime officia. Nesciunt suscipit eos repudiandae velit commodi nihil earum. Et laboriosam ex dolor vel.\nMaxime atque ab molestiae est corporis blanditiis. Sed qui quos possimus reprehenderit aut labore eligendi omnis. Assumenda mollitia qui voluptate aliquam.\nNostrum quis quas natus quod laborum nemo omnis iure. Suscipit reiciendis facilis quam quos beatae sunt officia maxime. Nulla quod modi qui sunt. Facere quis recusandae possimus voluptatibus quam inventore. Facere consequatur ullam rem beatae non quaerat."], ["name", "Product #5 - 9364"], ["shipping_category_id", 1], ["slug", "product-5-9364"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:02.878581"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-12-02 20:47:02.882162"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:02.884805' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.885985' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.887304' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.887908' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:47:02.891347"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:47:02.891347"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:02.892304' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.892827' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.894008' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.894508' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.898506' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.899023' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.899597' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 20:47:02.901470"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.902215' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.902727' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.903252' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.903846' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.904780' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:47:02.910198"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:02.910198"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-9364' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:02.914467' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:02.920999' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-597' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-597' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:47:02.926727"], ["created_at", "2014-12-02 20:47:02.930487"], ["description", "Sapiente deserunt nihil nihil est sit dolor facere. Velit sequi aspernatur sint non repellendus placeat. Est a nam sed et numquam officia quia deleniti.\nVoluptates qui accusantium maiores asperiores at tempore. Quia facilis soluta est minus. Voluptatem in voluptatibus labore aut iure. Debitis labore omnis quia quasi vel ea magnam incidunt.\nPerferendis nulla maxime aspernatur saepe vitae animi et eius. Tempora assumenda laudantium consequuntur alias beatae aut perspiciatis consequatur. Placeat eveniet voluptas error assumenda et blanditiis. Totam aspernatur corporis ab sit illum praesentium. Error laboriosam impedit aut voluptas provident."], ["name", "Product #6 - 597"], ["shipping_category_id", 1], ["slug", "product-6-597"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:02.930487"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-12-02 20:47:02.932819"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:02.934874' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.936123' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.937616' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.938202' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:47:02.942285"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:47:02.942285"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:02.943418' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.943981' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.945127' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.945659' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.950040' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.950597' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.951183' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 20:47:02.952828"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:02.953512' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.953967' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.954507' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:02.955113' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:02.955552' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:47:02.960266"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:02.960266"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-597' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:02.964899' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:02.969484' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 20:47:02.978277' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:47:02.982069"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 20:47:02.982069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:47:02.984255"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 20:47:02.984255"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kelsie@kuphal.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322259927xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:02.987261"], ["email", "kelsie@kuphal.name"], ["encrypted_password", "80be54fe411fd1a15dbc2c1d4aa6a51515abd1cf33260b573c8bf76b53e94395db2224f72c8c990e2da821c3b4127452bc506c6d038363d0b1794171cdc5cca8"], ["login", "kelsie@kuphal.name"], ["password_salt", "aVYngmLdR8oZuJGv_iyG"], ["updated_at", "2014-12-02 20:47:02.987261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:02.989919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:02.991380"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 20:47:02.991380"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R765600878' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R765600878%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R765600878' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '2tXaKvnPE8V6v-qZdG-UOw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 20:47:03.012342"], ["currency", "USD"], ["email", "kelsie@kuphal.name"], ["guest_token", "2tXaKvnPE8V6v-qZdG-UOw"], ["number", "R765600878"], ["state", "cart"], ["updated_at", "2014-12-02 20:47:03.012342"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'BHNKVPUB' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 20:47:03.014839"], ["identifier", "BHNKVPUB"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 20:47:03.014839"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:03.017370' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-040205' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-040205"], ["updated_at", "2014-12-02 20:47:03.018604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (7.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ernest@kesslerohara.name' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417553223828xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:03.040034"], ["email", "ernest@kesslerohara.name"], ["encrypted_password", "a6df4d9f8459497e3fe32b35df3bed28ed411d0007c845b9966fc0aa3a5bb556299e256732eb31aed320b33457343fc99ce879bda58b618838fade36a8a74d4a"], ["login", "ernest@kesslerohara.name"], ["password_salt", "dSSGUAjcMBgQhAmuoYkk"], ["updated_at", "2014-12-02 20:47:03.040034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:03.044992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:03.046845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:03.048417"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:03.048417"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R692996970' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R692996970%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R692996970' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'L3mlBBqsttfWTmYRNIUmRg' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:03.055875"], ["currency", "USD"], ["email", "ernest@kesslerohara.name"], ["guest_token", "L3mlBBqsttfWTmYRNIUmRg"], ["number", "R692996970"], ["state", "cart"], ["updated_at", "2014-12-02 20:47:03.055875"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 20:47:03.065149"], ["name", "ShippingCategory #4"], ["updated_at", "2014-12-02 20:47:03.065149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 137416' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 20:47:03.067839"], ["description", "Quos sequi totam earum aut vel voluptatem aut."], ["name", "TaxCategory - 137416"], ["updated_at", "2014-12-02 20:47:03.067839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 20:47:03.071503"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:03.071503"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-3791' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-3791' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:47:03.063697"], ["created_at", "2014-12-02 20:47:03.075506"], ["description", "Dolor ducimus eius iusto quia natus et ipsa excepturi. Possimus est ullam dolores debitis omnis sapiente commodi. Non et nesciunt officia fugiat consequatur numquam non. Architecto perferendis reiciendis officia odit. Dolorem molestiae fugit earum sed nihil.\nQui omnis delectus pariatur ab dolores eaque. Vel rem consequatur non autem quo. Dolorem ut quo voluptas et repellendus.\nEum facere vel voluptatem tempora omnis consequatur et incidunt. Neque dolorem assumenda fuga consequuntur. Provident a dolores eos et. Officia necessitatibus et vero officiis et."], ["name", "Product #7 - 3791"], ["shipping_category_id", 1], ["slug", "product-7-3791"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:03.075506"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-12-02 20:47:03.078298"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:03.080425' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.081623' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.082892' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.083462' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:47:03.086841"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:47:03.086841"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:03.087815' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.088347' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.089439' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.089917' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.094231' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.094731' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.095300' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 20:47:03.097083"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.097831' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.098343' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.098841' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.099460' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.099917' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:47:03.104614"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:03.104614"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-3791' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:03.108827' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:03.113684' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-274' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-274' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:47:03.117794"], ["created_at", "2014-12-02 20:47:03.121426"], ["description", "Excepturi magnam voluptas facere nostrum optio velit. Possimus est et esse fuga id non nemo vitae. Quaerat voluptate adipisci quo aut dignissimos illum cumque ut."], ["name", "Product #8 - 274"], ["shipping_category_id", 1], ["slug", "product-8-274"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:03.121426"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-12-02 20:47:03.123483"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:03.125451' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.126528' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.128112' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.128658' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:47:03.132462"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:47:03.132462"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:03.133440' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.133973' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.135085' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.135564' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.4ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.139728' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.140306' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.140877' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 20:47:03.142596"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.143304' WHERE "spree_products"."id" = 2 SQL (0.3ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.143800' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.144516' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.145130' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.145605' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:47:03.150121"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:03.150121"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-274' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:03.154219' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:03.158692' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 20:47:03.167211' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:47:03.170805"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 20:47:03.170805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:47:03.172819"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 20:47:03.172819"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lilliana.will@purdyleannon.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322358629xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:03.175704"], ["email", "lilliana.will@purdyleannon.biz"], ["encrypted_password", "d17b5ca6a166539eb5d7cbd1127da22995d94f8775f97782c13d5e044882b041a82fa81a96d97bba15425c641579979d1491a096bb8142e5a3bee4d905f5741b"], ["login", "lilliana.will@purdyleannon.biz"], ["password_salt", "NNbXex2XoPMaQ3EWYPt2"], ["updated_at", "2014-12-02 20:47:03.175704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:03.178291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:03.179680"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 20:47:03.179680"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R188678574' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R188678574%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R188678574' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'M3unJNW5rNEn-QDmNm8UvA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 20:47:03.184795"], ["currency", "USD"], ["email", "lilliana.will@purdyleannon.biz"], ["guest_token", "M3unJNW5rNEn-QDmNm8UvA"], ["number", "R188678574"], ["state", "cart"], ["updated_at", "2014-12-02 20:47:03.184795"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '8TUYWZYA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 20:47:03.187148"], ["identifier", "8TUYWZYA"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 20:47:03.187148"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:03.189334' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-054035' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-054035"], ["updated_at", "2014-12-02 20:47:03.190451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (5.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dayne@wintheiserswift.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322345530xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:03.209474"], ["email", "dayne@wintheiserswift.co.uk"], ["encrypted_password", "167c7e1438ae2f83894a401259b430745d1e56266af9660f2dc6517af67ed02997fd7efd549409368399e459386ae7c47e92cf7f8d0e6f8ad0ee29299cc17506"], ["login", "dayne@wintheiserswift.co.uk"], ["password_salt", "4FFVAxdkHNEcJYjPiaeM"], ["updated_at", "2014-12-02 20:47:03.209474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:03.213963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:03.215603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:03.217015"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:03.217015"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R921237605' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R921237605%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R921237605' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '3BDGB2glOb3EAPqu6HYlAg' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:03.222719"], ["currency", "USD"], ["email", "dayne@wintheiserswift.co.uk"], ["guest_token", "3BDGB2glOb3EAPqu6HYlAg"], ["number", "R921237605"], ["state", "cart"], ["updated_at", "2014-12-02 20:47:03.222719"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 20:47:03.230779"], ["name", "ShippingCategory #5"], ["updated_at", "2014-12-02 20:47:03.230779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 680828' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 20:47:03.233483"], ["description", "Maxime quisquam totam asperiores repudiandae atque rem illum."], ["name", "TaxCategory - 680828"], ["updated_at", "2014-12-02 20:47:03.233483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 20:47:03.236933"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:03.236933"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-8019' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-8019' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:47:03.229682"], ["created_at", "2014-12-02 20:47:03.240984"], ["description", "Porro cum laudantium est autem. Quidem possimus pariatur et sint dolorem fugiat quia. Beatae molestiae optio debitis quam consequatur eum.\nConsectetur exercitationem nesciunt non illum sed ipsam. Tempore voluptate ipsum iure incidunt omnis sit libero sunt. Officiis quaerat et blanditiis soluta consequatur sint. Atque est nihil sint et architecto voluptatem dolor eligendi. Mollitia ut occaecati quam aut illum."], ["name", "Product #9 - 8019"], ["shipping_category_id", 1], ["slug", "product-9-8019"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:03.240984"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-12-02 20:47:03.243504"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:03.245943' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.247201' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.248539' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.249145' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:47:03.252535"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:47:03.252535"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:03.253530' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.254094' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.255213' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.255690' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.259682' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.260292' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.260878' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 20:47:03.262667"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.263417' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.263899' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.264394' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.264954' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.265426' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:47:03.270361"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:03.270361"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-8019' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:03.274544' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:03.279142' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-6042' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-6042' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:47:03.284360"], ["created_at", "2014-12-02 20:47:03.288138"], ["description", "Ad doloribus quisquam ut totam eos voluptas ipsam incidunt. Neque eius et ipsum rerum. Impedit magni aut dolores illum accusantium. Qui consequatur sed nesciunt aut magnam cupiditate id.\nAliquam quia eum sequi cum minima voluptatem. Dolorem eos autem quam rerum illum. Et repudiandae cum doloremque debitis eum tenetur veritatis voluptate. Earum numquam eligendi rerum velit excepturi."], ["name", "Product #10 - 6042"], ["shipping_category_id", 1], ["slug", "product-10-6042"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:03.288138"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-12-02 20:47:03.290622"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:03.292580' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.293674' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.295281' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.295850' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:47:03.299504"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:47:03.299504"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:03.300467' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.301003' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.302117' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.302622' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.306620' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.307157' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.307762' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 20:47:03.309603"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.310330' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.310839' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.311396' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.312011' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.312458' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:47:03.317266"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:03.317266"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-6042' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:03.321617' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:03.326077' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 20:47:03.334795' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 20:47:03.345906"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 20:47:03.345906"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:03.349301' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:03.349863' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:47:03.353505"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 20:47:03.353505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:47:03.355530"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 20:47:03.355530"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'emmet@rogahnkuhic.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322313331xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:03.358498"], ["email", "emmet@rogahnkuhic.co.uk"], ["encrypted_password", "d4c647b1c47604e7ccab499a36a4447d6391da5230325475b6dc843d264242c757d36e3b25774cfe4a01cbf6817f1bc27253892f23b6c53196d638464436fe8e"], ["login", "emmet@rogahnkuhic.co.uk"], ["password_salt", "M8rTrxLpUsjexoR_ZmJa"], ["updated_at", "2014-12-02 20:47:03.358498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:03.360999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:03.362399"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 20:47:03.362399"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R989461249' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R989461249%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R989461249' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xsRGsS5N_bbM0L6V-rvvYw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 20:47:03.367568"], ["currency", "USD"], ["email", "emmet@rogahnkuhic.co.uk"], ["guest_token", "xsRGsS5N_bbM0L6V-rvvYw"], ["number", "R989461249"], ["state", "cart"], ["updated_at", "2014-12-02 20:47:03.367568"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'UHPPL7BA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 20:47:03.369916"], ["identifier", "UHPPL7BA"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 20:47:03.369916"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:03.372131' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-302103' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-302103"], ["updated_at", "2014-12-02 20:47:03.373266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'catalina.koepp@cormier.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175532232332xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:03.391074"], ["email", "catalina.koepp@cormier.us"], ["encrypted_password", "930fd68bfba65e6b9081a54c0de6fc29e0dc53c58d315d51902fc851b03392fdb32b86c5e9f016eed70be4cd7b228cc301c2d01da65747f291bd7c2232720a98"], ["login", "catalina.koepp@cormier.us"], ["password_salt", "rUzvbzLviwHZzhcnT4SS"], ["updated_at", "2014-12-02 20:47:03.391074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:47:03.394990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:03.396256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:03.397660"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:03.397660"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R820383471' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R820383471%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R820383471' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'dSKB59FXFOonI9WF40SAdQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:47:03.403087"], ["currency", "USD"], ["email", "catalina.koepp@cormier.us"], ["guest_token", "dSKB59FXFOonI9WF40SAdQ"], ["number", "R820383471"], ["state", "cart"], ["updated_at", "2014-12-02 20:47:03.403087"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 20:47:03.410900"], ["name", "ShippingCategory #6"], ["updated_at", "2014-12-02 20:47:03.410900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 195146' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 20:47:03.413511"], ["description", "Vel nobis quaerat rem nostrum dignissimos suscipit alias."], ["name", "TaxCategory - 195146"], ["updated_at", "2014-12-02 20:47:03.413511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 20:47:03.416823"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 20:47:03.416823"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-8702' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-8702' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:47:03.409845"], ["created_at", "2014-12-02 20:47:03.420401"], ["description", "Vel facere enim beatae quisquam sed perspiciatis. Et eos natus suscipit voluptatibus qui. Est numquam minima et laborum aut. Qui vitae omnis veritatis officiis hic minima recusandae sit. Qui autem consequuntur molestiae dolor.\nUt sed eligendi quis corrupti fuga. Optio veniam illum sunt tempora itaque veritatis numquam ea. Accusantium voluptas amet labore aut assumenda. Non ea ipsam sint occaecati voluptates autem velit."], ["name", "Product #11 - 8702"], ["shipping_category_id", 1], ["slug", "product-11-8702"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:03.420401"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-12-02 20:47:03.422911"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:03.424989' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.426138' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.427439' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.428028' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:47:03.432027"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:47:03.432027"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:03.433173' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.433791' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.434972' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.435475' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.439527' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.440132' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.440743' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 20:47:03.442556"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.443316' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.443826' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.444354' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.444911' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.445353' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:47:03.450093"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:03.450093"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-8702' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:03.454395' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:03.459121' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-5445' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-5445' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:47:03.478614"], ["created_at", "2014-12-02 20:47:03.482541"], ["description", "Quos animi perferendis sit ut amet esse sequi. Harum similique aut iure tenetur dolorum. Quidem harum nulla atque possimus nostrum ab. Asperiores dolorem voluptatibus reiciendis eligendi consectetur.\nExcepturi reprehenderit quas sunt aut rem doloribus magni. Debitis omnis sunt occaecati voluptas quidem veniam. Ipsa autem eaque qui libero tempora molestiae. Et impedit enim culpa et unde tempore aliquam."], ["name", "Product #12 - 5445"], ["shipping_category_id", 1], ["slug", "product-12-5445"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:03.482541"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-12-02 20:47:03.484596"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:03.486498' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.487596' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.488823' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.489363' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:47:03.492783"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:47:03.492783"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:47:03.493708' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.494256' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.495344' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.495821' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.499695' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.500211' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.500722' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 20:47:03.502499"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:47:03.503202' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.503691' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.504222' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:47:03.504834' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:47:03.505326' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:47:03.510028"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:47:03.510028"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-5445' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:03.514061' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:03.518466' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 20:47:03.526767' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 20:47:03.528431"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 20:47:03.528431"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:47:03.531196' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:03.531687' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:47:03.535202"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 20:47:03.535202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:47:03.537242"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 20:47:03.537242"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kira@mcclure.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755322372533xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:47:03.540122"], ["email", "kira@mcclure.ca"], ["encrypted_password", "dd4b89e12687b57932544fe9353ef7c741ee1533b648bd151d058c9a11bbab317d09aaada9bdfaef50def76318fffd1193348ec1264e218d7ff9da7bda883231"], ["login", "kira@mcclure.ca"], ["password_salt", "6viEa4ssQKx5AuGhECod"], ["updated_at", "2014-12-02 20:47:03.540122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:47:03.542647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:47:03.543995"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 20:47:03.543995"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R424505050' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R424505050%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R424505050' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '3rkLCWkjhkgPvhcc1Jj1kg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 20:47:03.549109"], ["currency", "USD"], ["email", "kira@mcclure.ca"], ["guest_token", "3rkLCWkjhkgPvhcc1Jj1kg"], ["number", "R424505050"], ["state", "cart"], ["updated_at", "2014-12-02 20:47:03.549109"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'V9RLRFJP' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 20:47:03.551432"], ["identifier", "V9RLRFJP"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 20:47:03.551432"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:47:03.553603' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-031515' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-031515"], ["updated_at", "2014-12-02 20:47:03.554769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.5ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::CheckoutController#update as HTML Parameters: {"state"=>"payment", "order"=>{"payments_attributes"=>[{"payment_method_id"=>"fake_id"}]}} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1 Completed 500 Internal Server Error in 15ms  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kadin@koepp.biz' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175533045981xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:48:24.026755"], ["email", "kadin@koepp.biz"], ["encrypted_password", "07cbbecddb9e875ce2c38b00adadc7f98c17866fa35037fd5d041eeff577611ee9df7e35835eba80d34a0ef23a8071a16bec75f370d33a872f6d3bb935fa8792"], ["login", "kadin@koepp.biz"], ["password_salt", "R3gKo_RaB427CAFKhYv_"], ["updated_at", "2014-12-02 20:48:24.026755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:48:24.068931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:48:24.079378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:48:24.095035"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:48:24.095035"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R696553902' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R696553902%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R696553902' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'boTJvL9iebaiNsZyYXXd1Q' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:48:24.131125"], ["currency", "USD"], ["email", "kadin@koepp.biz"], ["guest_token", "boTJvL9iebaiNsZyYXXd1Q"], ["number", "R696553902"], ["state", "payment"], ["updated_at", "2014-12-02 20:48:24.131125"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (47.3ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'madaline@lesch.biz' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175533334111xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:48:53.510692"], ["email", "madaline@lesch.biz"], ["encrypted_password", "d3325fc9d18452ecc14afe00837c2055d56efa1af2f669d3b12f0ed2bf25cc522fce1a21fed679f4c5fd0350f1335ae9871fdaa61c3989f97a69deba8276c32b"], ["login", "madaline@lesch.biz"], ["password_salt", "s9kHcpKziXpAfFDzxr9M"], ["updated_at", "2014-12-02 20:48:53.510692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:48:53.549153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:48:53.555999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:48:53.565370"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:48:53.565370"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R421920715' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R421920715%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R421920715' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Lq6saStp44u8J7Yx9WgOpg' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:48:53.603957"], ["currency", "USD"], ["email", "madaline@lesch.biz"], ["guest_token", "Lq6saStp44u8J7Yx9WgOpg"], ["number", "R421920715"], ["state", "payment"], ["updated_at", "2014-12-02 20:48:53.603957"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (47.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'micheal@ebertrowe.name' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175534598391xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:50:59.857382"], ["email", "micheal@ebertrowe.name"], ["encrypted_password", "0fc6cc0220d73d3ba3b1694229a825c8db3c4a3ea6c7c5a2b2c81d6e469e18585a4f1950eebee07dc1e445e76417cd7b73a7308d8c965d6754652605f24c3173"], ["login", "micheal@ebertrowe.name"], ["password_salt", "yzo5G_xNHqbAr2FRGuca"], ["updated_at", "2014-12-02 20:50:59.857382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:50:59.892623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:50:59.902956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:50:59.918736"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:50:59.918736"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R788860807' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R788860807%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R788860807' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'uK3u_LPGDbZpX2Tj3-Cu-A' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:50:59.954830"], ["currency", "USD"], ["email", "micheal@ebertrowe.name"], ["guest_token", "uK3u_LPGDbZpX2Tj3-Cu-A"], ["number", "R788860807"], ["state", "payment"], ["updated_at", "2014-12-02 20:50:59.954830"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (56.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'maribel_dibbert@dickinson.com' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175537649521xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:56:04.422402"], ["email", "maribel_dibbert@dickinson.com"], ["encrypted_password", "f5d39ee1aee896a0ef964373a8d06973ecfa4733e26e65427c561c3116b371b72e64a0c9a7e50cbfeb44a1dd27204a91cbe14247266f31bb540ad6751a8b89f8"], ["login", "maribel_dibbert@dickinson.com"], ["password_salt", "1fZUkjRvBMexQAVxDc1y"], ["updated_at", "2014-12-02 20:56:04.422402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:56:04.456632"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:56:04.466116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:56:04.476709"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:56:04.476709"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R014947217' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R014947217%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R014947217' LIMIT 1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'PyhKnI-xKrCbjsrT5C0xdQ' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:56:04.515330"], ["currency", "USD"], ["email", "maribel_dibbert@dickinson.com"], ["guest_token", "PyhKnI-xKrCbjsrT5C0xdQ"], ["number", "R014947217"], ["state", "cart"], ["updated_at", "2014-12-02 20:56:04.515330"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 20:56:04.574997"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 20:56:04.574997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 963520' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 20:56:04.586397"], ["description", "Magni id quia delectus reiciendis et ad ratione saepe."], ["name", "TaxCategory - 963520"], ["updated_at", "2014-12-02 20:56:04.586397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 20:56:04.615960"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 20:56:04.615960"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-1871' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-1871' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:56:04.570221"], ["created_at", "2014-12-02 20:56:04.622871"], ["description", "Nostrum dicta maxime expedita itaque et sint vitae ducimus. Iste architecto nobis pariatur aut et ipsam. Optio saepe impedit consequatur eum ea doloribus. Totam sunt veniam dolores hic labore ducimus. Non repellat voluptates dignissimos rerum numquam.\nNihil numquam earum quas consectetur accusamus. Est laborum maxime itaque voluptatum. Cumque culpa pariatur ut reprehenderit incidunt mollitia libero dolores. Et fuga blanditiis nisi dignissimos quae incidunt.\nSed officia sint voluptate et qui excepturi. Ullam perspiciatis illo a maiores mollitia magnam minima fugit. Eligendi sed odit sint fugit fugiat porro blanditiis qui. Qui quaerat rerum exercitationem soluta est consectetur.\nLaboriosam nihil laborum dicta hic architecto ullam. Ut exercitationem dolorem blanditiis ut incidunt quia aut enim. Sit delectus aut debitis neque libero qui rerum voluptate. Repellat praesentium quia error omnis et."], ["name", "Product #1 - 1871"], ["shipping_category_id", 1], ["slug", "product-1-1871"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:04.622871"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 20:56:04.626414"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:04.634723' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:04.636205' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:04.650934' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:04.652294' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:56:04.677393"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:56:04.677393"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:04.678731' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:04.679412' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:04.680753' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:04.681300' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:04.692245' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:04.692889' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:04.693509' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 20:56:04.695263"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:04.696518' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:04.697071' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:04.697618' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:04.698225' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:04.698701' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:56:04.776523"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:04.776523"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-1871' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:04.786516' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:04.798627' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-4338' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-4338' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:56:04.807571"], ["created_at", "2014-12-02 20:56:04.811719"], ["description", "Nihil nisi nesciunt deserunt dolores possimus. Inventore et rerum officia velit sed voluptas. In dignissimos voluptas quibusdam aut autem culpa dolores facere. Aut voluptas architecto eius explicabo eum neque. Nemo itaque qui et dolores dicta voluptatem repellat fugiat.\nVelit sint illum dolores placeat aut. Voluptatem minus soluta voluptas rerum consectetur reiciendis est. Minima sit et qui eligendi corporis voluptatem. Eaque est dolorum eos ea corporis magni quo temporibus. Maiores libero cum consectetur voluptatibus voluptate perferendis id.\nAut inventore qui quaerat dignissimos culpa rerum qui. Architecto et consequatur quia neque reiciendis dolor dolore. Quia debitis ut repellendus hic.\nQui corrupti dolor magnam consectetur quae et voluptates. Ad distinctio nulla quod eos provident. Sequi repellat ut praesentium molestiae.\nEt a qui vel quaerat. Est animi perferendis voluptas laboriosam. Ratione voluptas veritatis magnam asperiores. Ut ut culpa ad unde est porro."], ["name", "Product #2 - 4338"], ["shipping_category_id", 1], ["slug", "product-2-4338"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:04.811719"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 20:56:04.813907"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:04.815866' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:04.816960' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:04.818463' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:04.819123' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:56:04.823456"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:56:04.823456"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:04.824759' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:04.825441' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:04.826841' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:04.827467' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:04.833435' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:04.834204' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:04.834850' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 20:56:04.837289"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:04.838216' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:04.838812' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:04.839372' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:04.840081' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:04.840637' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:56:04.846703"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:04.846703"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-4338' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:04.852321' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:04.857946' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 20:56:04.880797' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:56:04.904904"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 20:56:04.904904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:56:04.919487"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 20:56:04.919487"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'janessa@mckenzie.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175537644952xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:56:04.925029"], ["email", "janessa@mckenzie.com"], ["encrypted_password", "2365083cd16286f443b013416c8bc15fe5934007437c5d2e5f946213e0dcef9dce7afd5b40b4d9820df93675e4bfdd91602c9e3be0958804f7c9e1f2cedbb102"], ["login", "janessa@mckenzie.com"], ["password_salt", "paAxbFSQ75eqKdYufMSR"], ["updated_at", "2014-12-02 20:56:04.925029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:56:04.927819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:56:04.929482"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 20:56:04.929482"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R041145055' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R041145055%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R041145055' LIMIT 1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'pJnazicmT4eM-tAhUKdKyg' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 20:56:04.935621"], ["currency", "USD"], ["email", "janessa@mckenzie.com"], ["guest_token", "pJnazicmT4eM-tAhUKdKyg"], ["number", "R041145055"], ["state", "cart"], ["updated_at", "2014-12-02 20:56:04.935621"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '2FMBE2GK' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 20:56:04.955343"], ["identifier", "2FMBE2GK"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 20:56:04.955343"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:04.958854' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-013551' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.2ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-013551"], ["updated_at", "2014-12-02 20:56:04.960361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (86.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'justyn_hodkiewicz@hudson.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175537656723xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:56:05.064927"], ["email", "justyn_hodkiewicz@hudson.name"], ["encrypted_password", "c0f433e079e5cd88d03becf2d7c5c941f4bd60ec60be680947f60a99dee16a1d5c5a1233bb86b703757a0319df370123a4fa34f13afdb4c54420c48ba4d439df"], ["login", "justyn_hodkiewicz@hudson.name"], ["password_salt", "3szncM4ovwGHWTYyHcFX"], ["updated_at", "2014-12-02 20:56:05.064927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:56:05.068576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:56:05.070450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:56:05.072185"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:56:05.072185"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R772116007' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R772116007%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R772116007' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'nswD4sppTIG0eLha1uDYoA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:56:05.078614"], ["currency", "USD"], ["email", "justyn_hodkiewicz@hudson.name"], ["guest_token", "nswD4sppTIG0eLha1uDYoA"], ["number", "R772116007"], ["state", "cart"], ["updated_at", "2014-12-02 20:56:05.078614"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 20:56:05.086493"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 20:56:05.086493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 192614' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 20:56:05.089559"], ["description", "Omnis voluptatem unde voluptatem laboriosam et aut corrupti."], ["name", "TaxCategory - 192614"], ["updated_at", "2014-12-02 20:56:05.089559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 20:56:05.093143"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 20:56:05.093143"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5134' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5134' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:56:05.085059"], ["created_at", "2014-12-02 20:56:05.097393"], ["description", "Eius atque iure exercitationem iste officiis quo ullam ea. Ducimus magnam accusamus fugit incidunt et et. Deleniti expedita blanditiis est mollitia earum et quis."], ["name", "Product #3 - 5134"], ["shipping_category_id", 1], ["slug", "product-3-5134"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.097393"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-12-02 20:56:05.099961"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.102202' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.103479' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.104959' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.105583' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:56:05.109320"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:56:05.109320"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.110374' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.110870' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.112059' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.112558' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.116837' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.117464' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.118040' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 20:56:05.119871"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.120603' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.121112' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.121634' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.122269' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.122751' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.4ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:56:05.128261"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.128261"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5134' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:05.136791' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:05.143552' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-8370' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-8370' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:56:05.149652"], ["created_at", "2014-12-02 20:56:05.153596"], ["description", "Id cum nam occaecati cupiditate vel dolores. Magni qui nulla laboriosam beatae esse. Voluptatem sed id ex omnis veritatis ut consequatur saepe. Doloremque incidunt voluptas sit saepe nesciunt quis alias quisquam.\nDelectus deserunt occaecati aliquid fugiat maiores reprehenderit doloremque. Necessitatibus iusto eaque labore deserunt omnis facilis cupiditate sint. Qui molestiae magni quibusdam repellendus tempora aperiam. Placeat non facilis quod non nostrum ipsa eius. Quam dolorem veritatis dignissimos ut perferendis iure officia.\nQuia numquam possimus consequatur saepe. Ad quibusdam rerum omnis vel iste quia. Est sit ducimus exercitationem quaerat nemo maiores. Nesciunt aperiam similique ipsa architecto."], ["name", "Product #4 - 8370"], ["shipping_category_id", 1], ["slug", "product-4-8370"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.153596"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-12-02 20:56:05.155841"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.157874' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.158928' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.160311' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.160871' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:56:05.164355"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:56:05.164355"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.165331' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.165856' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.167021' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.167553' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.171602' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.172687' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.174126' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 20:56:05.177508"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.178852' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.179608' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.180361' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.181251' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.182013' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:56:05.187793"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.187793"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-8370' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:05.192148' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:05.196727' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 20:56:05.205690' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:56:05.209686"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 20:56:05.209686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:56:05.211804"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 20:56:05.211804"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'stephan@hettinger.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175537656924xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:56:05.215039"], ["email", "stephan@hettinger.name"], ["encrypted_password", "497e7f630c45db592153384afc89713ed420e4d01fdadc3c82390d0f0f5aa3a0bb967278649ed02afd18a7aff6a5677ce86d425e7bd491fd893d58d47847e423"], ["login", "stephan@hettinger.name"], ["password_salt", "fWFsKyH5Am1c_ArotCkb"], ["updated_at", "2014-12-02 20:56:05.215039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:56:05.218067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:56:05.219598"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 20:56:05.219598"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R936196405' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R936196405%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R936196405' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'i4bxMAwcLSMSAlWYYMaZ3g' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 20:56:05.225266"], ["currency", "USD"], ["email", "stephan@hettinger.name"], ["guest_token", "i4bxMAwcLSMSAlWYYMaZ3g"], ["number", "R936196405"], ["state", "cart"], ["updated_at", "2014-12-02 20:56:05.225266"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '4SK8G36R' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 20:56:05.227761"], ["identifier", "4SK8G36R"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 20:56:05.227761"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:05.230064' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-441513' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-441513"], ["updated_at", "2014-12-02 20:56:05.231266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (219.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'zackary.cummings@donnelly.ca' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175537656785xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:56:05.464076"], ["email", "zackary.cummings@donnelly.ca"], ["encrypted_password", "e260b79fc6e78a90e6614b5304ca3ce1dbbbdfd35523004d91e66ca1ca0049fe5a7d0abda1d590baef0d323b61e2aa396bcb54e3d2dcac3ebaed7f96c5c37e25"], ["login", "zackary.cummings@donnelly.ca"], ["password_salt", "P1tTtEFsesMD5P9E5qWJ"], ["updated_at", "2014-12-02 20:56:05.464076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:56:05.468313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:56:05.469698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:56:05.471357"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:56:05.471357"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R459567469' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R459567469%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R459567469' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'B-19ZkbXFhCWcPix5uEdrA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:56:05.477859"], ["currency", "USD"], ["email", "zackary.cummings@donnelly.ca"], ["guest_token", "B-19ZkbXFhCWcPix5uEdrA"], ["number", "R459567469"], ["state", "cart"], ["updated_at", "2014-12-02 20:56:05.477859"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 20:56:05.486906"], ["name", "ShippingCategory #3"], ["updated_at", "2014-12-02 20:56:05.486906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 76525' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 20:56:05.489809"], ["description", "Nemo delectus quaerat eum itaque rerum reiciendis."], ["name", "TaxCategory - 76525"], ["updated_at", "2014-12-02 20:56:05.489809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 20:56:05.493197"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 20:56:05.493197"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-7435' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-7435' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:56:05.485635"], ["created_at", "2014-12-02 20:56:05.500039"], ["description", "Libero corrupti minus rem fuga aut. Rem ex eos nisi suscipit eum et id minus. Et minima laudantium quod inventore.\nId debitis repellendus aut quas facere asperiores fugit. Enim ut placeat voluptatem temporibus nisi aut. Dolorem eos ipsam aliquam sed odio tenetur omnis at.\nEaque non et debitis quod mollitia minus nam ad. Dolorem fugit vitae minima nihil accusantium dolore. Rerum et atque sunt quo harum dolores qui. Ea tempore in praesentium quo molestiae quia. Voluptatem eos velit sequi et.\nUt corporis saepe hic qui consectetur atque aut delectus. Qui ut cum aliquam dolorem vel et dignissimos ullam. Assumenda animi voluptates ut molestias sit eos. Labore nisi tenetur fuga molestiae nihil."], ["name", "Product #5 - 7435"], ["shipping_category_id", 1], ["slug", "product-5-7435"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.500039"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-12-02 20:56:05.503785"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.506770' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.508158' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.509688' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.510334' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:56:05.513825"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:56:05.513825"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.514823' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.515355' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.518103' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.519205' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.526468' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.527362' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.528242' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 20:56:05.530608"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.531449' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.531923' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.532415' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.533008' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.533516' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:56:05.538840"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.538840"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-7435' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:05.543539' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:05.548365' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-220' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-220' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:56:05.553961"], ["created_at", "2014-12-02 20:56:05.557951"], ["description", "Consequatur omnis necessitatibus ut pariatur. Aut velit dolorum qui et consequatur sit. Animi excepturi voluptatem quis rem enim. Impedit dolorum et officiis in voluptatem culpa consequatur. Maiores at rem autem ut deserunt sint et.\nOfficiis at dolorum aut odio deserunt. Molestiae architecto quaerat dolores sint cum. Consectetur maiores porro est accusamus et vitae animi alias. Facere quo autem voluptates dolores ullam eligendi sit. Impedit rem est sunt numquam accusamus et deleniti."], ["name", "Product #6 - 220"], ["shipping_category_id", 1], ["slug", "product-6-220"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.557951"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-12-02 20:56:05.560184"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.562221' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.563287' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.564599' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.565155' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:56:05.568820"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:56:05.568820"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.569854' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.570409' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.571631' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.572167' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.577223' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.578797' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.598248' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.5ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 20:56:05.601834"]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.603375' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.604646' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.605827' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.3ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.606894' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.608470' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:56:05.615757"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.615757"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-220' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:05.620133' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:05.624989' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 20:56:05.636311' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:56:05.641200"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 20:56:05.641200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:56:05.644074"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 20:56:05.644074"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'trey@mertz.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175537655626xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:56:05.648373"], ["email", "trey@mertz.com"], ["encrypted_password", "f5f5822114fbc7f3eab800e714bd00fde0e3c31db5366973189457d2e599f6ac9ba6dcb20bb54d1c83590630b5b2586002ce812cc92334059710fd41cf13f207"], ["login", "trey@mertz.com"], ["password_salt", "psD8RErPBqwM4XUcRAdh"], ["updated_at", "2014-12-02 20:56:05.648373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:56:05.651913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:56:05.654085"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 20:56:05.654085"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R823436017' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R823436017%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R823436017' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ROlyLS5NbhBrm01_BGKOPg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 20:56:05.661351"], ["currency", "USD"], ["email", "trey@mertz.com"], ["guest_token", "ROlyLS5NbhBrm01_BGKOPg"], ["number", "R823436017"], ["state", "cart"], ["updated_at", "2014-12-02 20:56:05.661351"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'X3G72Q4H' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 20:56:05.664796"], ["identifier", "X3G72Q4H"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 20:56:05.664796"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:05.668506' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-333111' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-333111"], ["updated_at", "2014-12-02 20:56:05.669920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (5.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'queen_schuster@jast.com' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417553765687xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:56:05.684675"], ["email", "queen_schuster@jast.com"], ["encrypted_password", "5b226adff64f7d66df0b159d6358c36620e389ef26eb227b240195b2d0282648a7019add866c44237cf7148dd38ca1833f90ec6b5aa8eace16d5e7b28bc35a5d"], ["login", "queen_schuster@jast.com"], ["password_salt", "-rxUqgLHqRJSjnH4aBXN"], ["updated_at", "2014-12-02 20:56:05.684675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:56:05.689959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:56:05.692027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:56:05.694464"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:56:05.694464"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R504310658' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R504310658%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R504310658' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'm65WUpnfwDRLtsQ-rlL32A' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:56:05.701525"], ["currency", "USD"], ["email", "queen_schuster@jast.com"], ["guest_token", "m65WUpnfwDRLtsQ-rlL32A"], ["number", "R504310658"], ["state", "cart"], ["updated_at", "2014-12-02 20:56:05.701525"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 20:56:05.709675"], ["name", "ShippingCategory #4"], ["updated_at", "2014-12-02 20:56:05.709675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 836651' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 20:56:05.712633"], ["description", "Tempora ea autem pariatur est."], ["name", "TaxCategory - 836651"], ["updated_at", "2014-12-02 20:56:05.712633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 20:56:05.716394"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 20:56:05.716394"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-4452' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-4452' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:56:05.708094"], ["created_at", "2014-12-02 20:56:05.724693"], ["description", "Modi iure fugiat similique cum. Veritatis in et veniam debitis voluptatem laboriosam similique sint. Dolor ut cumque voluptates ut et nisi nam esse. Repellat qui in omnis reprehenderit praesentium."], ["name", "Product #7 - 4452"], ["shipping_category_id", 1], ["slug", "product-7-4452"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.724693"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-12-02 20:56:05.729122"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.731857' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.732960' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.734286' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.734858' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:56:05.738324"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:56:05.738324"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.739281' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.739781' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.741125' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.741746' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.746353' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.747039' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.747646' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 20:56:05.749464"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.750233' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.750714' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.751218' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.751782' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.752229' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:56:05.757286"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.757286"], ["variant_id", 1]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-4452' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:05.762460' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:05.767167' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-9694' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-9694' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:56:05.772737"], ["created_at", "2014-12-02 20:56:05.777292"], ["description", "Quam odio velit odit quaerat. Deleniti suscipit rem modi explicabo provident. Facere non commodi natus aspernatur enim praesentium soluta. Qui corrupti id est impedit aut et. Placeat rerum dolores officiis neque doloribus fugiat consequuntur.\nAut omnis sunt magnam totam vitae ad assumenda enim. Nesciunt asperiores repudiandae aut et quia officia reprehenderit incidunt. Vero dolorum necessitatibus rerum quam doloribus odio esse nihil.\nExercitationem enim in consequatur rem iusto dolores. Occaecati recusandae odit deserunt aut numquam sit vero aliquid. Incidunt facilis non tenetur ipsam."], ["name", "Product #8 - 9694"], ["shipping_category_id", 1], ["slug", "product-8-9694"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.777292"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-12-02 20:56:05.779558"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.781605' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.782644' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.783909' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.784441' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:56:05.787848"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:56:05.787848"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.788812' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.789297' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.790605' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.791186' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.795814' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.797382' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.798708' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 20:56:05.801986"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.803074' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.803812' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.804622' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.805530' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.806301' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:56:05.812579"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.812579"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-9694' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:05.817135' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:05.821706' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 20:56:05.831296' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:56:05.835203"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 20:56:05.835203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:56:05.837388"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 20:56:05.837388"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dina_jakubowski@ebert.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417553765818xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:56:05.840482"], ["email", "dina_jakubowski@ebert.us"], ["encrypted_password", "78d69b25f41b400b2c7d2fc6bb520412f3bd74c487ac37e1b8c75c7fdaaf72fe6633faaf9430d8a58104ef5f09fbaffc966ebfbc6cc997f7e50069826f5f1783"], ["login", "dina_jakubowski@ebert.us"], ["password_salt", "3pHjyus96EDcS3Sy2m8t"], ["updated_at", "2014-12-02 20:56:05.840482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:56:05.843651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:56:05.845161"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 20:56:05.845161"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R725177970' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R725177970%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R725177970' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ADOHT_wXSzxHBZJ_N0NKbg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 20:56:05.852085"], ["currency", "USD"], ["email", "dina_jakubowski@ebert.us"], ["guest_token", "ADOHT_wXSzxHBZJ_N0NKbg"], ["number", "R725177970"], ["state", "cart"], ["updated_at", "2014-12-02 20:56:05.852085"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'KP67DFTZ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 20:56:05.855172"], ["identifier", "KP67DFTZ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 20:56:05.855172"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:05.857705' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-404133' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-404133"], ["updated_at", "2014-12-02 20:56:05.859123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'taylor_bailey@christiansen.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175537651849xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:56:05.873888"], ["email", "taylor_bailey@christiansen.name"], ["encrypted_password", "588453c9e62919b87b1b6bf9946c32d867019b39024e554865de50072e5a9ca4b6c4af2aefa58d314d75e768072bd727cf35512b9696be1aa1fb91ade75305c6"], ["login", "taylor_bailey@christiansen.name"], ["password_salt", "Yx4jVnypdg65aEByMbzS"], ["updated_at", "2014-12-02 20:56:05.873888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:56:05.877267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:56:05.878635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:56:05.880072"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:56:05.880072"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R805577769' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R805577769%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R805577769' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'EuWxxChPTE6J0rQy1kuoRQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:56:05.885526"], ["currency", "USD"], ["email", "taylor_bailey@christiansen.name"], ["guest_token", "EuWxxChPTE6J0rQy1kuoRQ"], ["number", "R805577769"], ["state", "cart"], ["updated_at", "2014-12-02 20:56:05.885526"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 20:56:05.894958"], ["name", "ShippingCategory #5"], ["updated_at", "2014-12-02 20:56:05.894958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 755461' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 20:56:05.897685"], ["description", "Velit sequi ut natus molestias."], ["name", "TaxCategory - 755461"], ["updated_at", "2014-12-02 20:56:05.897685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 20:56:05.901063"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 20:56:05.901063"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-3555' LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-3555' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:56:05.893789"], ["created_at", "2014-12-02 20:56:05.905066"], ["description", "Quidem corrupti quia in quo. Qui perferendis voluptate in ut dolorem. Ut ut rem dolorem unde ea. Quis laboriosam ad eos sit dolor fuga neque odit. Sit commodi nobis aut nulla quod alias.\nNostrum quas voluptatem neque voluptas placeat impedit. Aspernatur ducimus suscipit et quia nesciunt deleniti illo maxime. Et dolorem dolor error ratione adipisci sit. Inventore vel assumenda fugit omnis voluptatem ut ut dicta. Est totam nesciunt perferendis quisquam enim architecto.\nExcepturi quaerat error vitae ipsum soluta enim minus. Voluptatem sapiente officiis veritatis asperiores consequatur. Fugiat soluta delectus ducimus cumque explicabo ad nostrum numquam. Excepturi incidunt ipsa sed pariatur ea. Sapiente asperiores qui neque sit aspernatur laboriosam aliquid ullam.\nEt reprehenderit dolores dolor veniam voluptates molestias consequatur. Et at dolor deleniti qui quae. Illo quasi deleniti non dolorem dolor deserunt et."], ["name", "Product #9 - 3555"], ["shipping_category_id", 1], ["slug", "product-9-3555"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.905066"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-12-02 20:56:05.907705"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.910501' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.911866' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.913297' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.913885' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:56:05.917431"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:56:05.917431"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.918429' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.918982' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.920135' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.920688' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.924630' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.925179' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.925885' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 20:56:05.927640"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.928382' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.928902' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.929424' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.930035' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.930564' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:56:05.935351"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.935351"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-3555' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:05.939670' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:05.944422' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-648' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-648' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:56:05.950781"], ["created_at", "2014-12-02 20:56:05.954449"], ["description", "Dignissimos iste exercitationem unde voluptatum distinctio voluptas culpa. Quam quia et dignissimos vel. Soluta beatae laudantium qui debitis doloribus. Aliquam fuga rerum voluptate ipsa earum labore aspernatur. Aut consequatur deleniti officia est.\nIpsum dolorem natus magnam nulla omnis facilis debitis ea. Rerum quia eum a ut rem maxime. Enim explicabo est corrupti itaque omnis laudantium ea aspernatur. Est ea voluptatum qui cum.\nQuia expedita omnis facilis quos fugiat. Magni ratione animi non enim molestiae eligendi. Temporibus vel sed qui quia deserunt molestiae.\nRem est dolor non inventore veritatis fugit vero nam. Est nihil quas pariatur dolorum eum. Commodi ex saepe nulla maiores eum excepturi aut dolorum. Officiis quasi qui laborum est magni. Pariatur magni aut quam itaque maxime enim."], ["name", "Product #10 - 648"], ["shipping_category_id", 1], ["slug", "product-10-648"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.954449"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-12-02 20:56:05.956633"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.958721' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.959834' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.961124' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.961682' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:56:05.964975"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:56:05.964975"], ["variant_id", 2]] SQL (0.3ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:05.966357' WHERE "spree_variants"."id" = 2 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.967844' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.970381' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.971366' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.977860' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.978590' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.979298' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 20:56:05.981064"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:05.981876' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.982415' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.982927' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:05.983555' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:05.984074' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:56:05.989181"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:05.989181"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-648' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:05.994367' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:05.999312' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 20:56:06.008523' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 20:56:06.020183"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 20:56:06.020183"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:06.023767' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:06.024320' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:56:06.028211"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 20:56:06.028211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:56:06.030254"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 20:56:06.030254"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cory_maggio@mcglynn.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755376653810xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:56:06.033271"], ["email", "cory_maggio@mcglynn.info"], ["encrypted_password", "a2ffc67b682c54576e780259ede223b71fbaa792bb07066b6711c250ba260720b3767e42f51a7236d87bfd43004b432f5c089fea50a7a455a45b3729a1336133"], ["login", "cory_maggio@mcglynn.info"], ["password_salt", "WbhbAzUBRFMV6w3UM28h"], ["updated_at", "2014-12-02 20:56:06.033271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:56:06.035917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:56:06.037387"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 20:56:06.037387"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R749614073' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R749614073%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R749614073' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'JQ0F9U5xXVCmGISsCFfSqQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 20:56:06.042872"], ["currency", "USD"], ["email", "cory_maggio@mcglynn.info"], ["guest_token", "JQ0F9U5xXVCmGISsCFfSqQ"], ["number", "R749614073"], ["state", "cart"], ["updated_at", "2014-12-02 20:56:06.042872"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'PZZNNPMX' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 20:56:06.045442"], ["identifier", "PZZNNPMX"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 20:56:06.045442"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:06.047642' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-510253' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-510253"], ["updated_at", "2014-12-02 20:56:06.048828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kenny_terry@lubowitzdavis.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755376625211xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:56:06.063063"], ["email", "kenny_terry@lubowitzdavis.biz"], ["encrypted_password", "9cd44680b2b2b9f8d028a5c933ac70d4118416b7a2cd2060c4c7a8f3ac392e45c0d32767e8ffc8e67e5933bb06ef67616cf642ed8a9f709029bb657638546d6a"], ["login", "kenny_terry@lubowitzdavis.biz"], ["password_salt", "ZRLjiLMQEMvaDfxw3wZ6"], ["updated_at", "2014-12-02 20:56:06.063063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 20:56:06.066369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:56:06.067784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:56:06.069286"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 20:56:06.069286"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R299983140' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R299983140%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R299983140' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-Yi4-6Of0XLnG_gRanDnaw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 20:56:06.074981"], ["currency", "USD"], ["email", "kenny_terry@lubowitzdavis.biz"], ["guest_token", "-Yi4-6Of0XLnG_gRanDnaw"], ["number", "R299983140"], ["state", "cart"], ["updated_at", "2014-12-02 20:56:06.074981"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 20:56:06.085306"], ["name", "ShippingCategory #6"], ["updated_at", "2014-12-02 20:56:06.085306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 160424' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 20:56:06.088066"], ["description", "Odit in expedita ut vel dolorem id."], ["name", "TaxCategory - 160424"], ["updated_at", "2014-12-02 20:56:06.088066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 20:56:06.091518"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 20:56:06.091518"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-6629' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-6629' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:56:06.084036"], ["created_at", "2014-12-02 20:56:06.095395"], ["description", "Cum aut culpa perspiciatis temporibus. Officiis quam est occaecati sit nam impedit eveniet. Et doloremque tenetur ea doloribus ad sunt. Fugiat quos qui explicabo sint rem qui. Esse provident quod quaerat omnis exercitationem voluptatem.\nUt tempora aspernatur accusantium commodi aliquid dolorem impedit ullam. Quis repudiandae dolores qui quod sunt. Maxime porro sapiente consectetur facere libero illo qui quia. Ipsam fugiat est labore pariatur tempora rerum sunt.\nEst dolores adipisci voluptatibus consequatur ratione aut est. Molestias exercitationem in deleniti aperiam. Deserunt maiores qui vitae qui explicabo fugiat laboriosam nihil. Enim architecto aut qui qui odio eum modi et. Qui sed earum quia culpa et vel dolorem.\nEt qui laboriosam voluptas vero voluptatem id voluptatibus provident. Quae laboriosam ratione libero a. Qui et et officia perspiciatis hic nemo. Molestiae fuga enim perspiciatis qui cupiditate labore dolores. Occaecati voluptate quo ad enim.\nPerferendis quas laboriosam dolore dolores vero ut natus in. Qui qui omnis sunt modi odit. In necessitatibus voluptas molestiae perspiciatis rerum. Consequatur sit voluptate cumque aut odit odio."], ["name", "Product #11 - 6629"], ["shipping_category_id", 1], ["slug", "product-11-6629"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:06.095395"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-12-02 20:56:06.097893"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:06.099981' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:06.101093' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:06.102469' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:06.118330' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:56:06.122155"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:56:06.122155"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:06.123121' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:06.123667' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:06.124868' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:06.125350' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:06.129293' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:06.129861' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:06.130813' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 20:56:06.134585"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:06.135956' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:06.136904' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:06.137670' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:06.138570' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:06.139272' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:56:06.145241"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:06.145241"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-6629' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:06.149424' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:06.154002' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-838' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-838' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 20:56:06.160632"], ["created_at", "2014-12-02 20:56:06.164297"], ["description", "Aut maiores accusantium occaecati tempore est rerum. Vel quasi ipsum sed dolorem omnis et. Ut expedita qui consequatur architecto.\nNeque ex itaque voluptates est. Eaque at omnis enim qui. Et cumque provident quia rerum animi ad illo. Laboriosam distinctio asperiores ipsam alias.\nNulla ad qui voluptatem dolorem. Aut temporibus accusamus harum hic eum et. Amet odio et iusto quisquam magnam deserunt adipisci dicta. Et dolorum eos voluptas consectetur odit ipsa qui delectus. Ipsam rerum numquam ut maxime rerum quam veritatis soluta.\nEveniet fugiat mollitia voluptas accusantium culpa. Autem qui commodi ullam quidem et. Corporis aspernatur quasi cumque facilis repellendus.\nQuia maxime neque odio tempore quia explicabo dolorum molestias. Tenetur ad est sint voluptas enim assumenda. Repellendus vitae ut fuga dolorem non voluptatem. Laudantium odit sequi doloremque fugiat consequatur temporibus eos qui."], ["name", "Product #12 - 838"], ["shipping_category_id", 1], ["slug", "product-12-838"], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:06.164297"]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-12-02 20:56:06.168696"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:06.172522' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:06.174229' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:06.176349' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:06.177185' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 20:56:06.181144"], ["stock_location_id", 1], ["updated_at", "2014-12-02 20:56:06.181144"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 20:56:06.182132' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:06.182690' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:06.183895' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:06.184397' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:06.188392' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:06.189070' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:06.189664' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 20:56:06.191439"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 20:56:06.192202' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:06.192742' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:06.193235' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 20:56:06.193865' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 20:56:06.194351' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 20:56:06.199229"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 20:56:06.199229"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-838' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:06.203400' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:06.208247' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 20:56:06.216882' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 20:56:06.218580"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 20:56:06.218580"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 20:56:06.221316' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:06.221791' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:56:06.226636"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 20:56:06.226636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 20:56:06.229719"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 20:56:06.229719"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cristian_schoen@huelrippin.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755376631712xxxxxxxxxxxxx"], ["created_at", "2014-12-02 20:56:06.234692"], ["email", "cristian_schoen@huelrippin.name"], ["encrypted_password", "ca0469d680a9dee3042d44ff0a33ec5a93b54bb00aac81ec922b5c634a053e74c1bdd8338ba472060f8f95c2eb29a7025b75c219a5e5fc98de130b0c1e8eb8f5"], ["login", "cristian_schoen@huelrippin.name"], ["password_salt", "xrfxF6gxLAgv-cmNRxh-"], ["updated_at", "2014-12-02 20:56:06.234692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 20:56:06.238006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 20:56:06.239560"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 20:56:06.239560"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R638474392' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R638474392%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R638474392' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'a4DTEo9wTSbpK6ki7HVhwA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 20:56:06.245194"], ["currency", "USD"], ["email", "cristian_schoen@huelrippin.name"], ["guest_token", "a4DTEo9wTSbpK6ki7HVhwA"], ["number", "R638474392"], ["state", "cart"], ["updated_at", "2014-12-02 20:56:06.245194"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'YRJEWUGB' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 20:56:06.247669"], ["identifier", "YRJEWUGB"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 20:56:06.247669"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 20:56:06.249858' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-052421' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-052421"], ["updated_at", "2014-12-02 20:56:06.251134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction MercadoPago::Notification Load (0.2ms) SELECT "mercado_pago_notifications".* FROM "mercado_pago_notifications" ORDER BY "mercado_pago_notifications"."created_at" DESC LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction MercadoPago::Notification Load (0.2ms) SELECT "mercado_pago_notifications".* FROM "mercado_pago_notifications" ORDER BY "mercado_pago_notifications"."created_at" DESC LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1 Completed 500 Internal Server Error in 14ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1 Completed 500 Internal Server Error in 15ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1 Completed 500 Internal Server Error in 14ms  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1 Completed 500 Internal Server Error in 14ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1 Completed 500 Internal Server Error in 14ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1 Completed 500 Internal Server Error in 15ms  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "mercado_pago_notifications" ("created_at", "operation_id", "topic", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 21:55:07.247798"], ["operation_id", "op123"], ["topic", "payment"], ["updated_at", "2014-12-02 21:55:07.247798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.1ms) Completed 200 OK in 244ms (Views: 215.6ms | ActiveRecord: 1.6ms) MercadoPago::Notification Load (0.3ms) SELECT "mercado_pago_notifications".* FROM "mercado_pago_notifications" ORDER BY "mercado_pago_notifications"."created_at" DESC LIMIT 1  (57.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "mercado_pago_notifications" ("created_at", "operation_id", "topic", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 21:55:35.747127"], ["operation_id", "op123"], ["topic", "payment"], ["updated_at", "2014-12-02 21:55:35.747127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 35ms (Views: 11.6ms | ActiveRecord: 1.0ms) MercadoPago::Notification Load (0.2ms) SELECT "mercado_pago_notifications".* FROM "mercado_pago_notifications" ORDER BY "mercado_pago_notifications"."created_at" DESC LIMIT 1  (22.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'roselyn.hansen@lang.info' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175573351081xxxxxxxxxxxxx"], ["created_at", "2014-12-02 21:55:35.840897"], ["email", "roselyn.hansen@lang.info"], ["encrypted_password", "8c52f4d992aab2eda16d56473c9867e2ae8b6ea028a5e8d8b13a0844b8f2f29a5a696818f80c0f1a9504e00709a74ea3c3c9c3c883ae0232d54f7c459afb9fd6"], ["login", "roselyn.hansen@lang.info"], ["password_salt", "_ULuxrxPM_f57sLKj6qZ"], ["updated_at", "2014-12-02 21:55:35.840897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 21:55:35.875676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 21:55:35.881638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 21:55:35.888363"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 21:55:35.888363"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R220924732' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R220924732%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R220924732' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'trKgZ1jmsHE-_fjlVvV65A' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 21:55:35.924052"], ["currency", "USD"], ["email", "roselyn.hansen@lang.info"], ["guest_token", "trKgZ1jmsHE-_fjlVvV65A"], ["number", "R220924732"], ["state", "cart"], ["updated_at", "2014-12-02 21:55:35.924052"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 21:55:35.984911"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 21:55:35.984911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 472838' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 21:55:35.997824"], ["description", "Repellat necessitatibus cupiditate voluptates quis adipisci ut voluptatum."], ["name", "TaxCategory - 472838"], ["updated_at", "2014-12-02 21:55:35.997824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 21:55:36.022595"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 21:55:36.022595"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-1274' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-1274' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 21:55:35.977297"], ["created_at", "2014-12-02 21:55:36.027997"], ["description", "Asperiores molestias nobis illum sed. Voluptas atque inventore et harum nihil rerum nesciunt delectus. Inventore voluptatum expedita voluptatibus suscipit debitis unde dolor voluptatem. Aut omnis cum asperiores quis.\nVoluptates quam voluptatem dolor in id amet. Quia eum qui eius quae minima. Libero dolore esse aut tempora non. Qui eaque ipsa accusamus dolor sequi."], ["name", "Product #1 - 1274"], ["shipping_category_id", 1], ["slug", "product-1-1274"], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.027997"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 21:55:36.030915"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.038800' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.040163' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.054779' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.056092' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 21:55:36.136353"], ["stock_location_id", 1], ["updated_at", "2014-12-02 21:55:36.136353"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.137755' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.138433' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.139855' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.140486' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.2ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.153823' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.154608' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.155294' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 21:55:36.157398"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.158917' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.159530' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.160063' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.160842' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.161352' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 21:55:36.180294"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.180294"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-1274' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:36.191440' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:36.201111' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-4471' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-4471' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 21:55:36.205969"], ["created_at", "2014-12-02 21:55:36.210198"], ["description", "Aut quam modi at quibusdam quia dolore sit. Suscipit accusantium ut ipsum repellat inventore. Quia voluptatem in eligendi incidunt dolores. Rerum rem nihil architecto molestiae hic culpa. Aliquam adipisci ipsam et blanditiis."], ["name", "Product #2 - 4471"], ["shipping_category_id", 1], ["slug", "product-2-4471"], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.210198"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 21:55:36.212403"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.214365' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.215463' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.216730' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.217265' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 21:55:36.220543"], ["stock_location_id", 1], ["updated_at", "2014-12-02 21:55:36.220543"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.221470' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.221960' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.223070' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.223550' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.227406' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.227911' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.228390' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 21:55:36.230178"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.230974' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.231495' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.232054' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.232665' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.233155' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 21:55:36.237872"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.237872"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-4471' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:36.242535' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:36.248500' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 21:55:36.267942' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 21:55:36.295826"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 21:55:36.295826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 21:55:36.308920"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 21:55:36.308920"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brandi.bartell@connellybahringer.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175573364922xxxxxxxxxxxxx"], ["created_at", "2014-12-02 21:55:36.313715"], ["email", "brandi.bartell@connellybahringer.com"], ["encrypted_password", "daaa1112caa39d67aeb4e96628e2a9b389d2330b3769dead434d6b5c4eecb6952bf8c040620a5156d6cd8c705a82ee48ba933f877b8f8cbee22078c47c22a0b2"], ["login", "brandi.bartell@connellybahringer.com"], ["password_salt", "FL3RLGysEX45tW12L7q8"], ["updated_at", "2014-12-02 21:55:36.313715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 21:55:36.316393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 21:55:36.317847"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 21:55:36.317847"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R813474926' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R813474926%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R813474926' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'L3suHIGdaMCBFwKTjzln4Q' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 21:55:36.323431"], ["currency", "USD"], ["email", "brandi.bartell@connellybahringer.com"], ["guest_token", "L3suHIGdaMCBFwKTjzln4Q"], ["number", "R813474926"], ["state", "cart"], ["updated_at", "2014-12-02 21:55:36.323431"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '467WYBLN' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 21:55:36.335626"], ["identifier", "467WYBLN"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 21:55:36.335626"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:36.338671' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-541223' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-541223"], ["updated_at", "2014-12-02 21:55:36.340011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'zita@hagenes.info' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175573366733xxxxxxxxxxxxx"], ["created_at", "2014-12-02 21:55:36.362390"], ["email", "zita@hagenes.info"], ["encrypted_password", "9d3aeae4dc1b9321f2980da292701f64a636fe6ca4e3857421108d3b022eb5a04dd9ce9ef57badf4d96157b5539640c8609efade02179866c6d8be2b479e4eba"], ["login", "zita@hagenes.info"], ["password_salt", "ZdB5GrxZgbGyzs5Kn9ps"], ["updated_at", "2014-12-02 21:55:36.362390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 21:55:36.367835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 21:55:36.369734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 21:55:36.371446"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 21:55:36.371446"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R635227001' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R635227001%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R635227001' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'I4vbcoQJjV4upoNOS-ONcg' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 21:55:36.378379"], ["currency", "USD"], ["email", "zita@hagenes.info"], ["guest_token", "I4vbcoQJjV4upoNOS-ONcg"], ["number", "R635227001"], ["state", "cart"], ["updated_at", "2014-12-02 21:55:36.378379"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 21:55:36.390038"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 21:55:36.390038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 858898' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 21:55:36.393102"], ["description", "Aliquid id tempore placeat possimus sed."], ["name", "TaxCategory - 858898"], ["updated_at", "2014-12-02 21:55:36.393102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 21:55:36.397387"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 21:55:36.397387"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5378' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5378' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 21:55:36.388808"], ["created_at", "2014-12-02 21:55:36.404455"], ["description", "Reprehenderit sit voluptas et aut molestiae repellat. Sit ex ullam perferendis eum. Cumque veritatis enim alias incidunt ut molestiae nam aut. Ad ut autem non incidunt quisquam eligendi quasi. Natus sed odio fugiat aspernatur.\nRerum expedita alias consectetur corporis asperiores et. Et distinctio sed nesciunt autem illum hic facilis omnis. Vitae magni autem et illo non sed nisi. Quia ipsam reiciendis nihil necessitatibus qui quo. Officiis aperiam qui dolorem voluptatem commodi.\nSit commodi dolor autem ipsum impedit et ut non. Sed inventore voluptas soluta pariatur qui et dolore. Provident necessitatibus consequatur deleniti et sed voluptas neque. Reiciendis quo doloribus adipisci expedita quis animi.\nEt sunt asperiores dolore qui est soluta. Laborum et totam quam aperiam. Sed eaque eius quia non mollitia quo inventore. Et eos eveniet provident perspiciatis error assumenda voluptates excepturi.\nAccusamus eos velit exercitationem ut vel blanditiis aliquid asperiores. Officiis nihil eius aperiam qui harum maiores. Est ea illo doloremque optio autem voluptatem sunt ex. Sint voluptatem quos numquam voluptate nihil ad quibusdam dolore. Impedit ratione et expedita vitae omnis exercitationem porro."], ["name", "Product #3 - 5378"], ["shipping_category_id", 1], ["slug", "product-3-5378"], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.404455"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-12-02 21:55:36.408180"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.411191' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.412596' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.413919' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.414550' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 21:55:36.417964"], ["stock_location_id", 1], ["updated_at", "2014-12-02 21:55:36.417964"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.418947' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.419467' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.420570' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.421043' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.424914' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.425430' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.425915' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 21:55:36.427737"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.428516' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.429066' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.429638' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.430189' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.430635' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 21:55:36.435346"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.435346"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5378' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:36.439638' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:36.444260' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2494' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2494' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 21:55:36.450109"], ["created_at", "2014-12-02 21:55:36.453825"], ["description", "Pariatur id voluptatem iure rerum exercitationem quibusdam. Animi aut voluptas dolores beatae. Repudiandae cupiditate inventore sapiente dicta voluptas totam commodi eveniet. Fugit et et accusantium corporis et. Voluptatum dolores reiciendis ipsa eius et dolorem quidem.\nQuis neque impedit voluptas ad ut incidunt veniam accusamus. Maxime praesentium atque sapiente reiciendis perspiciatis consequatur non. Est molestias rerum quis id non id voluptas est. Quibusdam ipsum laboriosam molestiae et. Ut dolor occaecati quia rem qui quasi.\nPariatur velit praesentium ut vel. Sed quis ipsa ratione delectus ea fugit. Quam cumque optio qui ad. Aut est non aut ullam."], ["name", "Product #4 - 2494"], ["shipping_category_id", 1], ["slug", "product-4-2494"], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.453825"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-12-02 21:55:36.455927"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.457890' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.458983' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.460204' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.460756' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 21:55:36.464103"], ["stock_location_id", 1], ["updated_at", "2014-12-02 21:55:36.464103"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.465057' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.465566' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.466724' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.467186' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.471047' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.471565' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.472083' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 21:55:36.473850"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.474594' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.475104' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.475625' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.476222' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.476683' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 21:55:36.481425"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.481425"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2494' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:36.485604' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:36.490145' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 21:55:36.498877' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 21:55:36.502543"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 21:55:36.502543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 21:55:36.504591"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 21:55:36.504591"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shanelle@langlowe.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175573369464xxxxxxxxxxxxx"], ["created_at", "2014-12-02 21:55:36.507564"], ["email", "shanelle@langlowe.name"], ["encrypted_password", "86c43496a91ab5818c29ebd7b8685052b40fd6fcd8ada2480f61c072b4146dbff6a04903e99431e61d0a760abc05ae899925a25378d93e478efb65c7f93edc54"], ["login", "shanelle@langlowe.name"], ["password_salt", "WcJA6YhhD5zt8Wy5zy66"], ["updated_at", "2014-12-02 21:55:36.507564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 21:55:36.510197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 21:55:36.511578"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 21:55:36.511578"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R220740030' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R220740030%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R220740030' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'usROxaSILYIH0vz7tE7dOA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 21:55:36.517248"], ["currency", "USD"], ["email", "shanelle@langlowe.name"], ["guest_token", "usROxaSILYIH0vz7tE7dOA"], ["number", "R220740030"], ["state", "cart"], ["updated_at", "2014-12-02 21:55:36.517248"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '4JUS84RE' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 21:55:36.519725"], ["identifier", "4JUS84RE"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 21:55:36.519725"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:36.521982' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-120011' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-120011"], ["updated_at", "2014-12-02 21:55:36.523177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carroll_kemmer@markshintz.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175573368915xxxxxxxxxxxxx"], ["created_at", "2014-12-02 21:55:36.536996"], ["email", "carroll_kemmer@markshintz.us"], ["encrypted_password", "da6975fed49306ac0db9aa9b9534ce12d83d81d0deb6315e06bb018eafd88e7708ec653516cc095df834eb7c4f21ab61e320c0824e8c4305fadd12e10c6f3016"], ["login", "carroll_kemmer@markshintz.us"], ["password_salt", "qTc9M2mZaELsYDKXr1Mf"], ["updated_at", "2014-12-02 21:55:36.536996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 21:55:36.540244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 21:55:36.541644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 21:55:36.543217"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 21:55:36.543217"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R017709341' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R017709341%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R017709341' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'v3Nl7Oj5HTmyav47ooGqGg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 21:55:36.548858"], ["currency", "USD"], ["email", "carroll_kemmer@markshintz.us"], ["guest_token", "v3Nl7Oj5HTmyav47ooGqGg"], ["number", "R017709341"], ["state", "cart"], ["updated_at", "2014-12-02 21:55:36.548858"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 21:55:36.558826"], ["name", "ShippingCategory #3"], ["updated_at", "2014-12-02 21:55:36.558826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 547791' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 21:55:36.561688"], ["description", "Dolorum rerum est in eos qui alias."], ["name", "TaxCategory - 547791"], ["updated_at", "2014-12-02 21:55:36.561688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 21:55:36.565152"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 21:55:36.565152"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-5602' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-5602' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 21:55:36.557594"], ["created_at", "2014-12-02 21:55:36.569115"], ["description", "Excepturi voluptatibus omnis fuga ut numquam quod et. Aperiam voluptas voluptatem omnis repellendus aut. Autem harum commodi laborum deleniti error sequi necessitatibus nesciunt. Sint corrupti praesentium laudantium dicta consequuntur molestias qui.\nPerspiciatis atque delectus sequi fugit tempora ea consequatur. Debitis nemo voluptas voluptas inventore ullam excepturi perferendis impedit. Eos nesciunt est atque ut id.\nQuos omnis a cumque qui ullam hic beatae. Et sed aut est porro vero nulla. Neque mollitia amet sapiente nobis. Magni neque sunt magnam et excepturi quisquam quibusdam.\nReprehenderit dolorum voluptatibus veniam quisquam itaque qui voluptatum quaerat. Aut quis molestiae a nihil labore enim. Aliquid aspernatur voluptates ducimus nulla aperiam voluptas et. Vel explicabo at rerum molestiae. Hic vel et harum alias eius error.\nError vitae dolores neque qui magnam. Occaecati ex accusantium rerum sit debitis minus. Excepturi itaque ut autem minima non at dolorum doloribus. Nam saepe aut corporis accusantium aliquam. Veniam quia aut vel doloremque."], ["name", "Product #5 - 5602"], ["shipping_category_id", 1], ["slug", "product-5-5602"], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.569115"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-12-02 21:55:36.571778"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.573883' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.575089' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.576405' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.576991' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 21:55:36.580932"], ["stock_location_id", 1], ["updated_at", "2014-12-02 21:55:36.580932"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.582133' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.582741' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.583919' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.584418' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.607928' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.608754' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.609365' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 21:55:36.611087"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.611785' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.612272' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.612747' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.613322' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.613764' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 21:55:36.618709"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.618709"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-5602' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:36.623448' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:36.628390' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-7734' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-7734' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 21:55:36.634911"], ["created_at", "2014-12-02 21:55:36.639106"], ["description", "Ea illo quibusdam nemo nihil animi deleniti. Porro qui magni asperiores eos dolore dignissimos autem. Aut et reprehenderit molestiae dicta. Impedit quibusdam ducimus qui in.\nCumque eum dolor voluptate placeat nihil. Distinctio sit laborum dolorum ab sed aut est sint. Ipsa voluptatum omnis sit aliquid reprehenderit."], ["name", "Product #6 - 7734"], ["shipping_category_id", 1], ["slug", "product-6-7734"], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.639106"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-12-02 21:55:36.641435"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.643440' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.644614' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.645857' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.646406' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 21:55:36.649728"], ["stock_location_id", 1], ["updated_at", "2014-12-02 21:55:36.649728"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.650627' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.651130' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.652306' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.652782' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.656661' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.657176' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.657691' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 21:55:36.661320"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.662638' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.663618' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.664553' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.665440' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.666152' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 21:55:36.672615"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.672615"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-7734' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:36.676794' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:36.681264' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 21:55:36.689831' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 21:55:36.693522"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 21:55:36.693522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 21:55:36.695756"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 21:55:36.695756"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sydnie_yost@hueljacobson.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175573365506xxxxxxxxxxxxx"], ["created_at", "2014-12-02 21:55:36.698644"], ["email", "sydnie_yost@hueljacobson.ca"], ["encrypted_password", "c99c70ca1aa59b73f6248b82eca55a3268c1baa10fb54759ef39c6df30c0bc83d7a0e6c74a1f501f8266193b8d6d50ce1dd0531d2438260504ac1b59ad7fc3ff"], ["login", "sydnie_yost@hueljacobson.ca"], ["password_salt", "phzXTm9vBayExSTryEyW"], ["updated_at", "2014-12-02 21:55:36.698644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 21:55:36.701198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 21:55:36.702600"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 21:55:36.702600"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R903984924' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R903984924%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R903984924' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'esCyO06gNk28AJFjcMc98A' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 21:55:36.707778"], ["currency", "USD"], ["email", "sydnie_yost@hueljacobson.ca"], ["guest_token", "esCyO06gNk28AJFjcMc98A"], ["number", "R903984924"], ["state", "cart"], ["updated_at", "2014-12-02 21:55:36.707778"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XCR9G6TU' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 21:55:36.710079"], ["identifier", "XCR9G6TU"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 21:55:36.710079"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:36.712202' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-050133' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-050133"], ["updated_at", "2014-12-02 21:55:36.713418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hailie@walker.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175573362547xxxxxxxxxxxxx"], ["created_at", "2014-12-02 21:55:36.730818"], ["email", "hailie@walker.co.uk"], ["encrypted_password", "bd07ecc701ab715361025a3a86925f90a79db55e51fb3fb270e028c67fe33e12009c725ecdaff4170fcc5039fba748b751123e4661e7d64232eaa6376e3af10b"], ["login", "hailie@walker.co.uk"], ["password_salt", "fB8cTybmL-Cqdyh-AwaU"], ["updated_at", "2014-12-02 21:55:36.730818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 21:55:36.734968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 21:55:36.736252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 21:55:36.737629"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 21:55:36.737629"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R096590461' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R096590461%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R096590461' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-ZKDjLadBmu8QYmfmL92HQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 21:55:36.743076"], ["currency", "USD"], ["email", "hailie@walker.co.uk"], ["guest_token", "-ZKDjLadBmu8QYmfmL92HQ"], ["number", "R096590461"], ["state", "cart"], ["updated_at", "2014-12-02 21:55:36.743076"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 21:55:36.752357"], ["name", "ShippingCategory #4"], ["updated_at", "2014-12-02 21:55:36.752357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 250686' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 21:55:36.754978"], ["description", "Placeat eum et sapiente beatae."], ["name", "TaxCategory - 250686"], ["updated_at", "2014-12-02 21:55:36.754978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 21:55:36.758246"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 21:55:36.758246"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-9883' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-9883' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 21:55:36.751276"], ["created_at", "2014-12-02 21:55:36.762228"], ["description", "Quas molestiae fugiat illum porro nesciunt voluptas. Suscipit et temporibus culpa explicabo et amet. Et possimus et omnis ipsam id et. Qui possimus aut sit laboriosam veniam.\nQuis soluta eligendi aliquid facilis. Nihil ea culpa quis deleniti tenetur. Aut voluptate sit ea optio id eligendi sequi. Possimus consequatur commodi consequatur repudiandae sit voluptatibus in.\nDistinctio veritatis aut et libero. Magnam quidem voluptatum et earum voluptates velit explicabo. Omnis officia ut consequuntur iusto labore quis molestiae velit.\nAperiam non sint ut libero et ut. Quidem optio libero similique est dolores saepe. Velit nesciunt a incidunt consectetur dolor repellat nobis est.\nSit delectus vel tempore dignissimos voluptatem excepturi. Quibusdam magnam dolor ipsam et dolorem est nisi. Sequi qui dolorem excepturi a numquam sapiente. Esse quod ipsum praesentium odio est."], ["name", "Product #7 - 9883"], ["shipping_category_id", 1], ["slug", "product-7-9883"], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.762228"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-12-02 21:55:36.764621"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.766716' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.767912' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.769349' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.769964' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 21:55:36.773459"], ["stock_location_id", 1], ["updated_at", "2014-12-02 21:55:36.773459"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.774395' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.774936' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.776020' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.776551' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.780830' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.782561' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.783720' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 21:55:36.787590"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.788678' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.789430' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.790189' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.791057' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.791655' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 21:55:36.797191"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.797191"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-9883' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:36.801572' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:36.806221' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-5513' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-5513' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 21:55:36.811003"], ["created_at", "2014-12-02 21:55:36.814633"], ["description", "Et modi esse iure nesciunt adipisci tempora et. Et sit omnis minus sint minima tenetur. Velit iste rerum quis et voluptatem labore aut iusto.\nIllo nostrum neque est mollitia asperiores ut qui autem. Modi non veniam sint illum sed. Laudantium excepturi id quia at eum."], ["name", "Product #8 - 5513"], ["shipping_category_id", 1], ["slug", "product-8-5513"], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.814633"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-12-02 21:55:36.816706"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.818641' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.819702' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.820903' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.821438' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 21:55:36.824732"], ["stock_location_id", 1], ["updated_at", "2014-12-02 21:55:36.824732"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.825691' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.826197' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.827285' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.827784' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.831656' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.832195' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.832727' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 21:55:36.834465"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.835209' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.835712' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.836241' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.836836' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.837267' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 21:55:36.841980"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.841980"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-5513' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:36.846102' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:36.850697' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 21:55:36.860202' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 21:55:36.864155"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 21:55:36.864155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 21:55:36.866348"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 21:55:36.866348"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'myra.greenfelder@emmerich.biz' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175573366178xxxxxxxxxxxxx"], ["created_at", "2014-12-02 21:55:36.869422"], ["email", "myra.greenfelder@emmerich.biz"], ["encrypted_password", "b76eaee51ee1248aac806b7546293622134ab4a941d5a7532d6e778a637deeaa9811665953e2ab30ad61074c9485ffa2a4155060c9a55e3d8d191d6d6dd1cec0"], ["login", "myra.greenfelder@emmerich.biz"], ["password_salt", "a2rcf187kGVmfUda7mvH"], ["updated_at", "2014-12-02 21:55:36.869422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 21:55:36.872191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 21:55:36.873579"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 21:55:36.873579"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R239682731' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R239682731%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R239682731' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'GBVnIJxaNY_dg-yfxgy83w' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 21:55:36.878803"], ["currency", "USD"], ["email", "myra.greenfelder@emmerich.biz"], ["guest_token", "GBVnIJxaNY_dg-yfxgy83w"], ["number", "R239682731"], ["state", "cart"], ["updated_at", "2014-12-02 21:55:36.878803"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'MENFCJ2Z' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 21:55:36.881182"], ["identifier", "MENFCJ2Z"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 21:55:36.881182"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:36.883382' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-541005' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-541005"], ["updated_at", "2014-12-02 21:55:36.884603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'unique@russel.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175573369239xxxxxxxxxxxxx"], ["created_at", "2014-12-02 21:55:36.898143"], ["email", "unique@russel.us"], ["encrypted_password", "6de908ca34aa09520e590e8a6fa761ed6e584375eee75cb0ab288d9006fe2934243a7303e1573f4bb51510387ecd2625178f0c144ccd78af0b421159ab464404"], ["login", "unique@russel.us"], ["password_salt", "8jHr_D5PdPz3zUs5ejT_"], ["updated_at", "2014-12-02 21:55:36.898143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 21:55:36.903520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 21:55:36.906071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 21:55:36.908498"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 21:55:36.908498"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R055235765' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R055235765%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R055235765' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'D6KUGqMupECdtD9tqWZDyQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 21:55:36.915895"], ["currency", "USD"], ["email", "unique@russel.us"], ["guest_token", "D6KUGqMupECdtD9tqWZDyQ"], ["number", "R055235765"], ["state", "cart"], ["updated_at", "2014-12-02 21:55:36.915895"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 21:55:36.925094"], ["name", "ShippingCategory #5"], ["updated_at", "2014-12-02 21:55:36.925094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 29830' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 21:55:36.927765"], ["description", "Quod magnam alias ducimus aut quis et natus."], ["name", "TaxCategory - 29830"], ["updated_at", "2014-12-02 21:55:36.927765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 21:55:36.931517"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 21:55:36.931517"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-9496' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-9496' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 21:55:36.923988"], ["created_at", "2014-12-02 21:55:36.935404"], ["description", "Assumenda nihil ducimus nam ipsam harum. Et doloribus eius dolorem voluptas a doloremque. Earum autem illum voluptas dignissimos quasi.\nDolore aut unde facere aut sint. Harum perferendis velit similique aliquid corrupti. Facilis aut tempore deserunt quam nostrum laudantium aut. Dolor quos non et qui ea voluptatem illo qui. Iste aut fugit qui magnam.\nMaiores sed nam et ab et quia. Eum dolore et nostrum ut et. Quaerat non accusantium sunt maiores aut reprehenderit. Voluptatem ut accusamus commodi rerum.\nQuibusdam ea magnam et tempora repudiandae. Error sequi harum ipsum asperiores. Labore cum eligendi et aliquam quaerat aut. Excepturi voluptas voluptas et totam. Nisi est alias voluptatem molestiae deserunt autem."], ["name", "Product #9 - 9496"], ["shipping_category_id", 1], ["slug", "product-9-9496"], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.935404"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-12-02 21:55:36.937752"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.940181' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.941494' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.942926' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.943556' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 21:55:36.947051"], ["stock_location_id", 1], ["updated_at", "2014-12-02 21:55:36.947051"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.948241' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.948850' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.950103' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.950694' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.955633' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.957245' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.958337' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 21:55:36.961544"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.962605' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.963343' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.964119' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.965001' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.965787' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 21:55:36.971782"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.971782"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-9496' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:36.976209' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:36.980695' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-9341' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-9341' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 21:55:36.984858"], ["created_at", "2014-12-02 21:55:36.988705"], ["description", "Laboriosam vel in nesciunt eligendi perspiciatis occaecati magni. Molestias ut architecto autem impedit magni nihil. Dolorem repellat velit assumenda minima est fugit nemo."], ["name", "Product #10 - 9341"], ["shipping_category_id", 1], ["slug", "product-10-9341"], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:36.988705"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-12-02 21:55:36.990818"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.992750' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:36.993797' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:36.995004' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:36.995592' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 21:55:36.998972"], ["stock_location_id", 1], ["updated_at", "2014-12-02 21:55:36.998972"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:36.999930' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:37.000452' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.001676' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.002174' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:37.006355' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.006918' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.008183' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 21:55:37.011969"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:37.013320' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.014270' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.015088' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.016050' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.016781' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 21:55:37.024034"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:37.024034"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-9341' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:37.028194' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:37.032821' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 21:55:37.041682' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 21:55:37.053323"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 21:55:37.053323"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:37.056946' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:37.057517' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 21:55:37.061384"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 21:55:37.061384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 21:55:37.063514"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 21:55:37.063514"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nigel_yundt@hermangoodwin.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175573379610xxxxxxxxxxxxx"], ["created_at", "2014-12-02 21:55:37.066580"], ["email", "nigel_yundt@hermangoodwin.ca"], ["encrypted_password", "3ecfb5c171f780a35dcb657f14cca0e4f1d5d6e8f772cec127e09ce852517d74ab0729bf06b2082b8e7f274143f91a7969c85367d372c543b31aac96c2338a3e"], ["login", "nigel_yundt@hermangoodwin.ca"], ["password_salt", "YBByrQWyDagpPyW3qZDa"], ["updated_at", "2014-12-02 21:55:37.066580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 21:55:37.085272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 21:55:37.086903"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 21:55:37.086903"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R358094017' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R358094017%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R358094017' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'YHtAdHyjelj-48R3X5Zx0Q' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 21:55:37.092289"], ["currency", "USD"], ["email", "nigel_yundt@hermangoodwin.ca"], ["guest_token", "YHtAdHyjelj-48R3X5Zx0Q"], ["number", "R358094017"], ["state", "cart"], ["updated_at", "2014-12-02 21:55:37.092289"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '68VRXMR6' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 21:55:37.094717"], ["identifier", "68VRXMR6"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 21:55:37.094717"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:37.096957' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-504234' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-504234"], ["updated_at", "2014-12-02 21:55:37.098162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mekhi.lubowitz@monahanoga.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175573378711xxxxxxxxxxxxx"], ["created_at", "2014-12-02 21:55:37.111755"], ["email", "mekhi.lubowitz@monahanoga.biz"], ["encrypted_password", "1542406b9e12383468c5b123232abb020416c9af26ff8ea300053eef1f8705701c6081bf28a7d135131bf702dc75dae8b489e0c692fdd6335b819c65b0e581ae"], ["login", "mekhi.lubowitz@monahanoga.biz"], ["password_salt", "UEGmNrBCoT-sDdo9WExk"], ["updated_at", "2014-12-02 21:55:37.111755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 21:55:37.114904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 21:55:37.116235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 21:55:37.117791"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 21:55:37.117791"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R193525159' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R193525159%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R193525159' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'AuiDcUB2AOz4ewstkxdqfQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 21:55:37.123829"], ["currency", "USD"], ["email", "mekhi.lubowitz@monahanoga.biz"], ["guest_token", "AuiDcUB2AOz4ewstkxdqfQ"], ["number", "R193525159"], ["state", "cart"], ["updated_at", "2014-12-02 21:55:37.123829"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 21:55:37.133469"], ["name", "ShippingCategory #6"], ["updated_at", "2014-12-02 21:55:37.133469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 692636' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 21:55:37.136221"], ["description", "Accusantium eos repudiandae ducimus praesentium rerum omnis."], ["name", "TaxCategory - 692636"], ["updated_at", "2014-12-02 21:55:37.136221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 21:55:37.139617"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 21:55:37.139617"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-2659' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-2659' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 21:55:37.132347"], ["created_at", "2014-12-02 21:55:37.143324"], ["description", "Minima molestiae quaerat nam eius suscipit velit vel in. Quae eos dolor laboriosam qui nihil necessitatibus delectus. Praesentium expedita error nulla voluptas. Ut harum quo a cupiditate rerum.\nEt nihil qui suscipit qui temporibus ad amet molestiae. Quo fuga optio numquam fugit accusantium quia distinctio. Fuga temporibus possimus et quasi perspiciatis voluptate reiciendis autem.\nAd itaque sunt impedit adipisci beatae. Enim et voluptas aut iusto quisquam et et dicta. Eum in voluptate soluta voluptatem ut hic. Enim aut ut dolorem quidem facere explicabo. Voluptates molestias suscipit eaque quis.\nArchitecto et cupiditate eius ullam soluta voluptatum porro ad. Tenetur impedit perspiciatis est exercitationem quidem eos. Placeat ab adipisci rerum illum nobis quaerat et non. Officia voluptas sunt quos vel doloremque. Quaerat voluptate quia earum repellat accusamus.\nSaepe inventore nihil autem eum natus distinctio. Ut fuga facere reiciendis blanditiis repudiandae autem. Hic eius quo rerum amet non quia non nihil."], ["name", "Product #11 - 2659"], ["shipping_category_id", 1], ["slug", "product-11-2659"], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:37.143324"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-12-02 21:55:37.145898"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:37.148045' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:37.149324' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.150667' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.151270' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 21:55:37.154765"], ["stock_location_id", 1], ["updated_at", "2014-12-02 21:55:37.154765"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:37.155706' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:37.156216' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.157368' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.157839' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:37.161742' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.162278' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.162820' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 21:55:37.166659"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:37.168066' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.169016' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.169872' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.170705' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.171464' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 21:55:37.177599"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:37.177599"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-2659' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:37.181776' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:37.186309' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-7007' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-7007' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 21:55:37.191774"], ["created_at", "2014-12-02 21:55:37.195441"], ["description", "Asperiores laborum eum consectetur expedita voluptates qui. Maiores at ullam quasi in impedit consequatur sit. Pariatur aut quia itaque qui occaecati vel maxime. Sunt sunt reiciendis quisquam voluptas quas asperiores.\nSed sint modi libero reprehenderit iusto enim. Quis possimus molestiae ut doloremque quas tempore quia dicta. Et explicabo quaerat ea corporis magnam placeat. Deserunt eos aut id possimus qui excepturi voluptatem.\nConsequatur qui quo asperiores sit distinctio hic rem qui. Libero enim repellat deleniti eveniet est et autem. Cum ipsum molestiae vero earum aliquid officia."], ["name", "Product #12 - 7007"], ["shipping_category_id", 1], ["slug", "product-12-7007"], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:37.195441"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-12-02 21:55:37.197604"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:37.199632' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:37.200728' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.202031' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.202561' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 21:55:37.210210"], ["stock_location_id", 1], ["updated_at", "2014-12-02 21:55:37.210210"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 21:55:37.211710' WHERE "spree_variants"."id" = 2 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:37.212545' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.215532' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.216605' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:37.223384' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.224100' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.224830' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 21:55:37.226747"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 21:55:37.227426' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.227894' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.228408' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 21:55:37.228961' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 21:55:37.229431' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 21:55:37.234557"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 21:55:37.234557"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-7007' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:37.239069' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:37.243600' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 21:55:37.252410' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 21:55:37.254127"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 21:55:37.254127"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 21:55:37.256891' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:37.257372' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 21:55:37.261062"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 21:55:37.261062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 21:55:37.263031"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 21:55:37.263031"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'monique.lind@veum.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755733786012xxxxxxxxxxxxx"], ["created_at", "2014-12-02 21:55:37.266013"], ["email", "monique.lind@veum.co.uk"], ["encrypted_password", "911882b4b823ab44032b01822fde4e128b0197e28f0f49641f3e353c1b3cb20cf412ff25360eeaec12aac88c5e5a37f7a75b22e4dd48134205a1bc0bb5a1196e"], ["login", "monique.lind@veum.co.uk"], ["password_salt", "GySMSigCcyfy5tNwm5X_"], ["updated_at", "2014-12-02 21:55:37.266013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 21:55:37.268720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 21:55:37.270108"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 21:55:37.270108"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R135564989' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R135564989%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R135564989' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NG76cRjjXPl-VPU9aQ6P8w' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 21:55:37.275397"], ["currency", "USD"], ["email", "monique.lind@veum.co.uk"], ["guest_token", "NG76cRjjXPl-VPU9aQ6P8w"], ["number", "R135564989"], ["state", "cart"], ["updated_at", "2014-12-02 21:55:37.275397"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'VW3TSWSP' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 21:55:37.277757"], ["identifier", "VW3TSWSP"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 21:55:37.277757"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 21:55:37.279969' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-233014' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-233014"], ["updated_at", "2014-12-02 21:55:37.281165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.5ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "mercado_pago_notifications" ("created_at", "operation_id", "topic", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 21:58:39.676740"], ["operation_id", "op123"], ["topic", "payment"], ["updated_at", "2014-12-02 21:58:39.676740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 32ms (Views: 7.2ms | ActiveRecord: 1.0ms) MercadoPago::Notification Load (0.2ms) SELECT "mercado_pago_notifications".* FROM "mercado_pago_notifications" ORDER BY "mercado_pago_notifications"."created_at" DESC LIMIT 1  (1.2ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"nonexistent_topic"} Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 400 Bad Request in 6ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "mercado_pago_notifications" ("created_at", "operation_id", "topic", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 21:59:06.308351"], ["operation_id", "op123"], ["topic", "payment"], ["updated_at", "2014-12-02 21:59:06.308351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 37ms (Views: 11.6ms | ActiveRecord: 1.4ms) MercadoPago::Notification Load (0.3ms) SELECT "mercado_pago_notifications".* FROM "mercado_pago_notifications" ORDER BY "mercado_pago_notifications"."created_at" DESC LIMIT 1  (26.9ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"nonexistent_topic"} Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 400 Bad Request in 6ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "mercado_pago_notifications" ("created_at", "operation_id", "topic", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 21:59:42.054661"], ["operation_id", "op123"], ["topic", "payment"], ["updated_at", "2014-12-02 21:59:42.054661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 33ms (Views: 7.0ms | ActiveRecord: 1.2ms) MercadoPago::Notification Load (0.2ms) SELECT "mercado_pago_notifications".* FROM "mercado_pago_notifications" ORDER BY "mercado_pago_notifications"."created_at" DESC LIMIT 1  (36.2ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"nonexistent_topic"} Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 400 Bad Request in 6ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "mercado_pago_notifications" ("created_at", "operation_id", "topic", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:16:30.188938"], ["operation_id", "op123"], ["topic", "payment"], ["updated_at", "2014-12-02 22:16:30.188938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 32ms (Views: 7.0ms | ActiveRecord: 1.0ms) MercadoPago::Notification Load (0.2ms) SELECT "mercado_pago_notifications".* FROM "mercado_pago_notifications" ORDER BY "mercado_pago_notifications"."created_at" DESC LIMIT 1  (52.2ms) rollback transaction  (0.2ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"nonexistent_topic"} Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 400 Bad Request in 6ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'virgie_abbott@hoeger.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175585907621xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:16:30.314097"], ["email", "virgie_abbott@hoeger.co.uk"], ["encrypted_password", "4c22e63682bdcc56e64b80f16501bbd5bfd19342de012b2dbe65cd59917c6196f16fbe48fc404ac4009d7f23ce7269514c832ce106c30308035db66f55d1c6d3"], ["login", "virgie_abbott@hoeger.co.uk"], ["password_salt", "cxenpbRPTy4xaeBEDfm1"], ["updated_at", "2014-12-02 22:16:30.314097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:16:30.343617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:16:30.349989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:16:30.357360"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:16:30.357360"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R900196252' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R900196252%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R900196252' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'i7MLkEucejw_8jkn7ss1PA' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:16:30.394108"], ["currency", "USD"], ["email", "virgie_abbott@hoeger.co.uk"], ["guest_token", "i7MLkEucejw_8jkn7ss1PA"], ["number", "R900196252"], ["state", "cart"], ["updated_at", "2014-12-02 22:16:30.394108"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:16:30.446403"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 22:16:30.446403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 941861' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:16:30.456199"], ["description", "Esse perferendis vitae tempore vero asperiores reiciendis."], ["name", "TaxCategory - 941861"], ["updated_at", "2014-12-02 22:16:30.456199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:16:30.479989"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:16:30.479989"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-8437' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-8437' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:16:30.442230"], ["created_at", "2014-12-02 22:16:30.485544"], ["description", "Qui et harum eos quae in. Autem ut sunt velit earum nihil eum aliquam beatae. Inventore quibusdam id voluptatem qui ipsum omnis facilis.\nEos aut ut aut sit. Iusto voluptates provident quae dolor officiis rerum sit. Consectetur dolores est facere amet atque. Sunt eius aut ad voluptatibus praesentium consectetur. Fuga qui quisquam velit nihil dignissimos est."], ["name", "Product #1 - 8437"], ["shipping_category_id", 1], ["slug", "product-1-8437"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:30.485544"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 22:16:30.488391"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:30.496130' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.497515' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.512650' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.513973' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:16:30.589275"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:16:30.589275"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:30.590550' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.591164' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.592403' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.592956' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.603291' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.603938' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.604494' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:16:30.606174"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.607339' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.607825' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.608303' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.608858' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.609308' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:16:30.625584"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:30.625584"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-8437' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:30.633902' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:30.642403' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-5613' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-5613' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:16:30.648115"], ["created_at", "2014-12-02 22:16:30.651841"], ["description", "Nesciunt ut possimus mollitia tempore et natus provident quis. Sed aperiam numquam animi qui quisquam. Adipisci facere eum quia earum odit.\nVel velit optio quasi molestiae dignissimos ut qui. Ex eos veniam ut id dolorem magnam et ut. Praesentium voluptas ut repellendus maiores. Eius eum sit deleniti dicta ea.\nMolestiae accusamus veritatis distinctio non necessitatibus vero assumenda. Suscipit repellat provident sit odit. Dolorum voluptatibus autem aperiam et at eum assumenda alias. Nemo corporis sit laborum cumque enim."], ["name", "Product #2 - 5613"], ["shipping_category_id", 1], ["slug", "product-2-5613"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:30.651841"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 22:16:30.653910"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:30.655802' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.656914' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.658103' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.658637' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:16:30.662055"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:16:30.662055"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:30.662964' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.663468' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.664530' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.665003' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.668976' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.669522' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.670038' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:16:30.671803"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.672593' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.673094' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.673628' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.674241' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.674689' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:16:30.679604"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:30.679604"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-5613' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:30.683945' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:30.688602' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 22:16:30.705659' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:16:30.727572"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:16:30.727572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:16:30.740491"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:16:30.740491"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brittany@mclaughlin.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175585908602xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:16:30.745091"], ["email", "brittany@mclaughlin.ca"], ["encrypted_password", "f74b416d313a3d1ae5fc3b4cfbc9435f525bacaec2bef329f3f07e9fdc46ecd9f56aa10a82f9a6ed8be1cf5f11c402dec778a51b35af05a48667e391f203afea"], ["login", "brittany@mclaughlin.ca"], ["password_salt", "xWqTL85csMxFv9Sjg3Z2"], ["updated_at", "2014-12-02 22:16:30.745091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:16:30.747764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:16:30.749171"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:16:30.749171"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R718610999' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R718610999%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R718610999' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'I9xWh1QkkynjqIGoHzhakg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 22:16:30.754661"], ["currency", "USD"], ["email", "brittany@mclaughlin.ca"], ["guest_token", "I9xWh1QkkynjqIGoHzhakg"], ["number", "R718610999"], ["state", "cart"], ["updated_at", "2014-12-02 22:16:30.754661"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'GCXCJLBV' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 22:16:30.766425"], ["identifier", "GCXCJLBV"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:16:30.766425"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:30.769360' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-313055' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-313055"], ["updated_at", "2014-12-02 22:16:30.770687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kenna.pacocha@hand.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755859063xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:16:30.788255"], ["email", "kenna.pacocha@hand.biz"], ["encrypted_password", "472ae3bcede2964d77e251205e2838732003e74d462ee0084eb67cc15864e84bff9cee2c2d35713c62f2ae9eb5192056a40a49fb9805f979627bef0b1500fe0b"], ["login", "kenna.pacocha@hand.biz"], ["password_salt", "yZq6cLqT1wpy6f3dtsxv"], ["updated_at", "2014-12-02 22:16:30.788255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:16:30.791657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:16:30.793234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:16:30.794945"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:16:30.794945"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R461005073' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R461005073%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R461005073' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'DhBBsYG2gTRDwITTKTy-ew' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:16:30.800448"], ["currency", "USD"], ["email", "kenna.pacocha@hand.biz"], ["guest_token", "DhBBsYG2gTRDwITTKTy-ew"], ["number", "R461005073"], ["state", "cart"], ["updated_at", "2014-12-02 22:16:30.800448"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:16:30.811321"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 22:16:30.811321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 733319' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:16:30.815405"], ["description", "Quibusdam placeat quis omnis non accusantium et fugit."], ["name", "TaxCategory - 733319"], ["updated_at", "2014-12-02 22:16:30.815405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:16:30.819077"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:16:30.819077"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-4476' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-4476' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:16:30.809410"], ["created_at", "2014-12-02 22:16:30.823180"], ["description", "Ipsa unde commodi autem quisquam omnis odit assumenda. Inventore aut possimus accusamus incidunt consequuntur aspernatur quia. Hic cupiditate amet occaecati laborum odio veniam. Veniam cupiditate quis rem pariatur voluptas earum quaerat iste."], ["name", "Product #3 - 4476"], ["shipping_category_id", 1], ["slug", "product-3-4476"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:30.823180"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-12-02 22:16:30.825709"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:30.827954' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.829105' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.830421' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.830994' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:16:30.834367"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:16:30.834367"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:30.835305' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.835823' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.836929' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.837417' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.841396' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.841930' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.842447' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:16:30.844214"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.844925' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.845449' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.845985' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.846572' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.847012' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:16:30.851617"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:30.851617"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-4476' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:30.855836' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:30.860481' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-8972' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-8972' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:16:30.865934"], ["created_at", "2014-12-02 22:16:30.869732"], ["description", "Magnam et id veniam nam ut ullam aut. Culpa fuga quis odit rerum. Aut voluptates iste ut nemo animi ex. Reprehenderit accusamus atque neque asperiores. Exercitationem dolorem illum ut soluta aut tempora et.\nImpedit inventore reprehenderit et reiciendis. Minus provident qui est aspernatur. Est perferendis omnis consequatur laborum incidunt facere aperiam. Enim facere sit nihil magnam veniam cumque non. Nostrum est quam pariatur magni harum sit."], ["name", "Product #4 - 8972"], ["shipping_category_id", 1], ["slug", "product-4-8972"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:30.869732"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-12-02 22:16:30.871964"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:30.873982' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.875058' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.876322' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.876891' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:16:30.880182"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:16:30.880182"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:30.881131' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.881622' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.882784' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.883424' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.887451' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.887999' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.888578' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:16:30.890370"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.891139' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.891678' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.892205' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.892837' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:30.893333' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:16:30.898005"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:30.898005"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-8972' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:30.902080' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:30.906604' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 22:16:30.916260' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:16:30.920339"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:16:30.920339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:16:30.922418"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:16:30.922418"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'roscoe_bins@welch.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175585903234xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:16:30.925426"], ["email", "roscoe_bins@welch.co.uk"], ["encrypted_password", "970fa1c7b14b1987ed5cc834c82c7ebf0b99fc5754ece619144c553debb4daec10ae62071db1cbd986551134fa53175950dfdaf0e22d20e79067a22635c6299c"], ["login", "roscoe_bins@welch.co.uk"], ["password_salt", "_ccA1g4GS9yanYtzBvsz"], ["updated_at", "2014-12-02 22:16:30.925426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:16:30.927996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:16:30.929579"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:16:30.929579"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R881250744' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R881250744%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R881250744' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'EGGcGfBXxWOMVa8_3ZIlZA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 22:16:30.935647"], ["currency", "USD"], ["email", "roscoe_bins@welch.co.uk"], ["guest_token", "EGGcGfBXxWOMVa8_3ZIlZA"], ["number", "R881250744"], ["state", "cart"], ["updated_at", "2014-12-02 22:16:30.935647"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'RE4QENAC' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 22:16:30.938127"], ["identifier", "RE4QENAC"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:16:30.938127"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:30.940333' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-425400' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-425400"], ["updated_at", "2014-12-02 22:16:30.941721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'stanford@emmerich.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175585901985xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:16:30.954937"], ["email", "stanford@emmerich.us"], ["encrypted_password", "881ed775b8b130367671c16ef0e53f85de950ff73849b9e548efb2d32569d6a6c70c3befedf3aec89b1a614a25d7889eaef46dd4c8f4a8454d7026a74aa8110a"], ["login", "stanford@emmerich.us"], ["password_salt", "CTzxqVcweFfdHWiyPDzc"], ["updated_at", "2014-12-02 22:16:30.954937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:16:30.958312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:16:30.959687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:16:30.961313"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:16:30.961313"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R394287989' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R394287989%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R394287989' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CHoKkk-KOgUSFnjh5tD7Pw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:16:30.966951"], ["currency", "USD"], ["email", "stanford@emmerich.us"], ["guest_token", "CHoKkk-KOgUSFnjh5tD7Pw"], ["number", "R394287989"], ["state", "cart"], ["updated_at", "2014-12-02 22:16:30.966951"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:16:30.979592"], ["name", "ShippingCategory #3"], ["updated_at", "2014-12-02 22:16:30.979592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 731719' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:16:30.983895"], ["description", "Quia consequatur quae ad natus voluptas consequuntur dolorem."], ["name", "TaxCategory - 731719"], ["updated_at", "2014-12-02 22:16:30.983895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:16:30.988684"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:16:30.988684"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-2021' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-2021' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:16:30.977808"], ["created_at", "2014-12-02 22:16:30.992757"], ["description", "Assumenda ipsum voluptas rem sequi odio ratione ducimus. Sit eius voluptatibus minima corrupti excepturi quibusdam quas. Consequatur doloremque beatae reiciendis voluptatem a nobis. Quis fugiat excepturi aliquid nisi repellat ea. Repudiandae velit fuga et velit quos earum consequatur quasi."], ["name", "Product #5 - 2021"], ["shipping_category_id", 1], ["slug", "product-5-2021"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:30.992757"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-12-02 22:16:30.995393"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:30.997440' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:30.998584' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:30.999871' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.000473' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:16:31.004221"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:16:31.004221"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.005198' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.005718' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.006842' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.007379' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.011436' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.012043' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.012975' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:16:31.014848"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.015631' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.016170' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.016730' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.017362' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.017863' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:16:31.022880"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.022880"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-2021' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.027265' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:31.046863' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-416' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-416' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:16:31.051159"], ["created_at", "2014-12-02 22:16:31.054973"], ["description", "Nihil sit quo id consectetur vero enim impedit aliquid. Voluptates non cupiditate libero commodi corporis dolores. Sunt similique eaque nemo et."], ["name", "Product #6 - 416"], ["shipping_category_id", 1], ["slug", "product-6-416"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.054973"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-12-02 22:16:31.057141"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.059357' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.060506' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.061705' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.062236' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:16:31.065456"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:16:31.065456"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.066396' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.066907' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.068016' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.068488' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.072287' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.072817' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.073327' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:16:31.075096"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.075830' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.076540' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.077066' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.077668' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.078191' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:16:31.082980"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.082980"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-416' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.087078' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:31.091725' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 22:16:31.100371' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:16:31.103967"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:16:31.103967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:16:31.105949"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:16:31.105949"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'fritz@paucek.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175585916836xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:16:31.108836"], ["email", "fritz@paucek.co.uk"], ["encrypted_password", "f32496b9e23b6f27c95ce802e0e1f0f71992e436805f6ce9d73a73da3ba833c5f807841b568d77fb9869fb355e92291cdb9e0fa0570f0975e017f68a11493792"], ["login", "fritz@paucek.co.uk"], ["password_salt", "ayp8UTXZRZ1h97asyfhg"], ["updated_at", "2014-12-02 22:16:31.108836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:16:31.111349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:16:31.113208"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:16:31.113208"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R039609650' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R039609650%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R039609650' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ZNqX8aw66CZoD7FDLTOjaQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 22:16:31.122284"], ["currency", "USD"], ["email", "fritz@paucek.co.uk"], ["guest_token", "ZNqX8aw66CZoD7FDLTOjaQ"], ["number", "R039609650"], ["state", "cart"], ["updated_at", "2014-12-02 22:16:31.122284"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '549HPA7E' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 22:16:31.125751"], ["identifier", "549HPA7E"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:16:31.125751"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.128113' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-410231' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-410231"], ["updated_at", "2014-12-02 22:16:31.129339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nora@schiller.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175585914017xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:16:31.142484"], ["email", "nora@schiller.ca"], ["encrypted_password", "250b136568dfbffc032fd8de16101e8edbe879c82c1d7152dd9a211b6f0864425b9cb0b8340f6e0a64819794621a51603284cc4239dfadb2924a825e598bc79e"], ["login", "nora@schiller.ca"], ["password_salt", "_RZ_MoGQVZD--r51_3Qz"], ["updated_at", "2014-12-02 22:16:31.142484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:16:31.145507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:16:31.146885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:16:31.148436"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:16:31.148436"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R947477205' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R947477205%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R947477205' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Q-mv9LJ0VDA3Rc1qpgAM-g' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:16:31.154072"], ["currency", "USD"], ["email", "nora@schiller.ca"], ["guest_token", "Q-mv9LJ0VDA3Rc1qpgAM-g"], ["number", "R947477205"], ["state", "cart"], ["updated_at", "2014-12-02 22:16:31.154072"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:16:31.168167"], ["name", "ShippingCategory #4"], ["updated_at", "2014-12-02 22:16:31.168167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 709813' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:16:31.171342"], ["description", "Commodi perspiciatis exercitationem animi autem."], ["name", "TaxCategory - 709813"], ["updated_at", "2014-12-02 22:16:31.171342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:16:31.174677"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:16:31.174677"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-9135' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-9135' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:16:31.166482"], ["created_at", "2014-12-02 22:16:31.178861"], ["description", "Corrupti laborum ut minus provident ratione cumque. Totam id hic dolorem quasi quod sed alias. Vitae eligendi laboriosam dolorem quidem modi voluptate. Quis ut harum quia fugit nihil.\nIpsum ea debitis facilis quasi vero dolorum. Qui adipisci dolore cumque consequatur ad autem sunt. Quibusdam enim voluptatem non quo voluptatem nihil fugit perspiciatis. Velit assumenda necessitatibus non sint hic aperiam. Ratione similique nisi et quis.\nUt distinctio quia numquam excepturi facere eos repudiandae. Nihil corrupti reiciendis ea eum perferendis. Asperiores mollitia adipisci optio vel odio. Vel ut natus cum rerum.\nReiciendis dolore aut vitae rem et ea quod sequi. Tempore dicta fuga laboriosam delectus eius. Quaerat id ipsa voluptatibus facilis aut pariatur consequatur ducimus. Numquam provident distinctio aut ut commodi et nemo nostrum. Expedita iste ut quia odio ab."], ["name", "Product #7 - 9135"], ["shipping_category_id", 1], ["slug", "product-7-9135"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.178861"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-12-02 22:16:31.181261"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.183229' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.184354' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.185609' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.186165' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:16:31.189520"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:16:31.189520"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.190588' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.191238' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.192493' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.193063' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.197413' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.198946' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.200306' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:16:31.203471"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.204661' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.205435' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.206208' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.207100' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.207848' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:16:31.213303"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.213303"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-9135' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.217690' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:31.222304' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-1338' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-1338' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:16:31.228761"], ["created_at", "2014-12-02 22:16:31.232642"], ["description", "Esse magnam itaque qui accusamus non modi et. Corporis ut iste qui nam provident optio eligendi. Magni fugit laboriosam et rerum laudantium tempora. In consectetur at necessitatibus quaerat.\nOfficiis est dolor enim nihil veniam minima. Qui delectus nisi quo omnis placeat consequatur debitis. Sequi natus assumenda laudantium rerum omnis esse maiores.\nAccusantium quia et tempora hic totam quisquam provident sunt. Qui voluptatem ut magni ea. Tempora aut magnam nisi quia sunt maiores. Culpa molestiae ipsa nulla iure sit.\nAut quo qui aspernatur ipsa at. Culpa quis consequatur id hic sint unde. Ut aut maiores quaerat dolorem unde.\nUt cumque velit accusamus ut quas dolorum aut libero. Repudiandae dolorem eum suscipit ut minus. Est dolores accusamus ullam omnis possimus. Illum voluptatem recusandae porro sapiente sed nobis."], ["name", "Product #8 - 1338"], ["shipping_category_id", 1], ["slug", "product-8-1338"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.232642"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-12-02 22:16:31.234714"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.236601' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.237659' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.238849' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.239392' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:16:31.242985"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:16:31.242985"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.243931' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.244446' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.245521' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.246023' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.249835' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.250367' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.251037' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:16:31.254836"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.256178' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.257136' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.258035' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.258918' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.259687' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:16:31.265688"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.265688"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-1338' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.269703' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:31.274031' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 22:16:31.282513' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:16:31.286222"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:16:31.286222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:16:31.288388"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:16:31.288388"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'pearlie@kshlerin.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175585918898xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:16:31.291411"], ["email", "pearlie@kshlerin.co.uk"], ["encrypted_password", "6b3b4e7dce2899649d7760e7dcec01fe5c632560a073a7edf2790a5efd648abf7635dd03231ee4c63667d1326a0cefad1fb6b8e73ef518c44347917655e16332"], ["login", "pearlie@kshlerin.co.uk"], ["password_salt", "ZFeMx3gRTHZDVfUzbviB"], ["updated_at", "2014-12-02 22:16:31.291411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:16:31.294204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:16:31.295589"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:16:31.295589"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R092485251' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R092485251%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R092485251' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '2Aj836BLUieGr_lVLkL9TA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 22:16:31.304611"], ["currency", "USD"], ["email", "pearlie@kshlerin.co.uk"], ["guest_token", "2Aj836BLUieGr_lVLkL9TA"], ["number", "R092485251"], ["state", "cart"], ["updated_at", "2014-12-02 22:16:31.304611"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7B8CQX7M' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 22:16:31.308367"], ["identifier", "7B8CQX7M"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:16:31.308367"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.311045' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-440355' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-440355"], ["updated_at", "2014-12-02 22:16:31.312336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'melody.rippin@medhurst.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175585912179xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:16:31.325786"], ["email", "melody.rippin@medhurst.us"], ["encrypted_password", "fff6eadb3090592821a1418ef22ab67a9750aab99fe54cdc7a0bd2d35cd0421314445b8827bc7c7e2c4fc1f0dc711a1c58b78dafa1b6d0966c3b2204caa85273"], ["login", "melody.rippin@medhurst.us"], ["password_salt", "hdtZc2duuC7SP3yL_LKE"], ["updated_at", "2014-12-02 22:16:31.325786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:16:31.330626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:16:31.333207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:16:31.335699"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:16:31.335699"], ["zipcode", "35005"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R572858083' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R572858083%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R572858083' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'vznY9OyySNSzrEidP61tDA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:16:31.342905"], ["currency", "USD"], ["email", "melody.rippin@medhurst.us"], ["guest_token", "vznY9OyySNSzrEidP61tDA"], ["number", "R572858083"], ["state", "cart"], ["updated_at", "2014-12-02 22:16:31.342905"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:16:31.350678"], ["name", "ShippingCategory #5"], ["updated_at", "2014-12-02 22:16:31.350678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 518938' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:16:31.353283"], ["description", "Autem eveniet aperiam voluptates eos iste."], ["name", "TaxCategory - 518938"], ["updated_at", "2014-12-02 22:16:31.353283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:16:31.356630"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:16:31.356630"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-9371' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-9371' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:16:31.349628"], ["created_at", "2014-12-02 22:16:31.360720"], ["description", "Laborum atque debitis laudantium eum nihil quibusdam. Illum voluptate minima error officiis. Sed accusantium necessitatibus est porro consectetur quae quod molestias. Vero illo voluptas sed dicta exercitationem assumenda et et.\nQui ut quo quia cupiditate ad. Iste qui blanditiis animi officiis dolorum. Est voluptatum aliquid quas doloremque veritatis nulla rerum. Officiis aliquam fugit consequatur sapiente et amet. Ad ex sit facilis quis."], ["name", "Product #9 - 9371"], ["shipping_category_id", 1], ["slug", "product-9-9371"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.360720"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-12-02 22:16:31.363149"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.365253' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.366409' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.367737' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.368310' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:16:31.373934"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:16:31.373934"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.375335' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.375986' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.377271' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.377825' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.382808' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.383443' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.384015' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:16:31.385688"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.386383' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.386840' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.387332' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.387886' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.388337' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:16:31.393100"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.393100"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-9371' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.397829' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:31.402381' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-1578' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-1578' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:16:31.406868"], ["created_at", "2014-12-02 22:16:31.410463"], ["description", "Assumenda temporibus ut nisi repellat modi. Enim sapiente repellendus porro vel quo maxime assumenda totam. Officia et perferendis voluptatem distinctio exercitationem necessitatibus. Sit debitis fugiat autem facere. Ipsam fuga voluptatem doloremque saepe excepturi eos tenetur."], ["name", "Product #10 - 1578"], ["shipping_category_id", 1], ["slug", "product-10-1578"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.410463"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-12-02 22:16:31.412563"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.414469' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.415527' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.416731' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.417307' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:16:31.420549"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:16:31.420549"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.421489' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.422007' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.423108' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.423602' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.427427' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.427949' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.428502' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:16:31.430271"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.430996' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.431536' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.432069' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.432686' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.433213' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:16:31.437914"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.437914"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-1578' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.442007' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:31.446427' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 22:16:31.455070' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 22:16:31.466343"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 22:16:31.466343"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:31.469881' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.470458' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:16:31.474138"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:16:31.474138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:16:31.476163"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:16:31.476163"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cindy.kerluke@legros.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755859142010xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:16:31.479163"], ["email", "cindy.kerluke@legros.us"], ["encrypted_password", "077ac70774467b2e9c747a5826090dda9fbccfdd0e138e67ae4779f27cd2d5baa11be9036fb0984573560878e6a87ee737405e2996bce6f2222a32cb0da2fd0d"], ["login", "cindy.kerluke@legros.us"], ["password_salt", "m21A6KAyHn-q7Rb-Zfhx"], ["updated_at", "2014-12-02 22:16:31.479163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:16:31.481759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:16:31.483205"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:16:31.483205"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R154637844' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R154637844%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R154637844' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Ya_CUUp-llGQSmA-u4O_ZQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 22:16:31.488586"], ["currency", "USD"], ["email", "cindy.kerluke@legros.us"], ["guest_token", "Ya_CUUp-llGQSmA-u4O_ZQ"], ["number", "R154637844"], ["state", "cart"], ["updated_at", "2014-12-02 22:16:31.488586"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'VG79X2GX' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 22:16:31.491004"], ["identifier", "VG79X2GX"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:16:31.491004"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.493200' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-130224' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-130224"], ["updated_at", "2014-12-02 22:16:31.494402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'angie.runolfsdottir@green.info' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755859112311xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:16:31.511957"], ["email", "angie.runolfsdottir@green.info"], ["encrypted_password", "c024f1cde285856bf7c8b14c26e3f76fbf6447baa9a4bd55444e0ff6dda54d6f069e8f1636f8d05d3170b298eb3d50c946f517764e421626109dba897119018e"], ["login", "angie.runolfsdottir@green.info"], ["password_salt", "s7HLK7jnPZzqX4-8kdV6"], ["updated_at", "2014-12-02 22:16:31.511957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:16:31.531592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:16:31.533011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:16:31.534443"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:16:31.534443"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R009842231' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R009842231%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R009842231' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'd_XaOrMyBFKBTeEKCLydsA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:16:31.539923"], ["currency", "USD"], ["email", "angie.runolfsdottir@green.info"], ["guest_token", "d_XaOrMyBFKBTeEKCLydsA"], ["number", "R009842231"], ["state", "cart"], ["updated_at", "2014-12-02 22:16:31.539923"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:16:31.553315"], ["name", "ShippingCategory #6"], ["updated_at", "2014-12-02 22:16:31.553315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 655585' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:16:31.556575"], ["description", "Aspernatur quos est placeat ex."], ["name", "TaxCategory - 655585"], ["updated_at", "2014-12-02 22:16:31.556575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:16:31.559838"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:16:31.559838"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-2126' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-2126' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:16:31.551531"], ["created_at", "2014-12-02 22:16:31.563377"], ["description", "Eveniet omnis eius culpa consequatur. Sint est eaque culpa quia sint placeat praesentium. Dolor quibusdam aperiam nostrum itaque velit. Sunt cumque facilis eius qui aut quae necessitatibus. Explicabo sunt temporibus consectetur saepe id.\nEt omnis quis soluta explicabo accusamus facere. Illum id doloribus corrupti non dolor. Quam nesciunt voluptas porro sapiente maiores illum. Quae eveniet rerum nulla numquam omnis.\nReiciendis fuga ea tenetur molestias dolor. Facere similique neque illum distinctio impedit voluptates ratione. Nihil ullam tenetur non tempore autem voluptatem. Reprehenderit officia autem laborum minus."], ["name", "Product #11 - 2126"], ["shipping_category_id", 1], ["slug", "product-11-2126"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.563377"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-12-02 22:16:31.565537"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.567522' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.568636' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.569886' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.570440' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:16:31.573758"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:16:31.573758"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.574703' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.575183' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.576271' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.576745' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.580604' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.581143' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.581682' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:16:31.583411"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.584144' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.584674' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.585185' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.585794' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.586291' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:16:31.591042"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.591042"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-2126' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.595207' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:31.599799' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-827' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-827' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:16:31.605427"], ["created_at", "2014-12-02 22:16:31.609337"], ["description", "Maiores ut aut assumenda veniam at ut. Alias occaecati voluptates autem ipsa et sunt. Expedita odio beatae molestias ut provident.\nEx in quod laudantium ipsa tempora cumque fuga iusto. Voluptatem optio nam asperiores porro. Tenetur rem aut nobis dolores adipisci.\nRerum praesentium omnis tenetur minus dolorem eum. Aliquam blanditiis omnis assumenda nesciunt maiores recusandae fuga. Aut harum temporibus est et voluptates. Sint omnis debitis voluptas repellendus quas hic."], ["name", "Product #12 - 827"], ["shipping_category_id", 1], ["slug", "product-12-827"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.609337"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-12-02 22:16:31.611445"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.613342' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.614376' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.615630' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.616159' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:16:31.619543"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:16:31.619543"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:16:31.620449' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.620958' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.622026' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.622509' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.626363' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.626907' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.627478' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:16:31.629241"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:16:31.629962' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.630473' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.630995' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:16:31.631599' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:16:31.632091' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:16:31.636691"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:16:31.636691"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-827' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.640693' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:31.645137' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 22:16:31.653610' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 22:16:31.655274"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 22:16:31.655274"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:16:31.657972' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.658458' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:16:31.661939"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:16:31.661939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:16:31.663919"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:16:31.663919"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'liliana@whitecollins.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141755859194912xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:16:31.666839"], ["email", "liliana@whitecollins.com"], ["encrypted_password", "717aa5cda492ea526ec6a6e39c43211a8d61c6a18e6f10152868e256eaca5416b82b49138effe6f569ba7997642a4c58cf787d3c18e8f732ae5a2a1c72d27d51"], ["login", "liliana@whitecollins.com"], ["password_salt", "8RdLPuCjjcm2xq3N57US"], ["updated_at", "2014-12-02 22:16:31.666839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:16:31.669310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:16:31.670793"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:16:31.670793"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R602566122' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R602566122%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R602566122' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'rg6QsCrUHL7yvz3K6ILn_w' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 22:16:31.675932"], ["currency", "USD"], ["email", "liliana@whitecollins.com"], ["guest_token", "rg6QsCrUHL7yvz3K6ILn_w"], ["number", "R602566122"], ["state", "cart"], ["updated_at", "2014-12-02 22:16:31.675932"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'SBH3TM5F' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 22:16:31.678246"], ["identifier", "SBH3TM5F"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:16:31.678246"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:16:31.680326' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-545453' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-545453"], ["updated_at", "2014-12-02 22:16:31.681482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'francesco_lindgren@hettingerweissnat.biz' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175603696871xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:46:09.028623"], ["email", "francesco_lindgren@hettingerweissnat.biz"], ["encrypted_password", "2fab1da6dc0f2c9f787e2e8c242882bca8cd49f02bcbd211b3a842fdb7e8ca018712df1bbdd6bef1950361d791c75eb057cc3d81da39287dfb8621d93ae58529"], ["login", "francesco_lindgren@hettingerweissnat.biz"], ["password_salt", "6GWpsVKdNPZxt9FREf-H"], ["updated_at", "2014-12-02 22:46:09.028623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:46:09.064041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:46:09.070611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:46:09.079824"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:46:09.079824"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:46:09.102882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:46:09.104402"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:46:09.104402"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R276881019' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R276881019%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R276881019' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'AXEzs8NaY59447oR3XxNZw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:46:09.122932"], ["currency", "USD"], ["email", "francesco_lindgren@hettingerweissnat.biz"], ["guest_token", "AXEzs8NaY59447oR3XxNZw"], ["number", "R276881019"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:46:09.122932"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:46:09.180595"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 22:46:09.180595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 745403' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.191673"], ["description", "Cumque nesciunt inventore consequatur quo."], ["name", "TaxCategory - 745403"], ["updated_at", "2014-12-02 22:46:09.191673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:46:09.216868"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:46:09.216868"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-8594' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-8594' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:09.175975"], ["created_at", "2014-12-02 22:46:09.222388"], ["description", "Doloribus eos minus occaecati unde eius blanditiis. Sint aut animi quas veritatis tempora vitae et nobis. Voluptatibus consequatur omnis commodi eligendi in deleniti. Doloremque qui qui deserunt ea. Hic nam autem facilis quasi.\nQuia omnis nihil illum sequi labore maiores. Voluptas officia reprehenderit autem similique. Et dignissimos expedita enim officia mollitia ut voluptas totam."], ["name", "Product #1 - 8594"], ["shipping_category_id", 1], ["slug", "product-1-8594"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:09.222388"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 22:46:09.225292"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.233408' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.234704' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.249166' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.250407' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:09.274566"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:09.274566"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.275769' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.276346' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.277525' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.278034' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.288914' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.289529' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.290104' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:09.292225"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.293495' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.294003' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.294489' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.295048' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.295504' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:09.314639"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:09.314639"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-8594' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.331642' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:09.341628' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-509' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-509' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:09.348436"], ["created_at", "2014-12-02 22:46:09.352822"], ["description", "Et quam reiciendis doloremque deserunt. Beatae et ut et voluptatum consequatur occaecati. Quia voluptatem repellat maxime illum at eos nemo perferendis. Ab recusandae sit consequatur sed quos et. Architecto consequatur rerum eaque quis.\nRepellendus accusamus aliquid qui dignissimos rerum facere autem harum. Quidem laborum hic illo quaerat et. Ut nesciunt velit pariatur hic unde fugit labore. Et dolorum fugit necessitatibus ullam.\nAssumenda libero voluptas possimus sint et. Earum velit quia asperiores est molestias dolorem. Asperiores corrupti expedita dolore minus soluta doloremque perspiciatis.\nArchitecto quam beatae vel inventore laborum voluptas. Laboriosam quis soluta reprehenderit unde voluptatem est voluptas veritatis. Reiciendis nemo voluptatibus accusantium pariatur ut earum quibusdam necessitatibus."], ["name", "Product #2 - 509"], ["shipping_category_id", 1], ["slug", "product-2-509"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:09.352822"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 22:46:09.355288"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.357406' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.358513' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.359773' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.360390' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:09.363864"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:09.363864"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.364818' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.365363' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.366502' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.367021' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.371066' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.371638' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.372267' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:09.425842"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.426578' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.427115' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.427587' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.428106' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.428549' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:09.433202"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:09.433202"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-509' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.438266' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:09.443696' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-2774' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-2774' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:09.448296"], ["created_at", "2014-12-02 22:46:09.451801"], ["description", "Debitis ut ipsam dicta asperiores sunt. Corrupti deserunt eius sunt sed eum natus. Debitis maiores dolor ducimus voluptatem ab.\nExpedita maiores omnis qui molestias repellat sit facilis quia. Aut dolore quibusdam ex ut numquam iste aliquam vitae. Quo dolor unde esse nesciunt quisquam."], ["name", "Product #3 - 2774"], ["shipping_category_id", 1], ["slug", "product-3-2774"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:09.451801"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 22:46:09.453808"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.455595' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.456641' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.457884' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.458541' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:09.461698"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:09.461698"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.462669' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.463226' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.464311' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.464782' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.468629' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.469178' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.469690' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:09.471310"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.472003' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.472478' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.472958' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.473515' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.473953' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:09.479653"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:09.479653"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-2774' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.489201' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:09.495426' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-5141' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-5141' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:09.501998"], ["created_at", "2014-12-02 22:46:09.505692"], ["description", "Accusamus error et et velit tempore dolorem. Tempora quam sint cum nobis sunt dignissimos et quas. In est repellendus explicabo at repudiandae. Fugiat facere perferendis a qui reiciendis illo.\nIn est ea amet eum laboriosam officia velit omnis. Adipisci et est explicabo reprehenderit blanditiis distinctio expedita. Eos autem ullam quia nam nisi quia.\nUt id necessitatibus mollitia nihil officiis et iste aut. Consequatur delectus hic nihil esse. Consectetur earum quod est doloremque ut quia sit autem.\nEt esse nesciunt aut pariatur. Neque vel vitae est dolor iste omnis praesentium minima. Dolore ratione ad dignissimos et repellendus. Aut voluptatem accusantium distinctio sunt cupiditate.\nEt et non quam autem eveniet possimus. Illum inventore nemo quia aut necessitatibus. Ab ipsa rerum saepe assumenda accusantium doloremque. Hic et iste molestias dolores tenetur est. Optio et explicabo fuga quo praesentium enim eos fugiat."], ["name", "Product #4 - 5141"], ["shipping_category_id", 1], ["slug", "product-4-5141"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:09.505692"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 22:46:09.507772"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.509587' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.510604' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.511802' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.512332' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:09.515131"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:09.515131"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.516021' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.516488' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.517572' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.518044' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.521877' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.522402' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.522901' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:09.524447"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.525098' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.525523' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.525979' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.526523' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.527000' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:09.531665"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:09.531665"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-5141' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.537490' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:09.543176' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8278' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8278' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:09.550120"], ["created_at", "2014-12-02 22:46:09.553813"], ["description", "Aut saepe omnis vero vel. Nesciunt reiciendis aut ut nostrum. Libero et asperiores dicta earum. Optio perferendis labore nobis deserunt eos voluptatum nulla.\nVitae quod commodi eligendi recusandae minima voluptatem labore quisquam. Repudiandae quis consequuntur nam aut veritatis eum rerum et. Facere non omnis est accusantium et in. Officia libero aut deserunt molestiae est quo. Ipsum explicabo suscipit earum qui maxime cupiditate velit sunt.\nNesciunt at dolor quod alias quis sit quia id. Provident id facere expedita eveniet aut dolor cupiditate et. Ducimus non sint provident ipsum et voluptatum voluptas ut.\nVitae architecto consequatur sunt iure. Aut perspiciatis voluptatem impedit qui at optio. Autem fugit modi corporis facere veniam. Quia accusamus nisi rem consequatur consectetur in.\nNon ad sapiente ut rerum omnis. Dolores dolorem neque explicabo quod. Vel voluptas soluta in ut reprehenderit assumenda perferendis. Voluptatum esse maxime qui ipsa voluptatem dolor voluptatem consectetur. Blanditiis sed qui eligendi tempore voluptas."], ["name", "Product #5 - 8278"], ["shipping_category_id", 1], ["slug", "product-5-8278"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:09.553813"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 22:46:09.555946"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.557762' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.558797' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.559993' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.560524' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:09.563427"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:09.563427"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.564377' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.564878' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.565925' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.566408' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.570355' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.570887' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.571428' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:09.573073"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.573761' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.574246' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.574720' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.575263' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.575735' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:09.580399"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:09.580399"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8278' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.590479' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:09.597062' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:46:09.614754"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:46:09.614754"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:09.618422"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:09.618422"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.619361' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.620512' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.621736' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.622359' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:09.624958"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:09.624958"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.625782' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.626821' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.627926' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.628427' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:09.630786"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:09.630786"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.631626' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.632645' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.633781' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.634312' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:09.637008"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:09.637008"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.637924' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.639100' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.640365' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.640855' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:09.643310"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:09.643310"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:09.644146' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:09.645154' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:09.646373' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:09.646874' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H13416623505%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:46:09.652638"], ["number", "H13416623505"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:46:09.652638"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.653761' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:09.659812' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.678432"], ["description", "Iure corrupti hic rerum sed blanditiis sunt et ut."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:46:09.678432"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.681499"], ["updated_at", "2014-12-02 22:46:09.681499"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:46:09.724892"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:46:09.724892"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:46:09.726037"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:46:09.726037"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.727834"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:09.727834"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:46:09.742748"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:09.742748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.757694"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:09.757694"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:09.758799' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.759452' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.760894"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:09.760894"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:09.761501' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.761977' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.764012"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:09.764012"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:09.764685' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.765124' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.766430"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:09.766430"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:09.767055' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.767471' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.768742"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:09.768742"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:09.769391' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.769835' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:46:09.791315' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.853629"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:09.853629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:46:09.857343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.859065' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:46:09.859662' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.895874"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:46:09.895874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.908676"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:46:09.908676"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'LZSHU39V' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:46:09.920049"], ["identifier", "LZSHU39V"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:46:09.920049"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.922942' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-151125' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-151125"], ["updated_at", "2014-12-02 22:46:09.924252"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.934586"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:09.934586"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:46:09.936640' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.953921"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:09.953921"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:46:09.956964"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:09.958560' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:46:09.960961' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:09.962703"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:09.962703"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:46:09.963442' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (4.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'delaney@jaskolski.ca' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175603954511xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:46:35.906225"], ["email", "delaney@jaskolski.ca"], ["encrypted_password", "6af07af26eeda065d601f777024eb3255f21d28c11ed66994e4fc6504f22bcefa7ea9fee26be82ce53c8ce10d4af22dbcd7e887c03e275e79f27429d3f7bfd72"], ["login", "delaney@jaskolski.ca"], ["password_salt", "yw9Nau1fhepiZZWGqx5Q"], ["updated_at", "2014-12-02 22:46:35.906225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:46:35.949320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:46:35.955389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:46:35.965238"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:46:35.965238"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:46:35.989076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:46:35.990675"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:46:35.990675"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R842622102' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R842622102%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R842622102' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'keiCwdYV10ihXvZ2tUMH-Q' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:46:36.009483"], ["currency", "USD"], ["email", "delaney@jaskolski.ca"], ["guest_token", "keiCwdYV10ihXvZ2tUMH-Q"], ["number", "R842622102"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:46:36.009483"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:46:36.070084"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 22:46:36.070084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 481478' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.082402"], ["description", "Aliquid quo ipsam repellat ipsum."], ["name", "TaxCategory - 481478"], ["updated_at", "2014-12-02 22:46:36.082402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:46:36.107766"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:46:36.107766"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-2927' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-2927' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:36.064984"], ["created_at", "2014-12-02 22:46:36.113002"], ["description", "Et sapiente tempora optio hic soluta nam officiis. Id sit tempora nisi harum necessitatibus. Fuga est aliquid sit impedit. Sapiente voluptas aut enim quis. Repellat at excepturi ut et exercitationem.\nDebitis ab at rerum occaecati. Dolorem laboriosam labore vel harum enim est quia incidunt. Qui vel placeat est nostrum.\nMagnam maxime eos non incidunt vero corporis. Similique impedit mollitia quasi nobis beatae excepturi rerum. Quia nisi voluptas vel praesentium ad. At est consectetur nisi explicabo voluptates porro aut. Error dolores aut qui non quis facere repellat iusto."], ["name", "Product #1 - 2927"], ["shipping_category_id", 1], ["slug", "product-1-2927"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:36.113002"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 22:46:36.115869"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.124033' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.125334' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.139425' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.140742' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:36.163556"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:36.163556"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.164776' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.165367' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.166597' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.167116' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.178582' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.179240' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.179844' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:36.181707"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.182934' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.183464' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.183976' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.184551' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.185020' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:36.203878"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:36.203878"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-2927' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.221329' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:36.237033' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-6683' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-6683' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:36.243056"], ["created_at", "2014-12-02 22:46:36.247013"], ["description", "Autem voluptas dignissimos quisquam voluptas. Totam temporibus voluptas et et dolorem et pariatur. Non est pariatur totam cumque.\nEst qui inventore est qui eos. Corrupti a qui aut pariatur aliquam quia. Quo unde et fuga sed est ad. Est cum non et impedit est vitae.\nCulpa quo ratione eaque blanditiis voluptatem natus corporis. Dicta fugiat eos commodi repellendus nihil aut. Et natus facilis qui cumque."], ["name", "Product #2 - 6683"], ["shipping_category_id", 1], ["slug", "product-2-6683"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:36.247013"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 22:46:36.249186"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.251246' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.252317' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.253598' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.254168' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:36.257204"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:36.257204"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.258155' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.258721' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.259874' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.260378' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.264474' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.265056' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.265694' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:36.323073"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.323936' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.324477' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.325011' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.325635' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.326077' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:36.330878"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:36.330878"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-6683' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.336029' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:36.341670' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-3896' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-3896' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:36.346109"], ["created_at", "2014-12-02 22:46:36.349858"], ["description", "Sequi distinctio harum deserunt et nemo vero. Quia corporis occaecati voluptatem dolor mollitia. Provident odio itaque et nihil dignissimos voluptatem. Voluptatem nemo et quasi doloremque odio error sed."], ["name", "Product #3 - 3896"], ["shipping_category_id", 1], ["slug", "product-3-3896"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:36.349858"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 22:46:36.352058"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.353984' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.355070' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.356292' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.356829' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:36.359673"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:36.359673"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.360575' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.361087' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.362159' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.362634' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.366509' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.367058' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.367584' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:36.369185"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.369846' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.370315' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.370842' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.371370' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.371847' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:36.376516"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:36.376516"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-3896' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.382339' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:36.388070' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-5703' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-5703' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:36.394866"], ["created_at", "2014-12-02 22:46:36.398540"], ["description", "Et sapiente iure fugiat facere nam dolorem. Maiores sed id optio quisquam atque nulla aliquid. A dolor consequuntur est nulla. Modi et molestiae quos eligendi earum natus voluptatem.\nEt quo nisi tenetur accusamus minus. Dolor rerum et nobis explicabo aliquam excepturi dolor. Sapiente et nulla cum vel illum.\nAliquid officiis maxime vitae non. Modi neque eaque at velit corrupti in. Qui consequatur eligendi a harum amet consequatur ut ea. Deleniti non sint voluptatem minima occaecati ipsam tempore.\nAdipisci alias ducimus in eius dicta. Consequatur placeat tempore dolores voluptatem. Eius aliquid voluptatibus sequi quos voluptate laboriosam. Neque inventore excepturi ullam nam. Quibusdam aspernatur repellendus quia omnis.\nQuo itaque harum commodi enim sed. Provident possimus voluptas voluptatibus nemo odio. Aliquam consequuntur natus ab sunt ex."], ["name", "Product #4 - 5703"], ["shipping_category_id", 1], ["slug", "product-4-5703"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:36.398540"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 22:46:36.400649"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.402574' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.403746' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.404976' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.405512' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:36.408557"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:36.408557"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.409481' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.410065' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.411236' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.411740' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.415745' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.416317' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.416860' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:36.418434"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.419112' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.419606' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.420068' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.420633' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.421070' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:36.425701"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:36.425701"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-5703' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.431328' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:36.436824' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-4424' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-4424' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:36.443075"], ["created_at", "2014-12-02 22:46:36.446715"], ["description", "Perspiciatis voluptatem unde reprehenderit sunt id aliquam. Blanditiis ut quis ut voluptatem in praesentium. Atque eum laborum aut maxime id provident. Quam omnis voluptatum eum incidunt pariatur perferendis quisquam.\nNon consequatur dolorem id consequuntur. Totam reiciendis error culpa ut quis commodi consequatur voluptates. Perferendis velit ipsam aut atque quia repellat facere.\nQuas sit vel laborum dicta repellendus minus. Et sit eius quis sit ut et. Qui aspernatur qui consequatur dolor nisi unde voluptatem aliquid.\nDolor accusamus error recusandae sunt animi nam et ut. Molestiae quod itaque dolores sed. Et neque recusandae voluptas numquam optio.\nRepellendus accusantium dolor ipsum ut. Non et alias doloribus inventore ad odit ipsum. Sunt adipisci perspiciatis ea architecto accusamus et voluptatem."], ["name", "Product #5 - 4424"], ["shipping_category_id", 1], ["slug", "product-5-4424"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:36.446715"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 22:46:36.448833"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.450641' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.451701' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.452922' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.453445' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:36.456333"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:36.456333"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.457242' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.457745' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.458814' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.459329' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.463187' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.463729' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.464262' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:36.465802"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.466459' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.466924' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.467394' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.467974' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.468444' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:36.473302"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:36.473302"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-4424' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.479442' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:36.485175' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:46:36.503297"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:46:36.503297"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:36.507098"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:36.507098"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.508095' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.509283' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.510548' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.511135' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:36.513731"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:36.513731"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.514603' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.515659' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.516831' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.517390' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:36.519850"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:36.519850"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.520708' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.521760' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.522991' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.523545' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:36.526246"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:36.526246"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.527151' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.528292' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.529530' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.530014' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:36.532325"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:36.532325"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:36.533216' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:36.534214' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:36.536851' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:36.537959' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H15447852820%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:46:36.547223"], ["number", "H15447852820"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:46:36.547223"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.548478' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:36.554795' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.572994"], ["description", "Ut voluptatem nam reiciendis veritatis ab ipsa occaecati."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:46:36.572994"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.576208"], ["updated_at", "2014-12-02 22:46:36.576208"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:46:36.626058"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:46:36.626058"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:46:36.627320"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:46:36.627320"]] SQL (0.2ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.629379"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:36.629379"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:46:36.650520"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:36.650520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.668254"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:36.668254"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:36.669629' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.670394' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.672125"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:36.672125"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:36.672964' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.673624' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.675369"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:36.675369"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:36.676229' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.676900' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.678569"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:36.678569"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:36.679367' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.679938' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.681601"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:36.681601"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:36.682408' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.682998' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:46:36.706530' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.749208"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:36.749208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:46:36.753430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.755125' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:46:36.755779' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.791521"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:46:36.791521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.804379"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:46:36.804379"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7LSL74Y5' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:46:36.816341"], ["identifier", "7LSL74Y5"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:46:36.816341"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.819250' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-544010' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-544010"], ["updated_at", "2014-12-02 22:46:36.820563"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.830870"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:36.830870"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:46:36.832860' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.850140"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:36.850140"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:46:36.853147"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.854678' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:46:36.857063' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.858830"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:36.858830"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:46:36.859577' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = '7LSL74Y5' ORDER BY spree_payments.created_at LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 22:46:36.867399"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.868699' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.874726"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:36.874726"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:46:36.877298' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.896502"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:36.896502"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 22:46:36.899487"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.901122' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:46:36.903254' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.904819"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:36.904819"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:46:36.905638' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.908902"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:46:36.908902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.918506"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:36.918506"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:46:36.919510' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.936625"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:36.936625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 22:46:36.939887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:36.941632' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:46:36.943813' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:36.945455"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:36.945455"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 22:46:36.946269' WHERE "spree_orders"."id" = 1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (5.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'manley.koepp@schmelerdaugherty.biz' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175604031921xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:46:43.583803"], ["email", "manley.koepp@schmelerdaugherty.biz"], ["encrypted_password", "91efb557cd64689c2546d2f6dde60be0947fdb031610baab1da8192973c5b7b028084a19e901b2c5b35f38588f15268dc15f714209e2b1d1170da1626a3e18d8"], ["login", "manley.koepp@schmelerdaugherty.biz"], ["password_salt", "xX2G8s-cN5pzmm7pyvvz"], ["updated_at", "2014-12-02 22:46:43.583803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:46:43.624035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:46:43.630448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:46:43.639424"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:46:43.639424"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:46:43.663206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:46:43.664753"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:46:43.664753"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R584173199' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R584173199%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R584173199' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '0vQ5oV-wXzXZmQt4KYkaxA' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:46:43.683104"], ["currency", "USD"], ["email", "manley.koepp@schmelerdaugherty.biz"], ["guest_token", "0vQ5oV-wXzXZmQt4KYkaxA"], ["number", "R584173199"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:46:43.683104"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:46:43.741135"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 22:46:43.741135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 217470' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:46:43.752159"], ["description", "Magnam temporibus perspiciatis fugiat ratione tenetur minima eum."], ["name", "TaxCategory - 217470"], ["updated_at", "2014-12-02 22:46:43.752159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:46:43.777361"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:46:43.777361"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-7627' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-7627' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:43.736489"], ["created_at", "2014-12-02 22:46:43.782820"], ["description", "Totam beatae debitis nostrum consequatur quia libero magni inventore. Aut molestiae odit mollitia incidunt qui quaerat. Ratione corporis doloribus illo natus illum corrupti sequi.\nNon molestias temporibus voluptates consequatur et deserunt. Ut ut voluptatibus necessitatibus quibusdam vero commodi cupiditate dolores. Debitis doloribus et recusandae corrupti quo ut quas eaque. Accusantium nemo aut esse omnis ducimus repudiandae. Sed quia dolorem quae velit est eveniet consequatur.\nError molestias dolorem qui deserunt. Maiores sed omnis et earum blanditiis dolor sed. Distinctio tenetur aliquam excepturi omnis velit facilis.\nAb qui ipsa illo in magni delectus qui. Amet nihil in quis ipsa quaerat. Animi illum sed eum saepe enim. Neque voluptatem similique magni dignissimos amet."], ["name", "Product #1 - 7627"], ["shipping_category_id", 1], ["slug", "product-1-7627"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:43.782820"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 22:46:43.785669"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:43.793771' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:43.795081' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:43.809604' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:43.810913' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:43.833900"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:43.833900"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:43.835133' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:43.835733' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:43.836929' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:43.837475' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:43.848400' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:43.849049' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:43.849627' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:43.851403"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:43.852621' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:43.853150' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:43.853644' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:43.854234' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:43.854689' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:43.873533"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:43.873533"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-7627' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:43.891478' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:43.901296' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-3352' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-3352' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:43.907354"], ["created_at", "2014-12-02 22:46:43.911942"], ["description", "Aut aspernatur possimus dolorum quo doloremque. Ea animi et saepe sint voluptates. Nam voluptatem beatae fuga rerum in suscipit.\nNatus quos totam dolores sit nisi et nobis iusto. Natus quidem vero soluta quisquam tempore modi ex. Officia quasi et corporis minima. Voluptatem pariatur laudantium excepturi rerum ut. Quidem error consequatur pariatur molestias dolore placeat nostrum.\nIpsam qui deleniti laudantium eum ut. Omnis sint non dolorum dicta dolorem vel et. Saepe modi enim perspiciatis dolores. Vitae perspiciatis et dolores excepturi. Odio qui vel voluptatum sunt itaque."], ["name", "Product #2 - 3352"], ["shipping_category_id", 1], ["slug", "product-2-3352"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:43.911942"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 22:46:43.914110"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:43.916115' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:43.917226' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:43.918525' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:43.919112' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:43.922583"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:43.922583"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:43.923606' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:43.924175' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:43.925400' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:43.925917' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:43.930400' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:43.930982' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:43.931543' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:43.985475"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:43.986316' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:43.986859' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:43.987356' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:43.987918' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:43.988386' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:43.993113"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:43.993113"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-3352' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:43.999118' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:44.004545' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-781' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-781' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:44.010371"], ["created_at", "2014-12-02 22:46:44.013980"], ["description", "Hic officia impedit iusto velit labore. Sunt labore debitis omnis voluptatum quidem a reprehenderit at. Veniam dolore vel omnis enim perspiciatis velit. Neque et eaque facere exercitationem perspiciatis. Non quia ea reprehenderit nihil ab nemo.\nNatus tempora quia consectetur possimus eaque cum distinctio nesciunt. Omnis facere dolores placeat non. Ex sed eos quibusdam dolorem et et itaque doloribus. Consequatur alias eveniet molestiae amet.\nConsequatur non quas saepe non nulla eius repudiandae. Eius similique nostrum maiores tenetur molestiae vitae eum et. Voluptas adipisci sequi id saepe aut numquam aliquam incidunt. Ipsa rerum asperiores quam deleniti beatae at esse. Eius commodi quam vel reprehenderit doloribus sunt."], ["name", "Product #3 - 781"], ["shipping_category_id", 1], ["slug", "product-3-781"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:44.013980"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 22:46:44.016055"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:44.018322' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.019360' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.020583' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.021130' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:44.023972"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:44.023972"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:44.024828' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.025621' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.026731' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.027204' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.031571' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.032126' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.032669' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:44.034296"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.034991' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.035464' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.035931' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.036489' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.036932' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:44.042111"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:44.042111"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-781' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.048598' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:44.054429' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-4654' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-4654' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:44.059869"], ["created_at", "2014-12-02 22:46:44.063573"], ["description", "Nihil animi ex nesciunt et commodi. Esse voluptas dolorum eligendi nihil. Quia laboriosam laudantium reprehenderit dolores aliquid. Sed et officiis optio exercitationem.\nIncidunt explicabo facilis sit quis. Non odio ea neque voluptas quasi ex. Nisi nihil provident perferendis libero alias. Ut explicabo eum sint et ex. Cumque itaque quia quisquam autem et similique velit."], ["name", "Product #4 - 4654"], ["shipping_category_id", 1], ["slug", "product-4-4654"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:44.063573"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 22:46:44.065677"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:44.067599' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.068646' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.069846' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.070384' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:44.073246"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:44.073246"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:44.074114' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.074936' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.076060' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.076529' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.080498' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.081048' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.081578' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:44.083251"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.083920' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.084355' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.084891' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.085411' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.085905' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:44.090641"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:44.090641"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-4654' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.096263' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:44.101850' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-2071' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-2071' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:46:44.106948"], ["created_at", "2014-12-02 22:46:44.110781"], ["description", "Illum nam dolor beatae possimus doloribus quis et. Officiis cupiditate similique expedita voluptas. Inventore rerum atque veniam impedit dolor saepe. Sed architecto qui consequatur aliquid voluptatem. Voluptatem unde impedit itaque in tempora possimus qui alias."], ["name", "Product #5 - 2071"], ["shipping_category_id", 1], ["slug", "product-5-2071"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:44.110781"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 22:46:44.112946"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:44.114792' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.115845' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.117056' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.117588' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:44.120426"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:46:44.120426"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:44.121280' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.121822' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.122958' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.123431' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.127387' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.127911' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.128409' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:46:44.129994"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.130671' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.131153' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.131650' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.132209' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.132653' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:46:44.137333"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:46:44.137333"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-2071' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.143081' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:44.148622' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:46:44.165982"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:46:44.165982"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:44.169547"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:44.169547"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:44.170482' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.171685' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.172976' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.173524' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:44.175982"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:44.175982"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:44.176904' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.177933' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.179082' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.179549' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:44.181921"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:44.181921"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:44.182820' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.183884' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.185068' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.185639' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:44.188421"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:44.188421"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:44.189322' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.190359' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.191547' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.192031' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:46:44.194386"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:46:44.194386"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:46:44.195239' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:46:44.196264' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:46:44.197437' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:46:44.198008' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H74378688271%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:46:44.203895"], ["number", "H74378688271"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:46:44.203895"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.205009' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:46:44.211006' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.229050"], ["description", "Non omnis consequatur ut in aut."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:46:44.229050"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.232204"], ["updated_at", "2014-12-02 22:46:44.232204"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:46:44.274386"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:46:44.274386"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:46:44.275463"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:46:44.275463"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.277219"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:44.277219"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:46:44.292070"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:44.292070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.306421"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:44.306421"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:44.307538' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.308148' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.309642"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:44.309642"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:44.310283' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.310738' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.312022"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:44.312022"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:44.312656' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.313152' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.314481"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:44.314481"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:44.315113' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.315563' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.316851"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:46:44.316851"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:46:44.317484' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.317939' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:46:44.336293' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.375013"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:44.375013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:46:44.378698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.380439' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:46:44.381050' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.417505"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:46:44.417505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.430542"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:46:44.430542"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'Y9XS6DAP' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:46:44.442198"], ["identifier", "Y9XS6DAP"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:46:44.442198"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.445256' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-225253' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-225253"], ["updated_at", "2014-12-02 22:46:44.446614"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.457189"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:44.457189"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:46:44.459253' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.477113"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:44.477113"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:46:44.480310"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.481917' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:46:44.484283' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.486107"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:44.486107"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:46:44.486933' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'Y9XS6DAP' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 22:46:44.496040"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.497442' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.503660"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:44.503660"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:46:44.506250' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.526272"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:44.526272"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 22:46:44.529430"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.531074' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:46:44.533252' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.534858"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:44.534858"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:46:44.535631' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.539340"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:46:44.539340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.548628"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:44.548628"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:46:44.549606' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.568011"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:46:44.568011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 22:46:44.571351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:46:44.573048' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:46:44.575214' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:46:44.576890"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:46:44.576890"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 22:46:44.577724' WHERE "spree_orders"."id" = 1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (48.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'freeda@bartoletti.info' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175604285461xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:47:08.236748"], ["email", "freeda@bartoletti.info"], ["encrypted_password", "afc9eea51e2a42896a5688ccf81575d2e387aa73c865c8f65450635e0d7d71607459762691b2865d3f180a2ccbd76dc3d18663e682fbb71be82de0f6773df23f"], ["login", "freeda@bartoletti.info"], ["password_salt", "ou1va968Jr37sVArdVfP"], ["updated_at", "2014-12-02 22:47:08.236748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:47:08.271595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:47:08.281520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:47:08.296920"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:47:08.296920"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:47:08.318647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:47:08.320167"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:47:08.320167"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R700602705' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R700602705%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R700602705' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'q9uHmTSzDVnsOn80m9r2Sw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:47:08.338073"], ["currency", "USD"], ["email", "freeda@bartoletti.info"], ["guest_token", "q9uHmTSzDVnsOn80m9r2Sw"], ["number", "R700602705"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:47:08.338073"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:47:08.393784"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 22:47:08.393784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 404971' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:47:08.404429"], ["description", "Voluptatem soluta excepturi qui id ea."], ["name", "TaxCategory - 404971"], ["updated_at", "2014-12-02 22:47:08.404429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:47:08.429070"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:47:08.429070"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-7985' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-7985' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:47:08.389394"], ["created_at", "2014-12-02 22:47:08.434277"], ["description", "Illum id maiores id eos. Dolorem et qui sit nihil dicta. Dolorem sit veritatis expedita quia non non quod et. Eos laudantium consequatur hic et autem perferendis."], ["name", "Product #1 - 7985"], ["shipping_category_id", 1], ["slug", "product-1-7985"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:47:08.434277"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 22:47:08.437036"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.445186' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.446495' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.461127' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.462353' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:47:08.485362"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:47:08.485362"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.486580' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.487152' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.488334' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.488835' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.499403' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.500022' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.500566' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:47:08.502326"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.503589' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.504100' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.504587' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.505165' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.505624' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:47:08.523780"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:47:08.523780"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-7985' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:08.540696' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:47:08.550679' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-5059' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-5059' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:47:08.557073"], ["created_at", "2014-12-02 22:47:08.560948"], ["description", "Voluptatem repellendus et iure fugit qui velit voluptatem rerum. Soluta et a magni non. Maiores id enim nemo qui temporibus. Voluptatem est alias consectetur et qui.\nFugit voluptatem sint odit ullam. Consequatur illo laboriosam nemo est sunt eius et id. Fugiat quia aspernatur dolorum doloribus. Doloremque quod omnis dolorem cumque tenetur praesentium recusandae. Et asperiores quasi et ut vel voluptas earum aperiam.\nRepellat quos voluptate vitae quis esse. Accusamus quaerat voluptatum tempore asperiores. Quo veritatis distinctio saepe labore. Dolorem omnis ex non provident rerum minima illo qui."], ["name", "Product #2 - 5059"], ["shipping_category_id", 1], ["slug", "product-2-5059"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:47:08.560948"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 22:47:08.563095"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.565053' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.566152' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.567411' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.568005' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:47:08.570967"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:47:08.570967"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.571916' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.572425' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.573538' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.574053' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.578099' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.578703' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.579283' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:47:08.639584"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.640551' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.641105' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.641641' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.642287' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.642726' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:47:08.647486"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:47:08.647486"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-5059' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:08.652611' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:47:08.658155' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5313' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5313' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:47:08.662745"], ["created_at", "2014-12-02 22:47:08.666395"], ["description", "Nulla animi saepe officia necessitatibus non delectus dolor. Aut consequuntur quia ab vel consectetur quis nihil aut. Ipsam accusantium soluta temporibus autem ratione suscipit cupiditate. Optio blanditiis exercitationem voluptatem corrupti est est. Omnis optio aut eum ducimus omnis quo expedita ab."], ["name", "Product #3 - 5313"], ["shipping_category_id", 1], ["slug", "product-3-5313"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:47:08.666395"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 22:47:08.668501"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.670355' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.671405' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.672655' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.673185' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:47:08.675986"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:47:08.675986"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.676915' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.677411' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.678471' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.678945' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.682876' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.683439' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.683925' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:47:08.685500"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.686169' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.686617' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.687081' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.687632' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.688071' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:47:08.692761"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:47:08.692761"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5313' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:08.698553' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:47:08.704125' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-1067' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-1067' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:47:08.711342"], ["created_at", "2014-12-02 22:47:08.714977"], ["description", "Tempora eligendi modi id laborum perspiciatis culpa assumenda odit. Voluptas itaque ea mollitia recusandae beatae nam id. Quisquam cum sint sit accusamus voluptas a sed.\nExercitationem perspiciatis sed ipsa quae ut. Voluptatem aut totam sunt autem qui. Iste non voluptate cupiditate est. Ex provident temporibus magnam consequatur itaque non commodi consectetur. Et molestiae est ex quo sed iure ipsam.\nMagnam perspiciatis ab explicabo rerum. Deserunt ducimus dolorem perferendis fuga ut aut alias. Et ex minima deserunt commodi. Earum sed ea officia molestiae. Harum alias ea dolores et est minima.\nNulla animi laborum dignissimos eos ut repellendus possimus officia. Dolorem laborum quidem sunt quam ex dignissimos voluptatem est. Nam molestiae reprehenderit voluptatum et. Id vel consequatur commodi porro.\nIusto officiis aut at ut vitae consequatur deleniti. Qui consequatur quia nulla totam maxime porro aliquid esse. Asperiores alias voluptates repellat optio voluptate voluptatem quidem. Eos dolorem dolorum eius nam ea consequatur quod. Aut modi libero assumenda nam quia consequatur."], ["name", "Product #4 - 1067"], ["shipping_category_id", 1], ["slug", "product-4-1067"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:47:08.714977"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 22:47:08.717069"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.718928' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.719985' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.721215' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.721747' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:47:08.724582"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:47:08.724582"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.725454' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.725920' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.727039' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.727563' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.731565' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.732039' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.732557' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:47:08.734204"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.734875' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.735327' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.735794' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.736351' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.736800' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:47:08.741466"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:47:08.741466"], ["variant_id", 4]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-1067' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:08.751418' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:47:08.757974' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-3043' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-3043' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:47:08.764835"], ["created_at", "2014-12-02 22:47:08.768676"], ["description", "Excepturi et et molestias iure aspernatur eveniet. Rerum sint omnis ut iste officiis quod. Nam aspernatur et ut qui animi id laboriosam dolorem. Dolorum eveniet perspiciatis est dignissimos quia. Pariatur facilis id iste et ratione.\nNeque recusandae ex eos illo minima error est eum. Quis ut ut consequatur molestiae aliquid id qui nulla. Sint aut consequatur esse ex similique aut.\nAb sunt nam sed deserunt fuga tempora. Quae non quisquam dolores enim atque qui molestias. Rem expedita exercitationem quaerat assumenda. Aperiam consequatur alias est eius blanditiis. Est vero blanditiis nulla voluptatem rerum fuga.\nNostrum et sint occaecati et velit tenetur voluptatem veritatis. Eum sint fugiat et quaerat omnis sit. Sed dignissimos doloremque assumenda eos natus sint. Et dolores dolores ad et minima.\nAut sunt facilis voluptatum et quisquam aut. Dolore quae nisi doloribus eos voluptatem enim ea. Fugit a distinctio unde officia maxime quis."], ["name", "Product #5 - 3043"], ["shipping_category_id", 1], ["slug", "product-5-3043"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:47:08.768676"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 22:47:08.770924"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.772789' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.773828' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.775040' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.775561' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:47:08.778441"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:47:08.778441"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.779334' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.779843' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.780916' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.781437' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.785261' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.785780' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.786328' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:47:08.787874"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.788546' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.789001' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.789511' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.790063' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.790505' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:47:08.795148"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:47:08.795148"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-3043' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:08.800819' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:47:08.806385' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:47:08.824238"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:47:08.824238"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:47:08.827915"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:47:08.827915"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.828850' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.829994' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.831272' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.831877' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:47:08.834391"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:47:08.834391"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.835231' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.836268' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.837478' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.837959' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:47:08.840375"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:47:08.840375"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.841253' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.842343' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.843545' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.844097' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:47:08.846836"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:47:08.846836"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.847763' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.848849' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.850023' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.850539' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:47:08.852901"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:47:08.852901"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:47:08.853780' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:47:08.854786' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:47:08.856025' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:47:08.856575' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H86414717706%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:47:08.862844"], ["number", "H86414717706"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:47:08.862844"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:08.863996' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:47:08.870243' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:47:08.888927"], ["description", "Est corrupti officiis assumenda optio."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:47:08.888927"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:08.892002"], ["updated_at", "2014-12-02 22:47:08.892002"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:47:08.936153"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:47:08.936153"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:47:08.937195"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:47:08.937195"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:47:08.938952"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:47:08.938952"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:47:08.953739"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:47:08.953739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:08.969144"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:47:08.969144"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:47:08.970653' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:08.971292' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:08.972752"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:47:08.972752"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:47:08.973402' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:08.974255' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:08.976328"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:47:08.976328"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:47:08.977039' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:08.977504' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:08.978780"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:47:08.978780"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:47:08.979409' WHERE "spree_shipments"."id" = 1 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:08.979839' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:08.981320"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:47:08.981320"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:47:08.981961' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:08.982401' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:47:09.000494' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:09.039674"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:47:09.039674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:47:09.043821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:09.045554' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:47:09.046177' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:09.082923"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:47:09.082923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:09.095695"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:47:09.095695"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '22M3PX8J' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:47:09.107644"], ["identifier", "22M3PX8J"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:47:09.107644"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:09.110557' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-315531' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-315531"], ["updated_at", "2014-12-02 22:47:09.111856"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:09.123347"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:47:09.123347"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:47:09.125423' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:09.142736"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:47:09.142736"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:47:09.145704"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:09.147231' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:47:09.149982' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:09.151754"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:47:09.151754"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:47:09.152533' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = '22M3PX8J' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 22:47:09.160385"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:09.161761' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:09.167993"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:47:09.167993"], ["user_id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:47:09.170654' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:09.189903"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:47:09.189903"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 22:47:09.192869"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:09.194475' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:47:09.196612' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:09.198215"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:47:09.198215"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:47:09.199014' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:09.202366"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:47:09.202366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:09.211636"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:47:09.211636"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:47:09.212601' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:09.229703"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:47:09.229703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 22:47:09.232925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:47:09.234571' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:47:09.236685' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:47:09.238358"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:47:09.238358"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 22:47:09.239187' WHERE "spree_orders"."id" = 1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (58.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'reba_hettinger@cremin.name' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175604991061xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:48:19.572668"], ["email", "reba_hettinger@cremin.name"], ["encrypted_password", "6e1075000309ec9f49a86acd2f971bb07439b82fa7d71d9fc75851d22148468b0abe0d3bb37acdca38b8ff67072b98d2927f55158459432f9acf47fe62454ce1"], ["login", "reba_hettinger@cremin.name"], ["password_salt", "2ryavLKuzreCzRf9R9AX"], ["updated_at", "2014-12-02 22:48:19.572668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:48:19.608189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:48:19.618484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:48:19.628910"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:48:19.628910"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:48:19.651654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:48:19.653227"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:48:19.653227"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R426896394' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R426896394%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R426896394' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '6Xbk20I_3WBrM2vy_-JQIg' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:48:19.671717"], ["currency", "USD"], ["email", "reba_hettinger@cremin.name"], ["guest_token", "6Xbk20I_3WBrM2vy_-JQIg"], ["number", "R426896394"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:48:19.671717"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:48:19.730892"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 22:48:19.730892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 848167' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:48:19.741944"], ["description", "Vitae sed et qui reiciendis cumque porro."], ["name", "TaxCategory - 848167"], ["updated_at", "2014-12-02 22:48:19.741944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:48:19.767384"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:48:19.767384"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-5365' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-5365' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:48:19.726450"], ["created_at", "2014-12-02 22:48:19.772832"], ["description", "Non nobis amet nisi libero nostrum est labore. In possimus et beatae sit. Dolores dolore consectetur iusto officia. Dolorum et fugit voluptatibus est sed aut omnis.\nUt doloribus sed sunt iure similique. Omnis et accusantium omnis sint modi ratione sunt repudiandae. Adipisci quia voluptate voluptatem delectus aut et.\nDoloremque optio aut aut ex minima assumenda. Aut qui numquam nesciunt voluptate accusamus. Blanditiis voluptatem veritatis quo vel in consequatur harum ipsa. Corporis aperiam labore fuga pariatur et modi. Eveniet sed dolores odit tempore ipsam quidem labore.\nMolestiae qui nihil vitae deserunt expedita. Id quisquam quidem perferendis laudantium ea excepturi id. Quas dolor ullam non ut modi."], ["name", "Product #1 - 5365"], ["shipping_category_id", 1], ["slug", "product-1-5365"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:19.772832"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 22:48:19.775621"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:19.783500' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:19.784783' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:19.799122' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:19.800387' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:19.823790"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:48:19.823790"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:19.825114' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:19.825728' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:19.826998' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:19.827537' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:19.838636' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:19.839311' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:19.839890' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:48:19.841628"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:19.842839' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:19.843371' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:19.843896' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:19.844449' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:19.844927' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:48:19.868380"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:19.868380"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-5365' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:19.885919' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:48:19.896018' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-5961' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-5961' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:48:19.902685"], ["created_at", "2014-12-02 22:48:19.906594"], ["description", "Doloribus qui cupiditate ad voluptas ullam excepturi accusantium voluptate. Mollitia commodi hic eveniet quos vitae est. Adipisci deleniti neque ipsum cupiditate dolore est et quibusdam. Adipisci molestiae ipsum nemo voluptatem quasi. Possimus occaecati sapiente cumque numquam et.\nEum sint et quia ipsum occaecati illo unde autem. Qui ut et cum quia doloribus ipsa. Modi autem nostrum molestiae porro neque. Sed autem eos qui et eius. Ab exercitationem voluptate necessitatibus voluptatum consequatur eaque autem.\nEt modi tempora tenetur praesentium at. Eos iste et deleniti laudantium facilis rerum. Dolorum voluptates eaque illo dolor molestiae.\nConsequatur autem iusto facilis enim. Qui eligendi earum asperiores incidunt necessitatibus. Eos eaque odit nesciunt et temporibus amet."], ["name", "Product #2 - 5961"], ["shipping_category_id", 1], ["slug", "product-2-5961"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:19.906594"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 22:48:19.908799"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:19.910861' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:19.912081' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:19.965572' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:19.966198' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:19.969366"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:48:19.969366"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:19.970336' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:19.970913' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:19.972057' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:19.972547' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:19.976645' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:19.977251' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:19.977767' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:48:19.979474"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:19.980189' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:19.980700' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:19.981162' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:19.981724' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:19.982160' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:48:19.986903"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:19.986903"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-5961' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:19.992778' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:48:19.998299' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-8088' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-8088' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:48:20.004895"], ["created_at", "2014-12-02 22:48:20.008569"], ["description", "Quae aut repellendus nemo qui culpa dignissimos. Ipsum placeat hic aut explicabo animi autem sunt repellat. Sed dolores accusantium molestias voluptatem repellat animi. Non assumenda necessitatibus omnis adipisci asperiores. Porro numquam consequatur modi tempore consequatur laborum fugit est.\nLaborum quos aut cumque est. Nemo ipsum architecto vitae tempore quia delectus. Similique laborum vel ut sunt. Quo eveniet ut incidunt est vero quis cupiditate in.\nEt odit iure provident omnis. Voluptatum sed fugiat numquam quis. Suscipit rerum consequuntur sit sint ipsum in incidunt. Commodi nam inventore ratione ex atque eius libero. Ut qui nihil ut est delectus voluptatem.\nMollitia ipsa sed rem praesentium autem. Debitis maxime ut tempore saepe. Aliquid odit alias et consequatur laboriosam. Ut voluptates occaecati et sed dolorem atque."], ["name", "Product #3 - 8088"], ["shipping_category_id", 1], ["slug", "product-3-8088"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.008569"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 22:48:20.010751"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.012597' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.013652' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.014879' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.015421' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.018321"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:48:20.018321"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.019232' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.019756' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.020892' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.021410' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.025312' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.025885' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.026406' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:48:20.028218"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.028883' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.029365' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.029908' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.030534' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.030995' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:48:20.037326"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.037326"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-8088' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.046667' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:48:20.052796' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-1732' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-1732' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:48:20.059912"], ["created_at", "2014-12-02 22:48:20.063693"], ["description", "Debitis at suscipit id quibusdam. Est odit sint sint rerum vitae. Nostrum cum quos dignissimos voluptatibus quo et commodi. Eos nihil fuga corporis sint amet. Aliquid hic sint dolor autem quaerat.\nDolor sunt doloremque nobis qui enim aspernatur. Aut quisquam sapiente necessitatibus nisi est beatae at. Quasi molestias aut laborum aut beatae pariatur voluptatum.\nPlaceat dolore quis non ipsam cupiditate sed atque optio. Deserunt et eius reprehenderit facere iure iste necessitatibus qui. Quo ipsa ut minus corrupti reprehenderit. Minus eius optio provident et consequatur nihil labore iste.\nMagnam saepe consequatur modi eveniet aut. Aut non et ut facere tempora temporibus natus sint. Est temporibus similique esse ut quisquam.\nTempore molestias et ad accusamus nam. Accusamus aliquid doloremque eos voluptas ex aut sit veniam. Nam soluta modi asperiores iste aperiam. Sit labore qui perferendis cumque voluptatem aut pariatur."], ["name", "Product #4 - 1732"], ["shipping_category_id", 1], ["slug", "product-4-1732"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.063693"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 22:48:20.065803"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.067631' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.068667' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.069871' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.070410' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.073261"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:48:20.073261"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.074183' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.074711' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.075859' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.076396' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.080279' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.080807' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.081290' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:48:20.082879"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.083552' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.084084' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.084540' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.085101' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.085573' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:48:20.090286"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.090286"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-1732' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.096164' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:48:20.102694' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-5772' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-5772' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:48:20.108471"], ["created_at", "2014-12-02 22:48:20.112373"], ["description", "Error autem aut quia optio. Perferendis et nihil sint fugiat tenetur exercitationem aut. In cumque laboriosam aperiam et sit aut. Alias consequatur aut ratione qui expedita et.\nQuidem est nihil illum rerum reiciendis. Quod deserunt qui voluptate amet eos corrupti. Nesciunt harum sed asperiores corrupti voluptas perspiciatis.\nVeniam non alias sit voluptatem. Debitis asperiores quisquam aut sequi quo. Culpa assumenda delectus iusto fuga similique ducimus ab. Et repellat natus id molestiae sunt."], ["name", "Product #5 - 5772"], ["shipping_category_id", 1], ["slug", "product-5-5772"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.112373"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 22:48:20.114569"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.116409' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.117436' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.118618' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.119142' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.122284"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:48:20.122284"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.123282' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.123882' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.125236' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.125784' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.130285' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.130867' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.131381' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:48:20.133142"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.133901' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.134377' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.134882' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.135534' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.136050' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:48:20.141535"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.141535"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-5772' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.147216' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:48:20.152745' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:48:20.169843"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:48:20.169843"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.173414"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:48:20.173414"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.174386' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.175596' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.176838' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.177384' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.179880"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:48:20.179880"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.180687' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.181700' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.182838' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.183311' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.185649"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:48:20.185649"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.186506' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.187507' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.188637' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.189184' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.191903"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:48:20.191903"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.192799' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.193860' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.194985' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.195444' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.197825"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:48:20.197825"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.198656' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.199651' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.200812' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.201382' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H05571043012%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:48:20.207294"], ["number", "H05571043012"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:48:20.207294"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.208419' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.2ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:48:20.216671' WHERE "spree_shipments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.239452"], ["description", "Enim consequatur aut vero et."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:48:20.239452"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.242641"], ["updated_at", "2014-12-02 22:48:20.242641"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:48:20.287689"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:48:20.287689"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:48:20.288748"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:48:20.288748"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.290461"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:48:20.290461"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:48:20.305249"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:48:20.305249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.319861"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:48:20.319861"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:48:20.321024' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.321671' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.323190"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:48:20.323190"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:48:20.323854' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.324313' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.325828"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:48:20.325828"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:48:20.326522' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.326968' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.328271"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:48:20.328271"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:48:20.328926' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.329361' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.330742"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:48:20.330742"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:48:20.331422' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.331882' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:48:20.348408' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.385273"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:48:20.385273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:48:20.389005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.390849' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:48:20.391518' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.426832"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:48:20.426832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.439656"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:48:20.439656"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'NJLSTGFP' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:48:20.450995"], ["identifier", "NJLSTGFP"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:48:20.450995"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.453852' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-445353' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-445353"], ["updated_at", "2014-12-02 22:48:20.455149"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.466089"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:48:20.466089"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:48:20.468205' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.485532"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:48:20.485532"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:48:20.488570"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.490134' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:48:20.492584' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.494363"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:48:20.494363"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:48:20.495183' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'NJLSTGFP' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 22:48:20.503174"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.504490' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.510765"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:48:20.510765"], ["user_id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:48:20.513788' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.532849"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:48:20.532849"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 22:48:20.535899"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.537588' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:48:20.540036' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.541718"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:48:20.541718"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:48:20.542527' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.546006"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:48:20.546006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.3ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.555580"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:48:20.555580"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:48:20.556535' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.574932"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:48:20.574932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 22:48:20.578664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.580435' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:48:20.582619' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.584312"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:48:20.584312"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 22:48:20.585161' WHERE "spree_orders"."id" = 1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (58.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'walker.donnelly@thompsonmarvin.info' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175605003712xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:48:20.657241"], ["email", "walker.donnelly@thompsonmarvin.info"], ["encrypted_password", "9eaeaaf2db0a49bfb73e1e062f6b6ae98676a1926c18497eb77d93ddd953a4ef0c6b9f5486de081556987ceec9f708fdb7e8ce193321a210fd4747fdd951510c"], ["login", "walker.donnelly@thompsonmarvin.info"], ["password_salt", "wdpgxPyxk7sfwQuoqzmy"], ["updated_at", "2014-12-02 22:48:20.657241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:48:20.660588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:48:20.661876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:48:20.663256"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:48:20.663256"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:48:20.665783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:48:20.667066"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:48:20.667066"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R040479359' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R040479359%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R040479359' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ZW91uRGD-xIuJsj38WYyrA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:48:20.673181"], ["currency", "USD"], ["email", "walker.donnelly@thompsonmarvin.info"], ["guest_token", "ZW91uRGD-xIuJsj38WYyrA"], ["number", "R040479359"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:48:20.673181"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:48:20.681621"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 22:48:20.681621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 307165' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.684317"], ["description", "Soluta ut iusto pariatur accusantium."], ["name", "TaxCategory - 307165"], ["updated_at", "2014-12-02 22:48:20.684317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:48:20.687675"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:48:20.687675"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-5129' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-5129' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:48:20.680461"], ["created_at", "2014-12-02 22:48:20.691994"], ["description", "Id nulla iure enim aliquam est et. Eos ullam totam quam fugit modi aliquam libero voluptatem. Libero cupiditate nihil illum facere iure.\nVeniam consectetur tempora in odio fuga et blanditiis. Est qui velit non quisquam et id doloribus laborum. Omnis numquam consequuntur delectus quia earum iure magni.\nNesciunt ut architecto quo expedita provident. Amet nulla officia qui reprehenderit dolorem ut. Beatae fugiat officia accusamus cupiditate quo iusto. Consectetur soluta rerum cumque iusto quia. Corrupti sint esse voluptas iure.\nCulpa sint est eaque libero eum dignissimos facere. Odio eaque cum vitae architecto omnis dolor impedit nostrum. Autem deleniti id quia in. Atque aut nostrum ratione alias."], ["name", "Product #6 - 5129"], ["shipping_category_id", 1], ["slug", "product-6-5129"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.691994"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-12-02 22:48:20.694311"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.696366' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.697448' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.698709' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.699299' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.702219"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:48:20.702219"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.703214' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.703718' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.704844' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.705330' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.709390' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.709965' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.710495' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:48:20.712024"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.712711' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.713183' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.713627' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.714177' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.714636' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:48:20.719542"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.719542"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-5129' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.725358' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:48:20.730971' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-1461' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-1461' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:48:20.735258"], ["created_at", "2014-12-02 22:48:20.738992"], ["description", "Incidunt sapiente consequuntur nihil cumque. Cupiditate animi blanditiis repellat ut dignissimos laborum occaecati. Rerum fugiat dignissimos saepe et facilis est nemo excepturi."], ["name", "Product #7 - 1461"], ["shipping_category_id", 1], ["slug", "product-7-1461"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.738992"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-12-02 22:48:20.741074"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.743074' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.744208' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.745454' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.745996' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.748907"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:48:20.748907"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.749899' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.750500' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.751650' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.752138' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.756084' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.756633' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.757118' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:48:20.758749"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.759394' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.759904' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.760359' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.760913' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.761342' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:48:20.766028"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.766028"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-1461' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.771693' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:48:20.777767' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-7439' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-7439' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:48:20.784595"], ["created_at", "2014-12-02 22:48:20.788442"], ["description", "Molestias ipsum quidem non qui omnis et modi. Sed repellat odit non quia deleniti deserunt. Soluta incidunt enim nam iste maiores provident. Repudiandae dolores aut saepe veniam temporibus.\nVoluptatem quod qui sequi suscipit. Autem cum non sit ipsam. Fuga sunt enim quis sit neque consequatur voluptas. Rem amet vel quas consequatur eos quod.\nAperiam sunt odio veritatis quia minus saepe molestiae provident. Quibusdam quasi saepe accusantium error esse autem. Aut dolorem quo modi molestiae officiis velit quia. Fugit qui eius nostrum molestias earum dolor perferendis dolorum. Molestiae iure ex aut nesciunt corrupti ut ut quaerat.\nA vitae aut qui autem inventore voluptatem occaecati. Harum minus ut consequatur voluptatem voluptas omnis cumque. Ea sed voluptatum molestiae est rerum praesentium."], ["name", "Product #8 - 7439"], ["shipping_category_id", 1], ["slug", "product-8-7439"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.788442"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-12-02 22:48:20.790650"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.792688' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.793826' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.795499' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.796113' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.799060"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:48:20.799060"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.799999' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.800511' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.801653' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.802139' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.806135' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.806685' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.807193' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:48:20.808793"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.809446' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.809932' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.810386' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.810951' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.811424' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:48:20.816720"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.816720"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-7439' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.822447' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:48:20.828120' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-3116' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-3116' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:48:20.834429"], ["created_at", "2014-12-02 22:48:20.838571"], ["description", "Iure consequatur veniam animi magni excepturi qui repellendus. Voluptatem consequatur omnis suscipit ipsam atque impedit enim. Sit quo nesciunt iusto perspiciatis. Debitis vero adipisci tenetur molestiae et id. Illo quia harum accusantium sed.\nEt nulla deleniti tempora alias cupiditate ipsam sunt nam. Eligendi id quaerat earum dignissimos. Esse corrupti quae nesciunt aut. Omnis placeat quidem aut atque laudantium itaque.\nSit cum blanditiis nisi sed. Natus cupiditate exercitationem magnam libero voluptas ea optio et. Molestias et ea delectus velit pariatur. Aut ab provident delectus quia qui rerum. Enim provident sed et sequi ipsa aliquam unde."], ["name", "Product #9 - 3116"], ["shipping_category_id", 1], ["slug", "product-9-3116"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.838571"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-12-02 22:48:20.840727"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.842590' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.843644' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.844906' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.845483' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.848536"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:48:20.848536"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.849473' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.850046' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.851650' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.852158' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.856327' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.856883' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.857393' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:48:20.859267"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.859933' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.860428' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.860939' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.861584' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.862116' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:48:20.867340"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.867340"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-3116' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.889494' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:48:20.895464' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-8460' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-8460' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:48:20.901549"], ["created_at", "2014-12-02 22:48:20.905347"], ["description", "Nihil aut consectetur eum maxime dolorem repellat unde. Quam ad eos accusamus fugiat iure illum. Ducimus tempora odit est eos sunt autem.\nLaudantium aut et nam delectus corrupti. Reprehenderit maiores fugiat nesciunt aut impedit. Aut repudiandae et quia ut harum explicabo natus.\nRepellendus odit tenetur possimus ut ipsum quaerat. Incidunt quasi eos qui error quis et nihil. Ea odio nobis et magni dolores voluptates magnam.\nNumquam ipsam sint ut assumenda minima. Ut fugiat neque non cupiditate aut. Deserunt ad quo qui autem possimus non. Magnam molestiae perferendis est rerum laborum. Cumque accusamus voluptatem sunt non et qui veniam cupiditate."], ["name", "Product #10 - 8460"], ["shipping_category_id", 1], ["slug", "product-10-8460"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.905347"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-12-02 22:48:20.907508"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.909408' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.910448' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.911767' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.912574' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.915479"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:48:20.915479"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.916361' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.916889' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.918053' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.918549' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.922438' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.923001' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.923510' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:48:20.925100"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.925728' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.926210' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.926663' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.927226' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.927672' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:48:20.932827"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:48:20.932827"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-8460' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.939040' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:48:20.944688' WHERE "spree_line_items"."id" = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:48:20.949527"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:48:20.949527"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.953089"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:48:20.953089"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.954005' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.955125' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.956394' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.956936' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.959447"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:48:20.959447"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.960282' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.961294' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.962427' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.962923' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.965363"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:48:20.965363"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.966214' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.967201' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.968340' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.969628' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.974870"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:48:20.974870"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.976265' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.977923' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.979690' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.980362' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:48:20.983385"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:48:20.983385"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:48:20.984300' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:48:20.985425' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:48:20.986636' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:48:20.987108' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H56635806602%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:48:20.989641"], ["number", "H56635806602"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:48:20.989641"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:20.990497' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:48:20.993427' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.997090"], ["description", "Ut quia provident qui eos quod soluta."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:48:20.997090"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:20.998765"], ["updated_at", "2014-12-02 22:48:20.998765"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:48:21.007985"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:48:21.007985"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:48:21.008799"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:48:21.008799"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:48:21.010137"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:48:21.010137"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:48:21.012855"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:48:21.012855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:21.016388"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:48:21.016388"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:48:21.017138' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:21.017704' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:21.019052"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:48:21.019052"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:48:21.019681' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:21.020126' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:21.021342"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:48:21.021342"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:48:21.021958' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:21.022381' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:21.023605"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:48:21.023605"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:48:21.024229' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:21.024650' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:21.025886"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:48:21.025886"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:48:21.026518' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:21.026918' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:48:21.035227' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:21.060528"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:48:21.060528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:48:21.063825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:21.065445' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:48:21.066062' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:21.069585"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:48:21.069585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:21.071585"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:48:21.071585"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XF3GQWZF' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:48:21.073218"], ["identifier", "XF3GQWZF"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:48:21.073218"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:21.075401' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-143021' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-143021"], ["updated_at", "2014-12-02 22:48:21.076541"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:21.079457"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:48:21.079457"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:48:21.081160' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:21.099699"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:48:21.099699"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:48:21.102848"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:21.104386' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:48:21.106963' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:21.108889"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:48:21.108889"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:48:21.109799' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XF3GQWZF' ORDER BY spree_payments.created_at LIMIT 1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:48:21.125602' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:48:21.144660"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:48:21.144660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 22:48:21.147947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:48:21.149809' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:48:21.152215' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 22:48:21.153320' WHERE "spree_orders"."id" = 1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (4.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carmine@hoeger.co.uk' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417560780211xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:53:00.783506"], ["email", "carmine@hoeger.co.uk"], ["encrypted_password", "bfbe08c981b2083f3c95b80ded8dc38dbe912f59ff102722ad8e131c17fbd323d7793314ac2205ab7ff8394bf65282c9eda669aa9d38df384b8649fa836e31b4"], ["login", "carmine@hoeger.co.uk"], ["password_salt", "9xXsyJTxqaCY2mQzzJnv"], ["updated_at", "2014-12-02 22:53:00.783506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:53:00.823561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:53:00.830761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:53:00.840061"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:53:00.840061"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:53:00.861839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:53:00.863432"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:53:00.863432"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R908481824' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R908481824%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R908481824' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'HJWOq5JK5grDO4NUdACNzQ' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:53:00.881480"], ["currency", "USD"], ["email", "carmine@hoeger.co.uk"], ["guest_token", "HJWOq5JK5grDO4NUdACNzQ"], ["number", "R908481824"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:53:00.881480"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:53:00.937737"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 22:53:00.937737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 700164' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:53:00.949683"], ["description", "Quae doloribus eum aut repellendus autem est voluptatem."], ["name", "TaxCategory - 700164"], ["updated_at", "2014-12-02 22:53:00.949683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:53:00.980194"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:53:00.980194"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-952' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-952' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:00.933115"], ["created_at", "2014-12-02 22:53:00.985694"], ["description", "Libero tempore ut excepturi delectus vitae in hic. Odio repellendus aspernatur at ex atque eos sit repellat. Architecto voluptas sapiente sed dolor nihil id.\nConsequatur asperiores sunt iusto dicta delectus quod et. Possimus reiciendis eius eos autem vel velit maxime in. Sint rerum numquam et ut provident id. Enim exercitationem praesentium eligendi cupiditate et eos tempora. Enim iusto quibusdam error velit culpa fugiat dolorem."], ["name", "Product #1 - 952"], ["shipping_category_id", 1], ["slug", "product-1-952"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:00.985694"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 22:53:00.988647"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:00.996943' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:00.998290' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.012967' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.014281' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:01.037343"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:01.037343"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.038599' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.039190' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.040431' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.040961' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.2ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.053511' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.054379' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.055096' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:01.057227"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.058834' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.059416' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.059961' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.060592' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.061075' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:01.081021"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.081021"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-952' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.099187' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:01.109607' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-5923' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-5923' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:01.116711"], ["created_at", "2014-12-02 22:53:01.120940"], ["description", "Adipisci quae atque eum explicabo quo et aliquam beatae. Inventore maiores impedit iusto pariatur et. In veritatis quia delectus facilis nostrum perferendis. Magnam sit facere veniam vel voluptatem.\nQuasi occaecati quaerat eum molestias aliquam et ea. Voluptatem enim et non totam praesentium sint alias voluptate. Non delectus omnis doloremque fugit id. Dolor omnis odit veritatis et quaerat aut. Eos facilis sint ipsum iusto non repellat modi assumenda.\nVelit quia eos nulla accusantium labore consequuntur molestias. Soluta numquam minus quam ratione modi. Ut temporibus tenetur deleniti voluptates nam dolore quasi impedit.\nLaudantium omnis nihil quia qui dicta. Provident quo perferendis culpa distinctio vitae est dolor. Ab dolore quisquam rerum quia qui.\nExercitationem at illum eius fuga est explicabo. Et ea sed voluptate dolorum occaecati. Et dolorum asperiores hic possimus reiciendis qui tempora a."], ["name", "Product #2 - 5923"], ["shipping_category_id", 1], ["slug", "product-2-5923"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.120940"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 22:53:01.123313"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.125501' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.126639' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.128022' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.128638' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:01.131890"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:01.131890"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.132896' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.133443' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.134682' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.135240' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.139287' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.139831' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.140416' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:01.203645"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.204525' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.205070' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.205589' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.206309' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.206814' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:01.212060"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.212060"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-5923' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.217563' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:01.223524' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-6025' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-6025' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:01.232703"], ["created_at", "2014-12-02 22:53:01.237933"], ["description", "Iusto voluptas natus error minima facere. Occaecati ratione iste voluptas dolor voluptatem explicabo architecto qui. Sit ut sint error cum animi deserunt aliquam. Et blanditiis quia corrupti dolor eos voluptates sunt."], ["name", "Product #3 - 6025"], ["shipping_category_id", 1], ["slug", "product-3-6025"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.237933"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 22:53:01.240002"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.241916' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.243018' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.245891' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.247067' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:01.252159"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:01.252159"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.253553' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.254305' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.255794' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.256543' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.260883' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.261517' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.262111' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:01.263870"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.264572' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.265035' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.265574' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.266208' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.266708' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:01.273059"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.273059"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-6025' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.282926' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:01.289449' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-8207' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-8207' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:01.296060"], ["created_at", "2014-12-02 22:53:01.299780"], ["description", "Rerum sunt est sapiente omnis totam non. Vitae nostrum facere placeat debitis et odit sit dolores. Doloremque illo totam dicta mollitia quibusdam aut. Neque et quisquam modi vitae. Sunt illum dolores facere omnis praesentium.\nOdio necessitatibus impedit veritatis dolor dolorum maxime in distinctio. Culpa maxime voluptatum sed praesentium cum voluptas occaecati. Laudantium eaque laborum est nesciunt nemo sapiente repellat. Sint nemo sit excepturi quod laudantium sit ipsa. Omnis quos numquam sapiente et aut.\nQuam doloremque repellendus nam molestiae ut consequatur qui aut. Velit sed et aut modi beatae voluptas amet. Repudiandae at quisquam et facere perferendis. Expedita assumenda libero neque quis modi.\nVero rem maxime qui reprehenderit. Ut voluptatibus dolorem mollitia commodi consectetur accusamus ipsum. Ut nihil dolores reiciendis similique autem cumque facere est. Perspiciatis soluta adipisci ex quisquam eligendi delectus asperiores. Eaque earum nostrum nesciunt velit quia."], ["name", "Product #4 - 8207"], ["shipping_category_id", 1], ["slug", "product-4-8207"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.299780"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 22:53:01.301950"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.303878' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.304977' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.306208' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.306759' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:01.310042"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:01.310042"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.310941' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.311425' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.312642' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.313124' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.317092' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.317624' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.318190' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:01.320068"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.320747' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.321203' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.321686' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.322259' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.322760' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:01.327629"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.327629"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-8207' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.337615' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:01.344297' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-4585' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-4585' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:01.349605"], ["created_at", "2014-12-02 22:53:01.353521"], ["description", "Velit non et odio eius voluptatibus esse. Quo veritatis illum et voluptas. Minus debitis eaque exercitationem non. Occaecati eligendi reiciendis sunt itaque quasi dolorum est. Sit inventore beatae omnis non nisi nobis.\nVel ut et quibusdam voluptas. Dolorum ut tempora reprehenderit eaque. Natus veritatis consequatur soluta nostrum."], ["name", "Product #5 - 4585"], ["shipping_category_id", 1], ["slug", "product-5-4585"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.353521"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 22:53:01.355852"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.357782' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.358880' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.360150' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.360682' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:01.363582"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:01.363582"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.364489' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.365007' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.366207' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.366748' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.370834' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.371390' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.371933' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:01.373593"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.374304' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.374828' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.375329' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.375904' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.376392' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:01.381349"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.381349"], ["variant_id", 5]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-4585' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.392171' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:01.398480' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:53:01.416364"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:53:01.416364"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:01.420117"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:01.420117"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.421134' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.422372' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.423715' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.424286' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:01.426988"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:01.426988"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.427880' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.429046' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.430268' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.430794' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:01.433303"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:01.433303"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.434176' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.435231' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.436470' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.437061' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:01.439835"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:01.439835"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.440664' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.441760' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.442975' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.443509' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:01.445939"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:01.445939"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.446833' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.447861' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.450855' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.451848' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H16032706344%') SQL (0.5ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:53:01.463415"], ["number", "H16032706344"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:53:01.463415"]] SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.465725' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:01.476373' WHERE "spree_shipments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.495098"], ["description", "Eos aspernatur tempora molestiae mollitia veniam et."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:53:01.495098"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.498206"], ["updated_at", "2014-12-02 22:53:01.498206"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:53:01.543586"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:53:01.543586"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:53:01.544676"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:53:01.544676"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.546493"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:01.546493"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:53:01.561154"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:01.561154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.575842"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:01.575842"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:01.577008' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.577657' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.579115"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:01.579115"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:01.579770' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.580230' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.581509"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:01.581509"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:01.582257' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.582686' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.584102"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:01.584102"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:01.584763' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.585257' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.586583"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:01.586583"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:01.587256' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.587692' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:53:01.609791' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.647142"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:01.647142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:53:01.650792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.652451' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:53:01.653048' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.688521"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:53:01.688521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.702253"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:53:01.702253"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '9H7T3XN2' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:53:01.714195"], ["identifier", "9H7T3XN2"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:53:01.714195"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.717203' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-331255' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-331255"], ["updated_at", "2014-12-02 22:53:01.718550"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.728947"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:53:01.728947"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:53:01.731005' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.748822"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:01.748822"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:53:01.751884"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.753419' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:53:01.755733' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.757546"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:53:01.757546"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:53:01.758306' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = '9H7T3XN2' ORDER BY spree_payments.created_at LIMIT 1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:53:01.777418' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.796951"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:01.796951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 22:53:01.800267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.802192' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:53:01.804578' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 22:53:01.805649' WHERE "spree_orders"."id" = 1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (4.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'chaz@mcdermottconsidine.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417560781382xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:53:01.819666"], ["email", "chaz@mcdermottconsidine.us"], ["encrypted_password", "a27729e3560761ed3c20b91fc9dab2ec59959f5112283fe4fde352f930e9526bd7444bb4f56eb69c4cbac9636cf69f3524cb43087eeecc143b8c68513f1008a0"], ["login", "chaz@mcdermottconsidine.us"], ["password_salt", "84tgJPyaJiHtx1jxVWfz"], ["updated_at", "2014-12-02 22:53:01.819666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:53:01.822791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:53:01.824165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:53:01.825685"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:53:01.825685"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:53:01.828200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:53:01.829566"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:53:01.829566"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R909552974' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R909552974%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R909552974' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-C4fx2OxJ50cdlzrI9Fs8w' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:53:01.836215"], ["currency", "USD"], ["email", "chaz@mcdermottconsidine.us"], ["guest_token", "-C4fx2OxJ50cdlzrI9Fs8w"], ["number", "R909552974"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:53:01.836215"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:53:01.843123"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 22:53:01.843123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 804587' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:53:01.846000"], ["description", "Voluptatum nisi quam aut illum laborum aut beatae."], ["name", "TaxCategory - 804587"], ["updated_at", "2014-12-02 22:53:01.846000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:53:01.849617"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:53:01.849617"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-8531' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-8531' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:01.842057"], ["created_at", "2014-12-02 22:53:01.853686"], ["description", "Velit quia vel itaque doloremque fugiat. Distinctio et id aut itaque ab. Molestias sint sit doloremque atque aliquam dolorem ullam officiis. Quas quo at ratione debitis. Hic quasi expedita est deserunt placeat nobis dignissimos accusamus."], ["name", "Product #6 - 8531"], ["shipping_category_id", 1], ["slug", "product-6-8531"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.853686"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-12-02 22:53:01.855973"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.857979' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.859070' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.860328' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.860915' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:01.864010"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:01.864010"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.865243' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.865899' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.867200' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.867762' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.872157' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.872693' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.873239' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:01.874874"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.875559' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.876015' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.876478' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.877015' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.877486' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:01.882178"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.882178"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-8531' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.888046' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:01.893779' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-4751' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-4751' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:01.898785"], ["created_at", "2014-12-02 22:53:01.902542"], ["description", "Sunt id ratione placeat ut atque facere. Deleniti repellat vel ratione corporis perspiciatis consequatur. Ut fuga aliquid id voluptas qui.\nVeritatis modi est sit et. In dignissimos autem provident sit voluptatem. Ut enim vitae repudiandae sapiente nemo nisi aliquid esse. Totam qui perspiciatis similique ullam doloribus autem."], ["name", "Product #7 - 4751"], ["shipping_category_id", 1], ["slug", "product-7-4751"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.902542"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-12-02 22:53:01.904638"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.906607' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.907673' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.908913' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.909484' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:01.912423"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:01.912423"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.913329' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.913861' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.914985' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.915531' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.919458' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.920016' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.920542' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:01.922199"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.922861' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.923348' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.923824' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.924399' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.924842' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:01.929640"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.929640"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-4751' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.935584' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:01.941222' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-7554' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-7554' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:01.947008"], ["created_at", "2014-12-02 22:53:01.950755"], ["description", "Aut et voluptatem inventore qui minima esse. Et assumenda sed et a quisquam esse. Sit laborum et numquam a omnis. Voluptas ut fuga quis quaerat magnam labore corrupti qui. Qui saepe ut et blanditiis quo quaerat veritatis cupiditate.\nAliquid aperiam sit magni debitis. Similique et voluptatum mollitia qui iure earum. Consequatur sit ea omnis nemo quasi nihil.\nNumquam repellat dolorum consequatur qui. Asperiores numquam eligendi laborum tempore nobis aliquam atque non. Voluptatem quae eius et at. Libero praesentium et similique vero autem voluptas enim. Id esse nisi rerum a commodi totam maxime."], ["name", "Product #8 - 7554"], ["shipping_category_id", 1], ["slug", "product-8-7554"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.950755"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-12-02 22:53:01.952880"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.954727' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.955781' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.957063' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.957598' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:01.960547"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:01.960547"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:01.961451' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.961964' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.963150' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.963650' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.967574' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.968108' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.968635' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:01.970164"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:01.970800' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.971255' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.971739' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:01.972280' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:01.972760' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:01.977383"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.977383"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-7554' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:01.983271' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:01.988888' WHERE "spree_line_items"."id" = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-8174' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-8174' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:01.994024"], ["created_at", "2014-12-02 22:53:01.998000"], ["description", "Sed tempora officia dolore cumque aliquid voluptas laboriosam. Voluptate non quaerat voluptas expedita soluta. Inventore qui suscipit eligendi accusantium quod dolor facere.\nSoluta aut odio est minima veritatis sit. Consectetur natus qui sed ut similique placeat in. Aliquam laudantium provident saepe in deserunt cumque nobis. Dicta porro enim autem odio laboriosam qui consequatur. Quia optio molestiae earum quae."], ["name", "Product #9 - 8174"], ["shipping_category_id", 1], ["slug", "product-9-8174"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:01.998000"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-12-02 22:53:02.000164"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:02.001993' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:02.003073' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.004311' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.004856' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:02.007775"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:02.007775"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:02.008651' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:02.009133' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.010251' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.010729' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:02.014674' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.015218' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.015735' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:02.017318"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:02.017993' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.018493' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.018974' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.019538' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.019992' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:02.024761"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:02.024761"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-8174' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:02.030687' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:02.036844' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2927' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2927' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:02.043392"], ["created_at", "2014-12-02 22:53:02.047171"], ["description", "Dolorem unde inventore saepe non distinctio laboriosam. Voluptatum at eius quia perspiciatis. Repellat aut ea non qui nulla aspernatur ut earum. Ad voluptas et ducimus ut commodi.\nQui aut culpa natus eius. Corporis et dicta ut eos. Est vel minus quasi ut voluptatem. Autem suscipit corrupti neque ullam.\nQuis repellat libero necessitatibus nulla. Consequatur ex non qui quibusdam pariatur iusto unde molestiae. Sint distinctio aut veritatis sequi maiores tenetur. Ea ullam sapiente id quia.\nNecessitatibus sit qui quis ea ab earum. Ullam assumenda iure quis sit quasi. Consequatur animi est culpa exercitationem ratione. Aut qui quisquam sed accusantium est ullam doloremque quia. Laborum vel eos assumenda dolore commodi delectus quia."], ["name", "Product #10 - 2927"], ["shipping_category_id", 1], ["slug", "product-10-2927"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:02.047171"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-12-02 22:53:02.049314"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:02.051214' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:02.052353' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.053657' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.054239' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:02.057157"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:02.057157"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:02.058044' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:02.058575' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.059741' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.060238' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:02.064484' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.065069' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.065624' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:02.067235"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:02.067893' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.068407' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.068901' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.069530' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.070056' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:02.074977"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:02.074977"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2927' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:02.081019' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:02.102126' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:53:02.107413"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:53:02.107413"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:02.111095"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:02.111095"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:02.112009' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:02.113183' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.114398' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.114946' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:02.117574"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:02.117574"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:02.118424' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:02.119453' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.120639' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.121133' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:02.123565"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:02.123565"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:02.124405' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:02.125461' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.126662' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.127237' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:02.129959"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:02.129959"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:02.130895' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:02.132007' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.133234' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.133780' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:02.136272"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:02.136272"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:02.137124' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:02.138280' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:02.140909' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:02.142364' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H51262676358%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:53:02.147248"], ["number", "H51262676358"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:53:02.147248"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:02.148698' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:02.152869' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.156757"], ["description", "Nostrum fugit ex non laborum excepturi est corporis."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:53:02.156757"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.158254"], ["updated_at", "2014-12-02 22:53:02.158254"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:53:02.167314"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:53:02.167314"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:53:02.168100"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:53:02.168100"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.169423"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:02.169423"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:53:02.172135"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:02.172135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.175702"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:02.175702"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:02.176450' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:02.176986' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.178415"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:02.178415"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:02.179087' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:02.179543' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.180841"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:02.180841"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:02.181475' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:02.181922' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.183178"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:02.183178"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:02.183806' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:02.184232' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.185471"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:02.185471"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:02.186110' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:02.186510' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:53:02.194594' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.213110"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:02.213110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:53:02.216402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:02.217973' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:53:02.218570' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.222129"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:53:02.222129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.224125"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:53:02.224125"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'JK7Y5FBG' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:53:02.225839"], ["identifier", "JK7Y5FBG"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:53:02.225839"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:02.228054' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-041110' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-041110"], ["updated_at", "2014-12-02 22:53:02.229221"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.231959"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:53:02.231959"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:53:02.233580' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.250907"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:02.250907"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:53:02.254028"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:02.255547' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:53:02.257789' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.259551"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:53:02.259551"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:53:02.260368' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'JK7Y5FBG' ORDER BY spree_payments.created_at LIMIT 1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:53:02.274283' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:02.293465"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:02.293465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 22:53:02.296679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:02.298491' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:53:02.300784' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 22:53:02.301871' WHERE "spree_orders"."id" = 1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (5.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'patrick@krisgrant.us' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175608323671xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:53:52.403791"], ["email", "patrick@krisgrant.us"], ["encrypted_password", "a99b44e0158e326a7ab0cc37cc630dafd98abe45e96729bb6bd53b046226691f27b569fa3c4a6f2324ebc5333f4c9b87e3e6167df13800e79fffc191cc4358c9"], ["login", "patrick@krisgrant.us"], ["password_salt", "s8DrNyaFEoY8smj7y25o"], ["updated_at", "2014-12-02 22:53:52.403791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:53:52.443858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:53:52.450272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:53:52.459524"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:53:52.459524"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:53:52.482532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:53:52.484127"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:53:52.484127"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R874589689' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R874589689%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R874589689' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'tjcPb09G6GUDRvPy4i9Bxg' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:53:52.502899"], ["currency", "USD"], ["email", "patrick@krisgrant.us"], ["guest_token", "tjcPb09G6GUDRvPy4i9Bxg"], ["number", "R874589689"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:53:52.502899"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:53:52.561365"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 22:53:52.561365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 412720' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:53:52.572905"], ["description", "Vero maxime qui hic deleniti vel."], ["name", "TaxCategory - 412720"], ["updated_at", "2014-12-02 22:53:52.572905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:53:52.598616"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:53:52.598616"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-4800' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-4800' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:52.556541"], ["created_at", "2014-12-02 22:53:52.604278"], ["description", "Laudantium sint eos doloribus error sit perferendis dolores exercitationem. Omnis tempora mollitia minima labore ut architecto. Qui maxime excepturi autem iusto voluptas."], ["name", "Product #1 - 4800"], ["shipping_category_id", 1], ["slug", "product-1-4800"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:52.604278"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 22:53:52.607097"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:52.614802' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.616067' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.630691' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.631969' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:52.655130"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:52.655130"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:52.656464' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.657074' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.658306' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.658827' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.669948' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.670607' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.671207' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:52.673006"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.674196' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.674726' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.675254' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.675832' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.676287' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:52.699470"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:52.699470"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-4800' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:52.716625' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:52.726762' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-1930' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-1930' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:52.733447"], ["created_at", "2014-12-02 22:53:52.737637"], ["description", "Eos minima quis labore sunt aut. Eligendi qui dignissimos ad occaecati corporis. Iure dolor corrupti suscipit occaecati nulla. Et eveniet illum qui minus numquam.\nConsequatur quis eum nemo pariatur veritatis earum praesentium. Nemo quaerat quod quibusdam quo tempora totam consequatur. Aut recusandae sit optio ut. Natus recusandae quaerat voluptatem deserunt minus optio atque. Et numquam pariatur aut provident officiis perferendis.\nVoluptatem commodi omnis mollitia eius reprehenderit ut magnam. Sunt sed sit impedit velit perferendis numquam voluptatibus et. Consequatur sed deleniti dolores laborum et. Molestias quae harum ipsa vel veniam reprehenderit accusamus impedit."], ["name", "Product #2 - 1930"], ["shipping_category_id", 1], ["slug", "product-2-1930"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:52.737637"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 22:53:52.739863"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:52.742018' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.743187' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.795880' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.796553' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:52.799653"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:52.799653"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:52.800645' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.801168' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.802362' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.802850' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.806714' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.807256' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.807813' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:52.809434"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.810152' WHERE "spree_products"."id" = 2 SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.810609' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.811132' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.811697' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.812142' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:52.817233"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:52.817233"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-1930' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:52.827140' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:52.833166' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-1866' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-1866' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:52.839323"], ["created_at", "2014-12-02 22:53:52.842942"], ["description", "Aliquam delectus sunt qui aut voluptatem dolor. Suscipit quas corrupti molestias quam fugiat quisquam. In nulla velit fuga aspernatur quidem.\nHic suscipit ducimus in possimus omnis dicta. Doloribus minus nihil laudantium molestiae dolorem. Fugit qui quis labore occaecati voluptatem. Ea est modi quasi et.\nEum enim adipisci explicabo natus et laudantium voluptatem. Aliquam omnis modi eum in atque ut facere. Accusantium modi voluptatem eum omnis consectetur autem cupiditate. Facere omnis laboriosam architecto sequi vitae consequatur et nesciunt. Est molestiae temporibus provident in voluptate.\nQui magni ratione sequi voluptatibus qui dolorem ipsa. Eaque aspernatur voluptas et consectetur. Aut magnam omnis et rem. Reiciendis voluptas vel officiis assumenda ea ea sapiente quasi."], ["name", "Product #3 - 1866"], ["shipping_category_id", 1], ["slug", "product-3-1866"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:52.842942"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 22:53:52.845011"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:52.846923' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.847937' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.849182' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.849771' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:52.852565"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:52.852565"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:52.853430' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.853937' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.855007' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.855550' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.859445' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.859956' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.860492' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:52.862070"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.862742' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.863219' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.863731' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.864315' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.864774' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:52.870048"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:52.870048"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-1866' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:52.878763' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:52.884476' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-5821' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-5821' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:52.890900"], ["created_at", "2014-12-02 22:53:52.894565"], ["description", "Similique in quos eveniet molestiae tempore non corporis voluptatem. Perferendis qui voluptatem porro rerum eos est quas. Accusantium sed exercitationem iusto enim. Tempore qui et fugit a.\nDolorem distinctio qui est voluptatem molestiae. Id minus et commodi ea. Voluptas dignissimos laboriosam voluptas culpa ipsum velit. Impedit assumenda qui et laboriosam et ipsam est in.\nRepudiandae ut pariatur et ut. Quis ut velit perferendis corporis. Enim molestias voluptas excepturi sed deleniti vero iure. Et dicta eius consequatur officia facere magnam. Cupiditate voluptate ipsa impedit voluptatibus ut iure quia.\nNon qui a dolorem non debitis dolor. Qui sunt deserunt quo nesciunt. Blanditiis et beatae voluptates necessitatibus. Mollitia magnam laudantium ut autem et illum. Aspernatur occaecati nobis libero dolorem ab."], ["name", "Product #4 - 5821"], ["shipping_category_id", 1], ["slug", "product-4-5821"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:52.894565"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 22:53:52.896749"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:52.898658' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.899680' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.900873' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.901415' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:52.904321"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:52.904321"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:52.905205' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.905728' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.906862' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.907355' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.911371' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.911944' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.912504' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:52.914125"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.914813' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.915261' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.915739' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.916298' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.916772' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:52.921470"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:52.921470"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-5821' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:52.926983' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:52.933074' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-4723' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-4723' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:52.939855"], ["created_at", "2014-12-02 22:53:52.943546"], ["description", "Vitae consectetur dolorum fugiat eos dolorem ratione non. Nihil et culpa repellendus aut laudantium officiis et. Omnis consectetur cupiditate qui doloremque in. Magnam nihil unde recusandae inventore itaque. Odit aliquid blanditiis repellat similique velit voluptates.\nIncidunt sunt et excepturi ipsa corrupti dolorem id. Omnis et quas et dolorum ut. Dolores non ducimus eum odio est illum consequatur aut. Dolores eligendi necessitatibus ad ut itaque laborum totam sint. Consequuntur commodi porro minus modi possimus.\nRerum itaque ab omnis inventore ad quia. Reiciendis maxime quia harum molestias ullam sequi iste et. Nemo tempore voluptatem consequatur similique voluptatum molestiae eveniet quis. Sit nemo enim natus quae. Non vel nostrum officiis facere perspiciatis nihil.\nSunt eius dignissimos illo voluptatem et at ea. Inventore enim quia sed consequuntur nobis maiores qui culpa. Laudantium nam labore vitae vel cupiditate sed et autem."], ["name", "Product #5 - 4723"], ["shipping_category_id", 1], ["slug", "product-5-4723"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:52.943546"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 22:53:52.945772"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:52.947592' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.948598' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.949812' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.950352' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:52.953183"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:52.953183"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:52.954037' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.954554' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.955672' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.956177' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.960082' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.960595' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.961147' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:52.962761"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:52.963429' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.963886' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.964359' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:52.964915' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:52.965358' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:52.970120"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:52.970120"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-4723' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:52.975682' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:52.981277' WHERE "spree_line_items"."id" = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:53:52.998515"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:53:52.998515"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.002127"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:53.002127"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.003078' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.004280' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.005594' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.006164' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.008857"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:53.008857"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.009732' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.010848' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.012005' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.012522' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.014909"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:53.014909"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.015751' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.016815' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.018043' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.018641' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.021365"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:53.021365"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.022268' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.023301' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.024522' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.025012' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.027455"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:53.027455"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.028251' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.029282' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.030574' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.031136' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H00132067273%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:53:53.037200"], ["number", "H00132067273"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:53:53.037200"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.038283' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.2ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:53.047504' WHERE "spree_shipments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.068206"], ["description", "Mollitia corrupti eum ab praesentium blanditiis voluptatum."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:53:53.068206"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.071323"], ["updated_at", "2014-12-02 22:53:53.071323"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:53:53.117748"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:53:53.117748"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:53:53.118879"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:53:53.118879"]] SQL (0.2ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.120664"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:53.120664"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:53:53.137066"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:53.137066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.152864"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:53.152864"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:53.154043' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.154712' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.156191"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:53.156191"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:53.156834' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.157300' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.158603"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:53.158603"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:53.159904' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.160377' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.161690"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:53.161690"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:53.162315' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.162770' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.164028"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:53.164028"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:53.164646' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.165101' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:53:53.181837' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.220095"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:53.220095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:53:53.223679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.225339' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:53:53.225902' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.261715"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:53:53.261715"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.274723"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:53:53.274723"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '49EJX5AW' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:53:53.286165"], ["identifier", "49EJX5AW"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:53:53.286165"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.289066' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-550112' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-550112"], ["updated_at", "2014-12-02 22:53:53.290371"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.301042"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:53:53.301042"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:53:53.303125' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.320285"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:53.320285"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:53:53.323653"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.325189' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:53:53.327584' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.329282"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:53:53.329282"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:53:53.330052' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (105.3ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'piper_zboncak@kuphalmann.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175608334102xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:53:53.449557"], ["email", "piper_zboncak@kuphalmann.biz"], ["encrypted_password", "8afce10a48a3902656dfb87c426525632d1635adba9ee3ec0f12180b6e63af30b6fc5758b40014666de427b5164076f1b652a740d8c989baa24ac10d0e86e234"], ["login", "piper_zboncak@kuphalmann.biz"], ["password_salt", "44aT-FC6koCMVzZCSru-"], ["updated_at", "2014-12-02 22:53:53.449557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:53:53.453891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:53:53.455181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:53:53.456575"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:53:53.456575"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:53:53.459071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:53:53.460309"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:53:53.460309"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R490725277' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R490725277%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R490725277' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'x6N_FhJHDnLa5iP3mp0iKg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:53:53.466359"], ["currency", "USD"], ["email", "piper_zboncak@kuphalmann.biz"], ["guest_token", "x6N_FhJHDnLa5iP3mp0iKg"], ["number", "R490725277"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:53:53.466359"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:53:53.475305"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 22:53:53.475305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 842943' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.477907"], ["description", "Culpa rem et deleniti commodi necessitatibus exercitationem."], ["name", "TaxCategory - 842943"], ["updated_at", "2014-12-02 22:53:53.477907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:53:53.481403"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:53:53.481403"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-5881' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-5881' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:53.474253"], ["created_at", "2014-12-02 22:53:53.485188"], ["description", "Quos reiciendis eveniet quia explicabo. Rem nisi qui aperiam aspernatur laborum velit quisquam modi. Iusto nostrum voluptatem numquam eveniet est et. Consectetur dolorum vel fugit quaerat quia ducimus occaecati hic. Nulla dolor illo vero saepe illum.\nQuasi dolor molestiae pariatur repellendus soluta. Dolores sit et cupiditate corporis eius impedit laboriosam excepturi. Repellat non eos quibusdam hic distinctio iste. Eligendi provident ut quis nobis ratione et in. Quia placeat cumque quibusdam perspiciatis ipsa ut ut.\nEt sit hic voluptas voluptatem tempora iure laudantium. Omnis voluptatum omnis nam quisquam cumque ipsum saepe sint. Corrupti iste blanditiis porro ea ullam illo recusandae. Doloribus repudiandae harum et nihil reprehenderit autem iste qui. Temporibus atque repudiandae commodi vel fugiat qui consectetur quasi.\nEa eius provident unde eveniet ullam. Nesciunt non est veritatis est repellat rem qui. Dignissimos excepturi ut quo aut modi. Ea sit dolores exercitationem corporis et magni voluptate dolores."], ["name", "Product #6 - 5881"], ["shipping_category_id", 1], ["slug", "product-6-5881"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:53.485188"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-12-02 22:53:53.487526"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.489972' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.491262' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.492676' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.493268' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.496166"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:53.496166"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.497135' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.497634' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.498728' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.499198' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.503241' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.503771' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.504282' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:53.505870"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.506540' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.507032' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.507518' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.508063' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.508510' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:53.513102"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:53.513102"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-5881' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.518907' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:53.524564' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-8471' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-8471' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:53.530626"], ["created_at", "2014-12-02 22:53:53.534302"], ["description", "Sapiente quod aspernatur aut beatae numquam aut dolor dolores. Eum quia ut laborum deleniti vitae quas. Ea exercitationem vitae eum dolorem dicta nam. At dolorem doloremque occaecati est placeat.\nMagni sit nihil deleniti quisquam aut omnis aut officiis. Eum vel magnam ipsa aliquam. Reprehenderit sapiente ad non cumque. Occaecati tempore voluptas voluptate nam id repudiandae esse. Iusto placeat est id iste.\nMinus vero libero earum voluptatum dicta ratione eum tempore. Vitae error quibusdam accusamus doloribus et velit exercitationem. Eos quia accusantium maiores modi dolorem magni inventore voluptas. Numquam est consequatur suscipit consequatur cupiditate. Est tenetur voluptatem explicabo ducimus quidem quasi est sapiente."], ["name", "Product #7 - 8471"], ["shipping_category_id", 1], ["slug", "product-7-8471"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:53.534302"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-12-02 22:53:53.536513"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.538502' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.539540' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.540768' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.541303' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.544375"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:53.544375"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.545282' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.545798' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.546921' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.547391' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.551185' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.551696' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.552226' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:53.553821"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.554448' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.554906' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.555382' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.555921' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.556346' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:53.560852"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:53.560852"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-8471' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.566490' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:53.572082' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-1568' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-1568' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:53.576237"], ["created_at", "2014-12-02 22:53:53.579848"], ["description", "Ut tempore necessitatibus ad iusto. Consectetur porro accusantium fuga et autem. Id adipisci hic facilis voluptatibus pariatur autem ducimus."], ["name", "Product #8 - 1568"], ["shipping_category_id", 1], ["slug", "product-8-1568"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:53.579848"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-12-02 22:53:53.581952"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.583830' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.584868' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.586082' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.586663' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.589503"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:53.589503"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.590374' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.590895' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.592028' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.592512' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.596438' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.597008' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.597612' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:53.599256"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.599880' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.600331' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.600789' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.601363' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.601801' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:53.606578"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:53.606578"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-1568' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.612547' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:53.618716' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-8135' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-8135' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:53.624794"], ["created_at", "2014-12-02 22:53:53.628982"], ["description", "Maiores voluptatem in magnam eum et quis sint laudantium. Culpa dolorem quam velit quae non vitae. Et ut qui voluptatem harum cupiditate nulla.\nVoluptate aut pariatur dolores aliquam unde aut ut corporis. Fugit illum omnis quam aut similique voluptas. Laboriosam tenetur quam omnis fugiat totam excepturi. Fugiat delectus similique voluptatem molestiae. Ut ducimus culpa nobis quia.\nDistinctio dolorem aut asperiores iusto sit minus. Est qui optio voluptate animi quo. Nulla impedit sed voluptatem quaerat repudiandae rerum qui. Reprehenderit est quo doloremque occaecati molestiae necessitatibus nemo aut."], ["name", "Product #9 - 8135"], ["shipping_category_id", 1], ["slug", "product-9-8135"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:53.628982"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-12-02 22:53:53.631351"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.633498' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.634661' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.636010' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.636626' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.639830"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:53.639830"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.640830' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.641439' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.642665' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.643192' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.647642' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.648253' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.648931' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:53.650864"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.651565' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.652050' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.652561' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.653169' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.653699' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:53.659125"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:53.659125"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-8135' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.665029' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:53.671525' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-9788' LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-9788' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:53:53.679651"], ["created_at", "2014-12-02 22:53:53.685122"], ["description", "Velit voluptas eos id suscipit quae. Labore quam nisi unde ad nesciunt. Necessitatibus quidem deserunt voluptas eum vel unde. Perspiciatis sit recusandae ipsum et numquam.\nCum magnam architecto et earum possimus maiores. Accusantium ut temporibus porro ut cumque molestiae quo adipisci. Minima velit sint pariatur quis repellendus qui iste quae. Quasi aut dolorem molestiae ipsam cupiditate.\nHarum iusto praesentium et qui quos culpa. Totam dolorem explicabo ea id vero veritatis. Ipsum est eos sit sit id odio qui. Placeat cupiditate dolorum quisquam architecto ipsum in aperiam fugiat. Culpa iure maxime in aliquid sunt hic.\nDicta deleniti eum excepturi expedita suscipit reiciendis. Magnam dolorem ducimus praesentium veritatis. Est eum numquam excepturi ea ipsa rerum corrupti. Et ullam rerum autem omnis expedita ut.\nCorporis et eos eligendi reiciendis odio. Recusandae ut praesentium aliquam est vel. Quod excepturi reiciendis dolores iure quibusdam sint repudiandae temporibus. Et fuga et nulla similique iusto facere iste placeat. Earum dolor atque velit et nulla aut est in."], ["name", "Product #10 - 9788"], ["shipping_category_id", 1], ["slug", "product-10-9788"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:53.685122"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-12-02 22:53:53.688991"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.692114' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.693684' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.695292' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.695980' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.699499"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:53:53.699499"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.700598' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.701258' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.702580' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.703147' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.707666' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.708302' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.708893' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:53:53.710802"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.711547' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.712033' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.712545' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.713169' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.713648' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:53:53.718910"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:53:53.718910"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-9788' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.724734' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:53.730452' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:53:53.735378"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:53:53.735378"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.738916"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:53.738916"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.739891' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.741040' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.742305' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.742859' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.745410"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:53.745410"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.746247' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.747484' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.748716' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.749252' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.751786"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:53.751786"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.752660' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.753702' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.754981' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.755550' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.758413"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:53.758413"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.759367' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.760505' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.761754' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.762256' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:53:53.764749"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:53:53.764749"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:53:53.765673' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:53:53.766745' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:53:53.768092' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:53:53.768671' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H42160402463%') SQL (0.3ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:53:53.791265"], ["number", "H42160402463"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:53:53.791265"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.792608' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:53:53.795976' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.799697"], ["description", "Ab doloremque eos sit est dolor voluptatem iure."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:53:53.799697"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.801105"], ["updated_at", "2014-12-02 22:53:53.801105"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:53:53.810014"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:53:53.810014"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:53:53.810859"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:53:53.810859"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.812251"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:53.812251"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:53:53.815073"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:53.815073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.818644"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:53.818644"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:53.819397' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.819973' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.821339"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:53.821339"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:53.821998' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.822422' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.823719"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:53.823719"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:53.824399' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.824830' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.826149"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:53.826149"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:53.826788' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.827248' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.828512"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:53:53.828512"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:53:53.829138' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.829587' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:53:53.837718' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.856698"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:53.856698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:53:53.859970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.861560' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:53:53.862138' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.865857"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:53:53.865857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.867829"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:53:53.867829"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '6HN4YQZC' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:53:53.869482"], ["identifier", "6HN4YQZC"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:53:53.869482"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.871695' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-035341' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-035341"], ["updated_at", "2014-12-02 22:53:53.872824"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.875637"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:53:53.875637"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:53:53.877236' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.894164"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:53:53.894164"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:53:53.897218"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:53:53.898685' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:53:53.900939' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:53:53.902607"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:53:53.902607"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:53:53.903395' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hollie@abernathy.com' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175610158151xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:56:55.229617"], ["email", "hollie@abernathy.com"], ["encrypted_password", "11dea8486bfdd07c289255c5b33c76c8193541fa482f9e72108e26b4e346b97cdfd64a65ef191f58bfdce03daca9d36a6d8f75a5cc70bfbfb4b00fa3b8dd24de"], ["login", "hollie@abernathy.com"], ["password_salt", "F5zSoLpnZjtfi66i5nJU"], ["updated_at", "2014-12-02 22:56:55.229617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:56:55.265910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:56:55.275847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:56:55.291514"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:56:55.291514"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:56:55.314754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:56:55.316286"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:56:55.316286"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R208993653' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R208993653%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R208993653' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'dvL0RSNcqpP9ZiK0rbnXNA' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:56:55.334681"], ["currency", "USD"], ["email", "hollie@abernathy.com"], ["guest_token", "dvL0RSNcqpP9ZiK0rbnXNA"], ["number", "R208993653"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:56:55.334681"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:56:55.391568"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 22:56:55.391568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 149256' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:56:55.402262"], ["description", "Qui enim iusto odit dolorum."], ["name", "TaxCategory - 149256"], ["updated_at", "2014-12-02 22:56:55.402262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:56:55.427796"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:56:55.427796"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-9796' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-9796' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:56:55.387320"], ["created_at", "2014-12-02 22:56:55.433130"], ["description", "Provident nihil rerum quia ut voluptatibus. Amet est deleniti aut blanditiis. Neque sequi omnis laborum eos iste quasi dolorem.\nQuas et rerum et similique in. Accusantium necessitatibus nostrum sequi dolorum error rerum. Laboriosam et in quae facilis. Reiciendis temporibus cum sit deserunt."], ["name", "Product #1 - 9796"], ["shipping_category_id", 1], ["slug", "product-1-9796"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:55.433130"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 22:56:55.435883"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.443923' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.445213' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.459495' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.460791' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:55.483963"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:56:55.483963"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.485256' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.485847' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.487036' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.487556' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.498555' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.499197' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.499742' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:56:55.501550"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.502725' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.503231' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.503711' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.504268' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.504683' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:56:55.524043"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:55.524043"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-9796' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:55.541509' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:56:55.603654' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-345' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-345' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:56:55.609619"], ["created_at", "2014-12-02 22:56:55.614282"], ["description", "Sequi maiores accusantium ea est ullam. Ullam ducimus consequatur quos laudantium aut veritatis est. Vel rem laboriosam repellat amet porro dolorem.\nMagni sunt voluptas id recusandae architecto. Vel et ut eligendi id. Qui asperiores est omnis officiis adipisci. Et beatae tempore commodi similique.\nPraesentium dolor at exercitationem voluptas asperiores. Nam dolor possimus soluta voluptate inventore voluptatem ut minus. Delectus quia numquam ullam voluptates praesentium qui. Harum ducimus enim inventore exercitationem architecto eius aut consequatur. Enim magnam omnis neque atque veritatis sit dolores sequi."], ["name", "Product #2 - 345"], ["shipping_category_id", 1], ["slug", "product-2-345"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:55.614282"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 22:56:55.616705"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.618812' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.619943' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.621229' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.621800' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:55.624707"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:56:55.624707"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.625676' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.626169' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.627259' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.627779' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.631778' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.632285' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.632838' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:56:55.634362"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.635029' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.635501' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.635958' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.636489' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.636902' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:56:55.641445"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:55.641445"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-345' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:55.647041' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:56:55.652605' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-8515' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-8515' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:56:55.657178"], ["created_at", "2014-12-02 22:56:55.660887"], ["description", "Aperiam eos beatae est ipsum rerum. Quam quos laborum non et dolores. Voluptatem quis et qui maiores. Magni amet quis vel fugiat fugit eos saepe. Sunt cum molestiae dolorem mollitia."], ["name", "Product #3 - 8515"], ["shipping_category_id", 1], ["slug", "product-3-8515"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:55.660887"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 22:56:55.663055"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.664898' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.665989' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.667171' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.667669' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:55.670519"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:56:55.670519"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.671508' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.672036' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.673085' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.673584' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.677464' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.678002' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.678534' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:56:55.680096"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.680766' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.681223' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.681679' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.682213' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.682681' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:56:55.687291"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:55.687291"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-8515' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:55.692905' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:56:55.698518' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-4823' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-4823' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:56:55.703288"], ["created_at", "2014-12-02 22:56:55.706893"], ["description", "Soluta accusamus corporis eos doloremque officiis. Officia adipisci et delectus nam excepturi et aperiam. Blanditiis sit architecto et tempore.\nTempora magnam sit sunt reprehenderit nesciunt. Dolores quas eligendi consequuntur et vel aliquid et culpa. Unde voluptatem sed fuga delectus ipsum sapiente eum."], ["name", "Product #4 - 4823"], ["shipping_category_id", 1], ["slug", "product-4-4823"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:55.706893"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 22:56:55.709060"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.710900' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.712004' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.713263' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.713946' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:55.716892"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:56:55.716892"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.717801' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.718300' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.719330' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.719836' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.723675' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.724191' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.724721' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:56:55.726302"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.727022' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.727498' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.727993' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.728534' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.728964' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:56:55.733562"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:55.733562"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-4823' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:55.739161' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:56:55.744690' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-3810' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-3810' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:56:55.751313"], ["created_at", "2014-12-02 22:56:55.755016"], ["description", "Dolorem error sed voluptatibus voluptas. Adipisci mollitia cupiditate incidunt quasi iure aut consectetur sunt. Et consequatur fuga ut porro. Dicta aut officia iure praesentium quis necessitatibus quia. Amet dolor quasi exercitationem omnis.\nAutem molestiae ipsum repudiandae a sit nihil aut aut. Sunt blanditiis et iusto dolorum consectetur voluptatem quam. Eos temporibus tempore quisquam fugiat. Eos vitae quos fuga expedita dolorem.\nUt sunt aperiam et et quasi illum. Perferendis veniam est qui iure a. Vel quisquam repellendus dolore laudantium esse quidem dolor. Aut aut quia quibusdam ducimus nisi.\nCumque voluptatem commodi recusandae ullam quo quis vitae alias. Ut dolor dolorem ipsum et blanditiis non dignissimos dicta. Qui ad et consequatur suscipit numquam."], ["name", "Product #5 - 3810"], ["shipping_category_id", 1], ["slug", "product-5-3810"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:55.755016"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 22:56:55.757136"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.758999' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.760063' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.761297' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.761837' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:55.764655"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:56:55.764655"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.765521' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.766026' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.767065' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.767561' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.771468' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.771985' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.772529' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:56:55.774124"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.774795' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.775246' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.775725' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.776275' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.776735' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:56:55.781302"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:55.781302"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-3810' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:55.786933' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:56:55.792447' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:56:55.810105"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:56:55.810105"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:55.813699"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:56:55.813699"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.814651' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.815993' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.817345' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.817892' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:55.820649"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:56:55.820649"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.821534' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.822572' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.823634' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.824104' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:55.826525"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:56:55.826525"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.827400' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.828404' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.829532' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.830067' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:55.832859"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:56:55.832859"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.833798' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.834926' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.836002' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.836483' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:55.838829"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:56:55.838829"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:55.839643' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:55.840677' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:55.842141' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:55.843564' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H77774388530%') SQL (0.3ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:56:55.853389"], ["number", "H77774388530"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:56:55.853389"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:55.854923' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:56:55.861348' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:56:55.879222"], ["description", "Nisi dolor sit fugiat harum ipsum culpa quibusdam ut."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:56:55.879222"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:55.882435"], ["updated_at", "2014-12-02 22:56:55.882435"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:56:55.926169"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:56:55.926169"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:56:55.927248"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:56:55.927248"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:56:55.929087"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:56:55.929087"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:56:55.944152"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:56:55.944152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:55.959555"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:56:55.959555"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:56:55.960841' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:55.961560' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:55.963137"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:56:55.963137"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:56:55.963819' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:55.964349' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:55.965718"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:56:55.965718"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:56:55.966455' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:55.966896' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:55.968258"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:56:55.968258"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:56:55.968910' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:55.969353' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:55.970703"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:56:55.970703"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:56:55.971336' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:55.971813' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:56:55.989917' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.043651"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:56:56.043651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:56:56.047265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.048947' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:56:56.049526' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.070910"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:56:56.070910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.084043"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:56:56.084043"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7X5YDHSP' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:56:56.096916"], ["identifier", "7X5YDHSP"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:56:56.096916"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.100087' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-523134' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-523134"], ["updated_at", "2014-12-02 22:56:56.101500"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.112811"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:56:56.112811"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:56:56.114968' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.132592"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:56:56.132592"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:56:56.135719"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.137279' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:56:56.139661' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.141426"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:56:56.141426"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:56:56.142184' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (104.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jaime_gutmann@dickens.co.uk' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175610161022xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:56:56.261740"], ["email", "jaime_gutmann@dickens.co.uk"], ["encrypted_password", "86f77bbc32b3cc088116fdec14464dbb1f088ddfabf476b8d694b24b16b3d0f86e02020564591970d5705307577816660f27996dcc974313e4586aee7e4c6ffd"], ["login", "jaime_gutmann@dickens.co.uk"], ["password_salt", "UhRxy4BaRzx9s-ESCPmk"], ["updated_at", "2014-12-02 22:56:56.261740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:56:56.266953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:56:56.268905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:56:56.270827"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:56:56.270827"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:56:56.273452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:56:56.274830"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:56:56.274830"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R139241741' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R139241741%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R139241741' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hutxmyIBq88yG6MQygXgzA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:56:56.280938"], ["currency", "USD"], ["email", "jaime_gutmann@dickens.co.uk"], ["guest_token", "hutxmyIBq88yG6MQygXgzA"], ["number", "R139241741"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:56:56.280938"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:56:56.290154"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 22:56:56.290154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 177384' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.293271"], ["description", "Corrupti doloribus in rem est dolorem dicta."], ["name", "TaxCategory - 177384"], ["updated_at", "2014-12-02 22:56:56.293271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:56:56.296782"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:56:56.296782"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-6504' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-6504' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:56:56.289102"], ["created_at", "2014-12-02 22:56:56.300447"], ["description", "Dignissimos architecto voluptas nesciunt dolorem itaque doloribus. Dicta omnis animi ea temporibus alias. Sit voluptatibus expedita dolores animi. Aliquid consectetur ut itaque blanditiis. Voluptates dolor nihil hic vitae veritatis.\nAssumenda aliquid quae voluptate aut aut culpa. Excepturi aut voluptatem possimus deserunt. Est eum omnis officia quasi. Et nam tenetur laborum labore ut a veniam voluptatem. Praesentium aperiam sint ut facilis consequuntur ipsa tenetur.\nSapiente fugiat sed omnis repellat et maxime. Exercitationem et et sit non repellendus. Labore magnam aut reprehenderit harum qui odit pariatur soluta. Doloremque ipsam labore sit ullam consequatur sunt. Nulla cupiditate reprehenderit eaque rerum.\nDelectus exercitationem rerum et cupiditate. Nulla possimus atque et est perferendis tempora. Consequuntur aliquid amet cum est dolorem neque sint. Incidunt et aut voluptates repellendus placeat. Sequi aperiam iste qui consequatur similique quis."], ["name", "Product #6 - 6504"], ["shipping_category_id", 1], ["slug", "product-6-6504"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:56.300447"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-12-02 22:56:56.302612"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.304600' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.305711' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.306949' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.307499' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:56.310822"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:56:56.310822"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.311990' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.312611' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.313765' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.314279' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.318414' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.318950' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.319451' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:56:56.321118"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.321799' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.322276' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.322754' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.323309' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.323753' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:56:56.328751"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:56.328751"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-6504' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.334712' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:56:56.340467' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-3538' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-3538' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:56:56.346961"], ["created_at", "2014-12-02 22:56:56.351190"], ["description", "Nostrum molestiae optio itaque sed et. Voluptas et consectetur rerum et modi velit. Non et harum esse sint. Autem architecto amet harum cumque assumenda iusto fugit voluptas.\nVitae accusamus iure sint qui aut quae nobis. Velit placeat qui cum et. Similique a expedita eos velit excepturi ipsam.\nEst aliquam molestiae consequatur quia dolor et omnis nostrum. Est alias dicta hic itaque sit magni et. Molestiae quia nihil voluptatibus tempore rerum nesciunt doloribus nihil.\nMagni at minima tempora quas exercitationem fuga. Maiores voluptates delectus nemo repellat dolorem. Sapiente dolorem aut ex enim eum iste. Ullam eligendi iure tempora mollitia voluptas cum alias."], ["name", "Product #7 - 3538"], ["shipping_category_id", 1], ["slug", "product-7-3538"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:56.351190"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-12-02 22:56:56.353956"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.356377' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.357481' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.358756' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.359329' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.4ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:56.362406"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:56:56.362406"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.363797' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.364351' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.365389' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.365864' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.370419' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.370951' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.371443' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:56:56.373022"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.373769' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.374246' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.374729' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.375270' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.375699' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:56:56.380240"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:56.380240"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-3538' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.385926' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:56:56.391630' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-8041' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-8041' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:56:56.397742"], ["created_at", "2014-12-02 22:56:56.401413"], ["description", "Culpa a debitis nihil perspiciatis. Voluptatem a natus facere aut. Non ab neque est quasi.\nAccusamus voluptas veniam minus est quod aut. In asperiores commodi dolor distinctio enim est voluptatibus voluptatem. Totam incidunt et et explicabo consequatur dicta eligendi.\nAliquam quaerat asperiores tempore nemo ut sunt voluptates. Recusandae ut aut ex velit. Magni explicabo qui et nemo vero cupiditate reiciendis. Quo nemo quam error labore veritatis. Voluptatem dolorem dolores quo doloribus inventore porro ipsa.\nAlias praesentium ut corporis autem possimus. Illo dolorem beatae dolore necessitatibus debitis. Nulla asperiores saepe autem ab. Facere fugiat vel ratione aperiam laudantium repudiandae ipsum sunt. Nam adipisci ab perspiciatis similique."], ["name", "Product #8 - 8041"], ["shipping_category_id", 1], ["slug", "product-8-8041"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:56.401413"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-12-02 22:56:56.403536"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.405384' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.406492' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.407666' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.408241' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:56.411033"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:56:56.411033"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.411912' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.412414' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.413547' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.414062' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.417928' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.418473' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.419018' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:56:56.420590"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.421226' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.421676' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.422152' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.422685' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.423106' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:56:56.427712"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:56.427712"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-8041' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.433543' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:56:56.439054' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-4524' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-4524' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:56:56.443452"], ["created_at", "2014-12-02 22:56:56.447162"], ["description", "Sequi vero ipsa dolore excepturi voluptate labore aut eum. Reprehenderit et et ab impedit rerum. Voluptatem velit soluta et et consequuntur. Dolorem fuga vel tempora distinctio consequatur id magni ut."], ["name", "Product #9 - 4524"], ["shipping_category_id", 1], ["slug", "product-9-4524"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:56.447162"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-12-02 22:56:56.449233"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.451073' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.452258' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.453481' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.454015' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:56.456825"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:56:56.456825"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.457699' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.458205' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.459246' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.459725' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.463577' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.464094' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.464594' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:56:56.466096"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.466711' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.467141' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.467573' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.468089' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.468544' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:56:56.473075"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:56.473075"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-4524' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.478744' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:56:56.484345' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-498' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-498' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:56:56.490050"], ["created_at", "2014-12-02 22:56:56.493742"], ["description", "Ut ab ut itaque repellendus quam id et ullam. In tempore consequatur libero itaque est sapiente. Sint qui nemo eum delectus. Autem voluptas magnam atque voluptatem similique et accusamus.\nLaborum totam deserunt nihil officia quasi harum. At odit voluptates adipisci dolorem ex consequatur. Earum odit iure blanditiis provident alias et.\nSoluta voluptatibus animi dolor et consectetur fugit sequi. Dolor consequatur amet impedit ipsa tenetur illo fugit et. Excepturi qui et eius ut blanditiis qui magnam. Iusto molestiae libero est necessitatibus. Odit minus magnam laboriosam corrupti ut."], ["name", "Product #10 - 498"], ["shipping_category_id", 1], ["slug", "product-10-498"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:56.493742"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-12-02 22:56:56.495874"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.497758' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.498816' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.500030' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.500583' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:56.503414"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:56:56.503414"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.504308' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.504813' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.505852' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.506344' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.510267' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.510770' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.511267' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:56:56.512825"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.513466' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.513900' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.514364' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.514931' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.515354' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:56:56.520076"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:56:56.520076"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-498' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.525890' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:56:56.531558' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:56:56.536608"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:56:56.536608"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:56.540168"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:56:56.540168"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.541082' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.542223' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.543489' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.544167' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:56.546922"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:56:56.546922"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.547898' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.568645' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.569920' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.570433' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:56.573149"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:56:56.573149"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.574076' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.575114' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.576257' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.576750' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:56.579121"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:56:56.579121"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.579932' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.580977' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.582105' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.582649' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:56:56.585373"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:56:56.585373"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:56:56.586290' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:56:56.587334' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:56:56.588433' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:56:56.588940' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H18065443258%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:56:56.591524"], ["number", "H18065443258"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:56:56.591524"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.592399' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:56:56.595502' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.599576"], ["description", "Nihil aut est optio sit non neque qui."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:56:56.599576"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.600943"], ["updated_at", "2014-12-02 22:56:56.600943"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:56:56.609822"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:56:56.609822"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:56:56.610603"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:56:56.610603"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.611916"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:56:56.611916"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:56:56.614608"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:56:56.614608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.618286"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:56:56.618286"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:56:56.619067' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.619640' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.621003"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:56:56.621003"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:56:56.621650' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.622100' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.623404"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:56:56.623404"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:56:56.624024' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.624462' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.625755"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:56:56.625755"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:56:56.626406' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.626845' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.628168"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:56:56.628168"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:56:56.628836' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.629269' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:56:56.637624' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.656487"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:56:56.656487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:56:56.659724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.661275' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:56:56.661829' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.665289"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:56:56.665289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.667263"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:56:56.667263"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'GRX8UPHH' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:56:56.668887"], ["identifier", "GRX8UPHH"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:56:56.668887"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.671046' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-311050' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-311050"], ["updated_at", "2014-12-02 22:56:56.672278"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.675126"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:56:56.675126"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:56:56.676780' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.693892"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:56:56.693892"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:56:56.696909"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:56:56.698430' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:56:56.700626' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:56:56.702227"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:56:56.702227"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:56:56.702974' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (5.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'leann.williamson@schroeder.com' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175610923041xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:58:12.331517"], ["email", "leann.williamson@schroeder.com"], ["encrypted_password", "2c452044040cde1588508164172b6d635cd226752f830372b2c7dea8d22f9173d1dc415cfb6d93518da9552825159304d727e54f4acbc2f18bf5a585b213d387"], ["login", "leann.williamson@schroeder.com"], ["password_salt", "3DR1KzDw9HvSC9aDasgs"], ["updated_at", "2014-12-02 22:58:12.331517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:58:12.366669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:58:12.376645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:58:12.392534"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:58:12.392534"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:58:12.417300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:58:12.418998"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:58:12.418998"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R230420063' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R230420063%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R230420063' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Wqx1RzAdigN01e1yl_FN5w' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:58:12.439544"], ["currency", "USD"], ["email", "leann.williamson@schroeder.com"], ["guest_token", "Wqx1RzAdigN01e1yl_FN5w"], ["number", "R230420063"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:58:12.439544"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:58:12.500340"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 22:58:12.500340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 703628' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:58:12.511318"], ["description", "Voluptas id omnis repellat consequatur."], ["name", "TaxCategory - 703628"], ["updated_at", "2014-12-02 22:58:12.511318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:58:12.537127"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:58:12.537127"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-9171' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-9171' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:12.495860"], ["created_at", "2014-12-02 22:58:12.542569"], ["description", "Iste quaerat dolor pariatur id dolor repellat fuga. Cumque voluptatibus corrupti animi necessitatibus suscipit blanditiis odio. Et libero odio culpa aut commodi. Veniam ipsam mollitia provident est ipsum beatae."], ["name", "Product #1 - 9171"], ["shipping_category_id", 1], ["slug", "product-1-9171"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:12.542569"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 22:58:12.545300"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.553450' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.554795' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.569491' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.570925' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:12.594695"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:12.594695"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.595982' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.596594' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.597839' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.598404' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.609869' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.610501' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.611098' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:12.613023"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.614303' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.614873' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.615382' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.615971' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.616420' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:12.635286"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:12.635286"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-9171' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:12.653288' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:12.720001' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-4701' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-4701' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:12.726924"], ["created_at", "2014-12-02 22:58:12.731011"], ["description", "Maxime eligendi fugit consequatur maiores. Nihil dolores quia quibusdam nulla culpa. Et dolor reprehenderit non qui aut fugit. Ipsa quos sint impedit porro magni similique.\nAut unde reprehenderit vel sint expedita ut praesentium voluptatum. Et ea et porro reiciendis magnam voluptas. Fugiat quasi sed est quam debitis nobis nisi nihil. Non eaque qui nesciunt repellat assumenda et dolor.\nPerspiciatis temporibus quam odio debitis. Autem accusamus corrupti quia facilis eum voluptatibus. Aspernatur ab et quia voluptatum sequi. Aperiam at velit accusamus voluptatibus quaerat nam et ullam.\nQuia quidem beatae quia quibusdam soluta occaecati qui sequi. Nisi necessitatibus saepe quae dolorem cumque vitae ut illo. Animi ex sequi voluptas pariatur delectus. Omnis distinctio quod repellat aut. Provident modi non iusto temporibus omnis repudiandae saepe magnam."], ["name", "Product #2 - 4701"], ["shipping_category_id", 1], ["slug", "product-2-4701"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:12.731011"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 22:58:12.733304"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.735402' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.736525' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.737795' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.738378' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:12.741288"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:12.741288"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.742222' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.742749' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.743881' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.744371' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.748354' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.748943' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.749446' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:12.751003"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.751696' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.752170' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.752644' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.753181' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.753635' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:12.758846"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:12.758846"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-4701' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:12.768657' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:12.775039' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-739' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-739' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:12.781389"], ["created_at", "2014-12-02 22:58:12.785144"], ["description", "Fuga voluptas eos nesciunt debitis accusantium. Accusantium voluptate deserunt omnis accusamus aliquid qui aut dolorum. Aspernatur et quis dolorum perferendis.\nIusto nobis eveniet quas ut maiores. Quasi ut quaerat numquam sit. Ut et voluptates reprehenderit voluptatum eos pariatur vero. Dolores et earum debitis quisquam architecto rerum.\nDucimus est sit suscipit quia dolorum quia. Consequatur est ipsa velit id perspiciatis porro est. Magnam voluptas magni tempore iste architecto pariatur minima.\nIpsam optio fugiat voluptatem eligendi. Quia sint velit qui nihil voluptas totam quae quas. Quia rerum alias id fugiat nihil ipsa tempore culpa.\nVoluptas quae nihil veniam ab deleniti. Ut rem error exercitationem et at. Quasi sint sit voluptas dignissimos soluta quia similique voluptatem. Ut adipisci molestiae quia tempore qui consequuntur."], ["name", "Product #3 - 739"], ["shipping_category_id", 1], ["slug", "product-3-739"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:12.785144"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 22:58:12.787259"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.789113' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.790137' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.791318' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.791877' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:12.794703"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:12.794703"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.795592' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.796097' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.797172' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.797656' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.801480' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.802012' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.802533' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:12.804137"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.804797' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.805254' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.805718' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.806262' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.806702' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:12.811532"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:12.811532"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-739' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:12.817284' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:12.823100' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-4140' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-4140' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:12.828362"], ["created_at", "2014-12-02 22:58:12.832173"], ["description", "Temporibus distinctio aliquid laborum ex eum odit. Voluptatibus eum voluptatem deleniti omnis qui. Tempore ex numquam nemo voluptas et repellat est. Voluptatem voluptas officiis dolores ullam expedita. Omnis est enim at alias est.\nCommodi ut nesciunt enim vero quia. Iusto voluptatem sequi possimus qui voluptatum. Placeat hic eos dolor vel quae distinctio aut."], ["name", "Product #4 - 4140"], ["shipping_category_id", 1], ["slug", "product-4-4140"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:12.832173"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 22:58:12.834315"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.836197' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.837296' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.838571' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.839112' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:12.842007"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:12.842007"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.842912' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.843411' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.844543' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.845071' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.849101' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.849659' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.850194' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:12.851832"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.852507' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.853000' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.853467' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.854015' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.854463' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:12.859190"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:12.859190"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-4140' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:12.865104' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:12.870906' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-1861' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-1861' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:12.876294"], ["created_at", "2014-12-02 22:58:12.880150"], ["description", "Numquam fugiat qui cupiditate qui ut quia. Quis ut minima eum id a dolorum in. Pariatur nisi libero excepturi rerum sapiente aut facilis.\nQuos enim laudantium aut deserunt et nam. Ut incidunt quia voluptatem nesciunt laboriosam accusantium velit consequatur. Dolor et dolores ratione aut ut illo.\nFugit laboriosam quibusdam impedit odit. Quisquam qui omnis vero doloribus at. Deserunt iste cum repudiandae maxime dolorem quo vel."], ["name", "Product #5 - 1861"], ["shipping_category_id", 1], ["slug", "product-5-1861"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:12.880150"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 22:58:12.882354"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.884310' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.885357' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.886623' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.887184' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:12.890101"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:12.890101"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.891017' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.891491' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.892626' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.893125' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.897203' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.897771' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.898337' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:12.899994"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.900725' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.901211' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.901694' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.902243' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.902689' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:12.909020"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:12.909020"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-1861' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:12.918309' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:12.924690' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:58:12.943964"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:58:12.943964"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:12.947830"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:12.947830"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.948838' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.950094' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.951350' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.951907' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:12.954498"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:12.954498"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.955412' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.956537' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.957727' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.958270' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:12.960804"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:12.960804"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.961655' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.962709' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.964505' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.966062' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:12.970946"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:12.970946"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.972390' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.974125' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.975819' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.976529' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:12.979181"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:12.979181"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:12.980103' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:12.981314' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:12.982634' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:12.983195' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H65204715028%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:58:12.989090"], ["number", "H65204715028"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:58:12.989090"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:12.990220' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:12.996833' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.015956"], ["description", "Eum iusto dolore est suscipit at."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:58:13.015956"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.019191"], ["updated_at", "2014-12-02 22:58:13.019191"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:58:13.064866"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:58:13.064866"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:58:13.065955"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:58:13.065955"]] SQL (0.2ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.067901"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:13.067901"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:58:13.083410"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:13.083410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.099653"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:13.099653"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:13.100842' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.101512' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.103188"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:13.103188"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:13.103864' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.104338' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.105759"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:13.105759"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:13.106430' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.106880' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.108216"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:13.108216"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:13.108918' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.109390' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.110753"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:13.110753"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:13.111423' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.111885' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:13.128938' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.183692"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:13.183692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:58:13.187291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.188969' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:58:13.189565' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.210680"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:58:13.210680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.223585"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:58:13.223585"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'ZMAKEGAM' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:58:13.235858"], ["identifier", "ZMAKEGAM"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:58:13.235858"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.238796' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-111303' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-111303"], ["updated_at", "2014-12-02 22:58:13.240132"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.250872"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:13.250872"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:58:13.252902' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.270485"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:13.270485"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:58:13.273575"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.275144' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:13.277513' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.279285"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:13.279285"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:13.280034' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 22:58:13.282608"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.283899' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:58:13.290461' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.309632"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:13.309632"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 22:58:13.312633"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.314274' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:13.316482' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:13.317567' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.321294"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:58:13.321294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'ZMAKEGAM' ORDER BY spree_payments.created_at LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 22:58:13.330163"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.331527' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.337905"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:13.337905"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:58:13.340520' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.360701"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:13.360701"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 22:58:13.363776"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.365408' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:13.367635' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.369268"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:13.369268"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:13.370117' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.371498"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:58:13.371498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.380737"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:13.380737"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:58:13.381692' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.398822"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:13.398822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 22:58:13.402122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.403832' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:13.406018' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.407780"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:13.407780"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 22:58:13.408628' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (52.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'gustave@berge.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175610934562xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:58:13.475906"], ["email", "gustave@berge.com"], ["encrypted_password", "247b733fab05439b165826b4064b3d2b96b2b54ad57ea5e79e3d74e2a6ddb221f436a8c1e4aee189d5b709ca299fddf919ba424319abb6c694efb878dea083ee"], ["login", "gustave@berge.com"], ["password_salt", "Gg2daf2P1BH14xqyNNkt"], ["updated_at", "2014-12-02 22:58:13.475906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:58:13.479871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:58:13.481105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:58:13.482487"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:58:13.482487"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:58:13.485095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:58:13.486441"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:58:13.486441"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R213238093' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R213238093%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R213238093' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bcJwZ5HKadGRDLjIQjgTAQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:58:13.492736"], ["currency", "USD"], ["email", "gustave@berge.com"], ["guest_token", "bcJwZ5HKadGRDLjIQjgTAQ"], ["number", "R213238093"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:58:13.492736"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:58:13.500904"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 22:58:13.500904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 524622' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.503581"], ["description", "Dolorem corporis et labore eum velit unde possimus perferendis."], ["name", "TaxCategory - 524622"], ["updated_at", "2014-12-02 22:58:13.503581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:58:13.507289"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:58:13.507289"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-2047' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-2047' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:13.499777"], ["created_at", "2014-12-02 22:58:13.511335"], ["description", "Molestiae vel voluptas impedit nihil dolor voluptates voluptatum architecto. Qui quia ut qui autem cumque in qui id. Iusto similique et nisi id placeat ut inventore.\nIure quo ut qui dolor. Aut autem laborum eos eligendi. Praesentium suscipit ipsam sed sequi blanditiis. Sint optio et sed consequatur perferendis quae est.\nUt accusamus aut exercitationem debitis et. Illum possimus quae voluptate non eum. Quibusdam et nesciunt corporis impedit repudiandae dicta exercitationem.\nAperiam id accusantium a corporis. Est saepe laboriosam neque magnam beatae. Expedita facere amet voluptatem quia alias ullam est."], ["name", "Product #6 - 2047"], ["shipping_category_id", 1], ["slug", "product-6-2047"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:13.511335"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-12-02 22:58:13.513552"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.515556' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.516657' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.517980' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.518713' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:13.525259"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:13.525259"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.526854' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.527733' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.529464' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.530144' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.534527' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.535071' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.535570' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:13.537357"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.538110' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.538617' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.539100' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.539641' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.540112' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:13.545106"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:13.545106"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-2047' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.550867' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:13.556998' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-5793' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-5793' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:13.564023"], ["created_at", "2014-12-02 22:58:13.567867"], ["description", "Nulla accusamus vel eos alias quisquam. Dolorum qui est illo incidunt quidem. Et architecto quasi voluptas placeat veniam. Est harum autem quo nobis distinctio omnis dolores. Dicta voluptatibus voluptatem dolore aut magni.\nFugit amet dolor voluptatem velit. Voluptatem enim labore et facere quas id totam quos. Voluptatem minima aut est totam laboriosam similique. Molestias quo voluptatibus ipsa vel autem maxime ut. Eos rerum ad temporibus nihil.\nNecessitatibus placeat in et magnam ducimus non repellat. Velit vel sit qui necessitatibus. Doloribus ipsam assumenda earum voluptatem. Possimus sed fugiat porro inventore voluptatem suscipit rerum. Quis nulla voluptatibus deserunt suscipit expedita totam iure voluptas.\nNostrum ut rerum fuga autem. Et voluptatem in cupiditate et aliquam voluptas. Sed eveniet et tempore aut commodi sunt odit labore. Voluptatem dolorum molestias ea repellat et quibusdam. Minima aliquid debitis voluptatem aut autem."], ["name", "Product #7 - 5793"], ["shipping_category_id", 1], ["slug", "product-7-5793"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:13.567867"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-12-02 22:58:13.570051"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.572051' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.573126' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.574434' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.574972' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:13.577866"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:13.577866"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.578810' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.579336' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.580466' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.580973' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.584906' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.585437' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.585998' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:13.587648"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.588286' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.588810' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.589298' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.589838' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.590279' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:13.594979"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:13.594979"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-5793' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.600985' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:13.607009' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3606' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3606' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:13.613229"], ["created_at", "2014-12-02 22:58:13.617049"], ["description", "Minima est eaque qui iure facere mollitia excepturi voluptas. Ad et nulla cupiditate illo. Praesentium non nemo explicabo magnam. Explicabo qui quibusdam enim ut vitae id doloribus ratione. Ratione provident pariatur voluptatem officiis inventore aut.\nSimilique qui porro quam maxime. Doloribus eius blanditiis facere ex tempore ducimus vel. Minima saepe aperiam et temporibus molestias et. Iusto sed laborum qui veritatis dolorem explicabo dolore. Ea et est corrupti provident.\nQui fuga cum facere sed. Temporibus est numquam voluptate sit. Laborum minus voluptas odit optio."], ["name", "Product #8 - 3606"], ["shipping_category_id", 1], ["slug", "product-8-3606"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:13.617049"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-12-02 22:58:13.619359"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.621241' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.622309' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.623823' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.624386' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:13.627392"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:13.627392"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.628312' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.628880' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.630073' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.646158' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.650628' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.651214' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.651732' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:13.653403"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.654021' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.654459' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.654968' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.655508' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.655971' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:13.660675"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:13.660675"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3606' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.666438' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:13.672377' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-7331' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-7331' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:13.677378"], ["created_at", "2014-12-02 22:58:13.681182"], ["description", "Soluta ea ipsa animi est illo accusamus dolorem quia. Dolores sint cupiditate molestiae officiis tempore quasi. Nobis nam officiis iusto aut ipsa et cumque.\nIllo hic qui ipsa et. Non dolorem illo et fuga et sapiente. Et voluptatem nulla velit suscipit. Et distinctio adipisci dolorem commodi sunt quibusdam cumque similique."], ["name", "Product #9 - 7331"], ["shipping_category_id", 1], ["slug", "product-9-7331"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:13.681182"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-12-02 22:58:13.683356"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.685336' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.686375' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.687652' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.688241' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:13.691092"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:13.691092"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.691969' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.692473' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.693852' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.694348' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.698297' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.698819' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.699334' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:13.700937"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.701560' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.702038' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.702513' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.703040' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.703520' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:13.708657"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:13.708657"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-7331' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.714456' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:13.720133' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-4115' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-4115' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:13.724529"], ["created_at", "2014-12-02 22:58:13.728515"], ["description", "Qui ut nesciunt soluta doloribus. Qui rem quia beatae veniam exercitationem nihil. Nam maxime consequuntur consequatur necessitatibus alias. Explicabo adipisci dolorem quaerat omnis ut vitae."], ["name", "Product #10 - 4115"], ["shipping_category_id", 1], ["slug", "product-10-4115"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:13.728515"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-12-02 22:58:13.730656"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.732554' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.733603' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.735236' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.735790' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:13.738638"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:13.738638"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.739500' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.740009' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.741130' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.741778' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.745761' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.746326' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.746831' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:13.748482"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.749108' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.749576' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.750069' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.750616' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.751065' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:13.755604"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:13.755604"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-4115' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.5ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.762015' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:13.767762' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:58:13.772628"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:58:13.772628"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:13.776081"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:13.776081"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.777228' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.778357' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.779570' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.780124' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:13.782614"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:13.782614"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.783532' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.784681' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.785804' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.786285' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:13.788625"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:13.788625"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.789421' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.790433' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.791544' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.792089' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:13.794652"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:13.794652"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.795549' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.796706' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.797883' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.798359' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:13.800672"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:13.800672"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:13.801478' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:13.802501' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:13.803615' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:13.804188' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H08843500486%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:58:13.807243"], ["number", "H08843500486"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:58:13.807243"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.808254' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:13.811318' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.814987"], ["description", "Officiis facere nemo aspernatur et aliquid."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:58:13.814987"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.816476"], ["updated_at", "2014-12-02 22:58:13.816476"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:58:13.825937"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:58:13.825937"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:58:13.826719"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:58:13.826719"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.828075"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:13.828075"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:58:13.830856"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:13.830856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.834463"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:13.834463"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:13.835218' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.835772' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.837119"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:13.837119"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:13.837759' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.838158' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.839425"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:13.839425"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:13.840062' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.840480' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.841771"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:13.841771"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:13.842388' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.842803' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.844336"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:13.844336"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:13.845056' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.845533' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:13.853940' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.872890"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:13.872890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:58:13.876142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.877683' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:58:13.878276' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.881739"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:58:13.881739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.883760"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:58:13.883760"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'NZRE9HVS' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:58:13.885422"], ["identifier", "NZRE9HVS"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:58:13.885422"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.887622' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-232343' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-232343"], ["updated_at", "2014-12-02 22:58:13.888776"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.891575"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:13.891575"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:58:13.893243' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.910503"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:13.910503"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:58:13.913562"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.915068' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:13.917365' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.919157"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:13.919157"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:13.919906' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 22:58:13.922321"]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.923508' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:58:13.930139' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.949805"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:13.949805"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 22:58:13.952988"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.954622' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:13.956795' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:13.957923' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.959528"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:58:13.959528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'NZRE9HVS' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 22:58:13.963279"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.964509' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.970680"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:13.970680"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:58:13.973286' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:13.992852"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:13.992852"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 22:58:13.995919"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:13.997553' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:13.999828' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:14.001474"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:14.001474"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:14.002272' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:14.003554"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:58:14.003554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:14.013180"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:14.013180"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:58:14.014223' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:14.044129"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:14.044129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 22:58:14.047742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:14.049811' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:14.052262' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:14.053970"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:14.053970"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 22:58:14.054814' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (167.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shana.wisozk@rodriguezschmeler.biz' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175611168691xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:58:36.033589"], ["email", "shana.wisozk@rodriguezschmeler.biz"], ["encrypted_password", "ac9c8eb5e9fc40d381f7bf8f137c3e521a8469784ba473d174d7f9d501eecddfa9733eeb780ff68e084a277e68740619dee0b470d310d14ef2c191926e4cb5fb"], ["login", "shana.wisozk@rodriguezschmeler.biz"], ["password_salt", "LN81aRqmiMCxwhBu2Aa1"], ["updated_at", "2014-12-02 22:58:36.033589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:58:36.070514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:58:36.076874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:58:36.086145"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:58:36.086145"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:58:36.110081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:58:36.111637"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:58:36.111637"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R981873390' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R981873390%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R981873390' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '8UGt0ydEqqzx06ovvm34iQ' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:58:36.130292"], ["currency", "USD"], ["email", "shana.wisozk@rodriguezschmeler.biz"], ["guest_token", "8UGt0ydEqqzx06ovvm34iQ"], ["number", "R981873390"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:58:36.130292"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:58:36.191691"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 22:58:36.191691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 915434' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.202608"], ["description", "Dignissimos quod et aliquid blanditiis rem dolorem non qui."], ["name", "TaxCategory - 915434"], ["updated_at", "2014-12-02 22:58:36.202608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:58:36.229777"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:58:36.229777"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-5143' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-5143' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:36.187297"], ["created_at", "2014-12-02 22:58:36.235293"], ["description", "Corrupti voluptate sint optio atque libero ipsum. Blanditiis deleniti ipsam est velit. Magnam voluptas ut deleniti aut et quia. Aut tempora libero cum deleniti placeat cupiditate.\nIn ipsa sunt laboriosam omnis voluptas. Ut illum enim quidem vitae temporibus eos aut. Minima voluptatem autem nam et voluptas. Iste rem sit eum excepturi tempore. Et ab voluptate dolorem alias qui nostrum occaecati ex.\nDignissimos minima ducimus occaecati molestias. Fugit quasi doloremque laboriosam occaecati iste veniam. Dolorem quo quas neque sapiente optio porro qui quia.\nMaiores doloremque est sunt quia cupiditate iure aut. Similique libero natus aut eos. Ducimus id hic quia necessitatibus nihil et qui nam.\nCorporis quo non enim nesciunt hic ea suscipit molestiae. Accusantium atque consequuntur temporibus eligendi consequatur totam. Atque et voluptas unde iusto perspiciatis et qui aliquam. Ad amet cumque culpa ratione dolor. At et cumque molestiae qui quis dolores."], ["name", "Product #1 - 5143"], ["shipping_category_id", 1], ["slug", "product-1-5143"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:36.235293"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 22:58:36.238042"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.246054' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.247359' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.263015' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.264298' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:36.289407"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:36.289407"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.290766' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.291370' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.292604' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.293124' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.304337' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.304953' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.305519' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:36.307326"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.308599' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.309073' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.309529' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.310077' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.310549' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:36.329168"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:36.329168"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-5143' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.346493' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:36.409169' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-5469' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-5469' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:36.413759"], ["created_at", "2014-12-02 22:58:36.417771"], ["description", "Fugiat et officia quia sint vero dolores in. Explicabo doloribus ut dolorem beatae vel dolore. Dolorem consectetur iusto labore expedita omnis."], ["name", "Product #2 - 5469"], ["shipping_category_id", 1], ["slug", "product-2-5469"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:36.417771"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 22:58:36.419965"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.422004' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.423130' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.424417' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.424969' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:36.427916"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:36.427916"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.428916' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.429433' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.430611' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.431100' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.435155' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.435744' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.436270' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:36.437776"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.438462' WHERE "spree_products"."id" = 2 SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.438914' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.439344' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.439878' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.440313' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:36.444782"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:36.444782"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-5469' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.450523' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:36.456182' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5636' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5636' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:36.461212"], ["created_at", "2014-12-02 22:58:36.464908"], ["description", "Sed ut dicta doloremque officia assumenda iste. Suscipit repudiandae impedit alias aut repellendus eaque dolorem. Hic aut saepe nemo itaque non sapiente omnis et.\nQuod ipsum labore repudiandae consequuntur eum minima. Suscipit iste voluptas voluptatem quia non sit et ab. Quae ipsum in suscipit aut est et odit repellat.\nError delectus labore rem qui. Est iusto praesentium repudiandae eum. Laudantium sed itaque eaque in."], ["name", "Product #3 - 5636"], ["shipping_category_id", 1], ["slug", "product-3-5636"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:36.464908"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 22:58:36.466987"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.468771' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.469788' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.470935' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.471449' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:36.474458"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:36.474458"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.475503' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.475967' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.477051' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.477578' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.481576' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.482075' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.482571' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:36.484097"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.484754' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.485213' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.485687' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.486211' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.486643' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:36.491218"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:36.491218"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5636' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.500946' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:36.507622' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-7629' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-7629' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:36.514303"], ["created_at", "2014-12-02 22:58:36.518231"], ["description", "Nihil odio sed corrupti praesentium nihil. Et veritatis assumenda iste iure. Sunt eos dolores voluptas iste non quis est. Omnis quibusdam reiciendis consequatur expedita ut qui sit. Beatae eum sit praesentium tempora officiis itaque quasi.\nEligendi quas magnam dignissimos et voluptas consequatur velit. Voluptatum fugit quia vel deserunt. Fugiat commodi necessitatibus consectetur ipsa magni quos.\nQuasi molestias ea labore dignissimos facere reiciendis consequatur. Quos delectus quo distinctio sint id accusantium. Exercitationem ut ea voluptatem modi optio libero sunt facilis. Vero dolorem ipsum ut consequatur.\nQui sed provident est sunt aspernatur consectetur et aut. Voluptas tempora alias aut ad et error vero facere. Maxime unde quaerat odit neque.\nA error aut nihil inventore maiores ut autem expedita. Expedita facilis suscipit dolorum est et enim. Ducimus molestias pariatur ad eum voluptas. Ullam dolorum fugiat dignissimos ut quo recusandae pariatur id."], ["name", "Product #4 - 7629"], ["shipping_category_id", 1], ["slug", "product-4-7629"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:36.518231"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 22:58:36.520579"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.522815' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.524039' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.525274' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.525932' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:36.529109"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:36.529109"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.530024' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.530529' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.531737' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.532218' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.536273' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.536765' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.537258' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:36.538793"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.539444' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.539890' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.540345' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.540886' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.541334' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:36.545823"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:36.545823"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-7629' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.551425' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:36.556944' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-6682' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-6682' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:36.561863"], ["created_at", "2014-12-02 22:58:36.565425"], ["description", "Ex rerum est voluptatem aut. Doloribus veniam qui fugiat aut. Incidunt doloribus velit minima eos sit repellendus. Unde odit sed dolore fugiat.\nEx unde aliquid dolorem blanditiis recusandae. Qui sint ducimus recusandae cupiditate perferendis eos. Quo commodi officiis rerum ea eos earum."], ["name", "Product #5 - 6682"], ["shipping_category_id", 1], ["slug", "product-5-6682"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:36.565425"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 22:58:36.567482"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.569348' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.570379' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.571649' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.572221' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:36.575223"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:36.575223"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.576135' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.576703' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.577864' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.578329' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.582300' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.582823' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.583357' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:36.584947"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.585635' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.586115' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.586567' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.587103' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.587568' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:36.592112"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:36.592112"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-6682' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.602224' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:36.608694' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:58:36.627933"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:58:36.627933"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:36.631609"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:36.631609"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.632619' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.633842' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.635124' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.635729' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:36.638250"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:36.638250"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.639082' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.640112' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.641274' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.641757' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:36.644154"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:36.644154"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.644977' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.645975' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.3ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.647137' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.648559' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:36.653742"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:36.653742"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.655177' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.656860' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.658578' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.659235' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:36.662133"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:36.662133"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:36.663049' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:36.664150' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:36.665421' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:36.665940' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H12263426865%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:58:36.671556"], ["number", "H12263426865"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:58:36.671556"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.672627' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:36.678628' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.697074"], ["description", "Autem esse quia cupiditate corporis."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:58:36.697074"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.700168"], ["updated_at", "2014-12-02 22:58:36.700168"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:58:36.743207"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:58:36.743207"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:58:36.744234"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:58:36.744234"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.746040"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:36.746040"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:58:36.760461"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:36.760461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.775340"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:36.775340"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:36.776579' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.777274' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.778885"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:36.778885"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:36.779584' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.780085' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.781433"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:36.781433"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:36.782189' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.782760' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.784084"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:36.784084"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:36.784755' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.785200' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.786543"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:36.786543"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:36.787203' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.787648' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:36.804023' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.856527"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:36.856527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:58:36.860065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.861702' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:58:36.862285' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.883085"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:58:36.883085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.896061"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:58:36.896061"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '4T8R89BB' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:58:36.907475"], ["identifier", "4T8R89BB"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:58:36.907475"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.910459' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-330051' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-330051"], ["updated_at", "2014-12-02 22:58:36.911818"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.922431"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:36.922431"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:58:36.924621' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.941863"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:36.941863"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:58:36.944982"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.946538' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:36.948872' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.950637"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:36.950637"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:36.951391' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 22:58:36.953887"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.955148' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:58:36.962191' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.981815"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:36.981815"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 22:58:36.984905"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:36.986654' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:36.988958' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:36.990187' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:36.993902"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:58:36.993902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = '4T8R89BB' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 22:58:37.002835"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.004145' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.010189"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:37.010189"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:58:37.012785' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.032308"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:37.032308"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 22:58:37.035345"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.037536' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:37.040523' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.043272"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:37.043272"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:37.044150' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.045462"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:58:37.045462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.054734"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:37.054734"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:58:37.055744' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.072957"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:37.072957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 22:58:37.076249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.078024' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:37.080239' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.081938"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:37.081938"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 22:58:37.082790' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (49.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Spree::User Exists (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'noelia_zboncak@rohan.ca' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175611179412xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:58:37.146952"], ["email", "noelia_zboncak@rohan.ca"], ["encrypted_password", "41d85ed1fa13087686399c95ebacbc5929abc742532e17439a280838d5287fe6d8d053f632b59b3ea5af65478d50142db8631480499dd5dddf110c8c852523a8"], ["login", "noelia_zboncak@rohan.ca"], ["password_salt", "Ed5vxojuJBRrviZA6Z_X"], ["updated_at", "2014-12-02 22:58:37.146952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:58:37.152247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:58:37.154224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:58:37.156185"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:58:37.156185"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:58:37.158924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:58:37.160570"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:58:37.160570"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R383953117' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R383953117%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R383953117' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hEROypQyLxduihSxAXzS7Q' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:58:37.166715"], ["currency", "USD"], ["email", "noelia_zboncak@rohan.ca"], ["guest_token", "hEROypQyLxduihSxAXzS7Q"], ["number", "R383953117"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:58:37.166715"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:58:37.176488"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 22:58:37.176488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 273149' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.182086"], ["description", "Earum tenetur beatae voluptatem explicabo et."], ["name", "TaxCategory - 273149"], ["updated_at", "2014-12-02 22:58:37.182086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:58:37.187061"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:58:37.187061"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-1702' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-1702' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:37.174235"], ["created_at", "2014-12-02 22:58:37.190965"], ["description", "Eos voluptas repellendus ea et ex qui omnis. Qui nihil provident necessitatibus eligendi nihil maiores voluptatibus. Voluptas expedita quos facilis harum occaecati quia ipsa non. Quia eaque voluptatem et doloremque ipsa repudiandae.\nMaxime voluptatem qui mollitia voluptas. Voluptas vitae eum quaerat beatae alias. Aliquam quia quae porro itaque consequatur perferendis ad eius. Sint dolorum voluptate molestias eos et exercitationem quisquam.\nUt quia consequuntur ipsa corporis est aperiam quidem natus. Fugiat provident doloribus mollitia dolorum vitae voluptas rerum accusamus. Non dolorum aliquam maxime at sint voluptatem commodi. Id cumque sapiente minus ea tenetur itaque.\nAccusamus velit voluptatem quae nemo ea quo. Hic quia esse aperiam eius vel. Perspiciatis excepturi eos velit natus. Rerum non quia dolorem minus quia dignissimos laborum."], ["name", "Product #6 - 1702"], ["shipping_category_id", 1], ["slug", "product-6-1702"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:37.190965"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-12-02 22:58:37.193339"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.195575' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.196813' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.198189' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.198760' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:37.201674"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:37.201674"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.202614' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.203146' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.204243' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.204731' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.208790' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.209340' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.209834' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:37.211504"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.212175' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.212646' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.213106' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.213671' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.214093' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.4ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:37.218772"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:37.218772"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-1702' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.229358' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:37.235826' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-8524' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-8524' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:37.243131"], ["created_at", "2014-12-02 22:58:37.246863"], ["description", "Doloremque eaque aut eos qui fugit qui aut. Soluta ex aliquam quo beatae unde. Ut aliquam sunt rem sed inventore consectetur. Quia quibusdam quidem ex sit.\nVelit itaque dolorum ullam nostrum. Eum sit cum non velit id beatae. Modi saepe minus dolore tempora suscipit exercitationem blanditiis cupiditate. Ut est ea et qui. Reprehenderit ipsum ratione quia corrupti provident dicta voluptatem.\nExpedita qui omnis ut voluptate ut vero. Soluta et ut odit officiis assumenda. Consequuntur velit perspiciatis harum dolores. Corporis et delectus sit laborum fuga. Harum fugiat debitis occaecati officia autem ullam odit inventore.\nEum suscipit non est deserunt itaque. Ut maiores laudantium aliquam et non. Dolores debitis occaecati nihil a. Necessitatibus voluptatem ut iusto libero quia.\nEst quod sit nam rerum ab delectus voluptates sapiente. Sint voluptas sint doloribus voluptatem quia magni iste. Iste provident numquam magnam maiores sunt. Ipsa repudiandae ut a aspernatur sit quos sed. Excepturi deserunt accusantium labore sit."], ["name", "Product #7 - 8524"], ["shipping_category_id", 1], ["slug", "product-7-8524"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:37.246863"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-12-02 22:58:37.249151"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.251108' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.252270' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.253641' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.254208' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:37.257259"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:37.257259"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.258201' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.258701' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.259824' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.260299' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.264291' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.264823' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.265339' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:37.266919"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.267613' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.268073' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.268543' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.269086' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.269529' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:37.275255"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:37.275255"], ["variant_id", 2]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-8524' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.283919' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:37.290012' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3908' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3908' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:37.295081"], ["created_at", "2014-12-02 22:58:37.299018"], ["description", "Et laboriosam quis non dolore cupiditate. Sint est non numquam qui blanditiis consequatur. Ut a exercitationem rerum aut voluptates rem quia. Omnis non eos praesentium est soluta inventore exercitationem. Ut quam sint modi doloribus non odit aut."], ["name", "Product #8 - 3908"], ["shipping_category_id", 1], ["slug", "product-8-3908"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:37.299018"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-12-02 22:58:37.301476"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.303577' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.304700' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.305928' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.306518' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:37.309533"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:37.309533"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.310538' WHERE "spree_variants"."id" = 3 SQL (15.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.311063' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.327583' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.328157' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.332287' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.332819' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.333335' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:37.335014"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.335655' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.336095' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.336590' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.337162' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.337592' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:37.342226"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:37.342226"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3908' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.348020' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:37.353652' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-9858' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-9858' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:37.359000"], ["created_at", "2014-12-02 22:58:37.362714"], ["description", "Doloribus sit doloremque distinctio vel commodi. Id velit quia excepturi voluptatem mollitia. Laborum eligendi doloremque sed quos voluptas. Iure dolores quisquam aut earum quia in.\nExpedita est similique molestiae aperiam sunt quam. Optio quos ullam inventore aut illo accusamus fuga exercitationem. Molestiae consequatur atque veniam adipisci laboriosam nisi itaque et.\nLabore qui itaque quas aut voluptatem dolor explicabo. Esse reprehenderit unde totam perspiciatis. Animi facere perspiciatis mollitia ut ea veniam nulla aliquid."], ["name", "Product #9 - 9858"], ["shipping_category_id", 1], ["slug", "product-9-9858"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:37.362714"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-12-02 22:58:37.364842"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.366710' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.367734' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.368966' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.369509' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:37.372313"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:37.372313"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.373164' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.373664' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.374763' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.375265' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.379272' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.379846' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.380373' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:37.381965"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.382613' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.383030' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.383488' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.384081' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.384559' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:37.389223"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:37.389223"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-9858' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.394895' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:37.400772' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-5561' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-5561' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:58:37.406386"], ["created_at", "2014-12-02 22:58:37.410024"], ["description", "Dolores aut eligendi corrupti fugiat eum nihil quibusdam aliquid. Iusto cumque libero dolor delectus consectetur necessitatibus adipisci. Voluptas et et sed dolor eligendi velit.\nEst ut non voluptas facilis sequi quam autem. Ex impedit qui aut tempore nesciunt est. Eveniet eligendi quis enim tenetur. Nisi aut repudiandae voluptatem asperiores.\nMolestiae et accusamus ex veritatis optio. Numquam beatae vero sed consequatur laudantium quae voluptatem sunt. Fugiat sed nostrum repellendus ipsa nulla omnis quia. Temporibus dignissimos laboriosam quas deleniti porro perferendis optio error. Ipsum similique dolor a veritatis."], ["name", "Product #10 - 5561"], ["shipping_category_id", 1], ["slug", "product-10-5561"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:37.410024"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-12-02 22:58:37.412137"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.414015' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.415052' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.416230' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.416813' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:37.419755"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:58:37.419755"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.420622' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.421105' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.422157' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.422647' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.426411' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.426907' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.427388' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:58:37.428900"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.429512' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.429962' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.430397' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.430915' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.431345' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:58:37.435831"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:58:37.435831"], ["variant_id", 5]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-5561' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.443722' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:37.450287' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:58:37.455070"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:58:37.455070"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:37.458595"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:37.458595"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.459479' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.460609' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.461826' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.462391' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:37.464836"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:37.464836"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.465647' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.466651' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.467746' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.468229' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:37.470537"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:37.470537"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.471336' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.472323' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.473430' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.473982' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:37.479529"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:37.479529"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.481086' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.482687' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.484528' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.485167' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:58:37.490246"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:58:37.490246"], ["variant_id", 5]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:58:37.491906' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:58:37.493738' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:58:37.495536' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:58:37.496327' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H42131068118%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:58:37.499859"], ["number", "H42131068118"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:58:37.499859"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.500745' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:58:37.503919' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.507770"], ["description", "Molestiae ut ipsa vel eius dolorum."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:58:37.507770"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.509352"], ["updated_at", "2014-12-02 22:58:37.509352"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:58:37.518311"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:58:37.518311"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:58:37.519087"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:58:37.519087"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.520407"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:37.520407"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:58:37.523153"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:37.523153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.526990"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:37.526990"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:37.527868' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.528556' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.530117"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:37.530117"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:37.530849' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.531338' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.532686"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:37.532686"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:37.533369' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.533798' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.535112"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:37.535112"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:37.535827' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.536296' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.537808"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:58:37.537808"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:58:37.538454' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.538984' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:37.547621' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.566359"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:37.566359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:58:37.569581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.571147' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:58:37.571717' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.575092"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:58:37.575092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.577104"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:58:37.577104"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'RY68LJFU' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:58:37.578714"], ["identifier", "RY68LJFU"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:58:37.578714"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.580966' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-524453' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-524453"], ["updated_at", "2014-12-02 22:58:37.582137"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.584958"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:37.584958"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:58:37.586620' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.603872"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:37.603872"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:58:37.607001"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.608437' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:37.610687' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.612261"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:37.612261"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:37.613058' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 22:58:37.615485"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.616713' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:58:37.623284' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.641977"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:37.641977"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 22:58:37.645020"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.647437' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:37.650077' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:37.651225' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.652575"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:58:37.652575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'RY68LJFU' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 22:58:37.655987"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.657260' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.663382"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:37.663382"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:58:37.666624' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.685659"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:37.685659"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 22:58:37.688716"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.690331' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:37.692576' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.694269"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:37.694269"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:58:37.695103' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.696403"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:58:37.696403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.706184"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:37.706184"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:58:37.707235' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.737162"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:58:37.737162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 22:58:37.740635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:58:37.742394' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:58:37.744591' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:58:37.746317"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:58:37.746317"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 22:58:37.747218' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (156.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jada.kunze@luettgen.biz' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175611813121xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:59:41.708490"], ["email", "jada.kunze@luettgen.biz"], ["encrypted_password", "cd7010f97d83bcd4d97ff3143f7127cdd88a67c100f173e6a7f6c198af3bb46ae9fddaf83857898a71dd4e93c5820fe136558483875d0d5ded6b1472a917eb89"], ["login", "jada.kunze@luettgen.biz"], ["password_salt", "xbskVGcZcSJjz4KWsQo8"], ["updated_at", "2014-12-02 22:59:41.708490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:59:41.743369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:59:41.753607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:59:41.764190"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:59:41.764190"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:59:41.787045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:59:41.788530"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:59:41.788530"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R718834712' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R718834712%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R718834712' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'nDhtZddgk0UX5x4460PnUw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:59:41.807095"], ["currency", "USD"], ["email", "jada.kunze@luettgen.biz"], ["guest_token", "nDhtZddgk0UX5x4460PnUw"], ["number", "R718834712"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:59:41.807095"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:59:41.866778"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 22:59:41.866778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 946939' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:59:41.877684"], ["description", "Magni voluptas ab quasi id."], ["name", "TaxCategory - 946939"], ["updated_at", "2014-12-02 22:59:41.877684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:59:41.902850"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:59:41.902850"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-7120' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-7120' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:59:41.862401"], ["created_at", "2014-12-02 22:59:41.908369"], ["description", "Sed rerum impedit numquam quia totam ipsum. Similique exercitationem velit consequatur veniam. Dolores quas qui est occaecati repudiandae facere at. Ipsam temporibus consequatur quia repudiandae recusandae ullam incidunt. Placeat quas est non aperiam iure quo blanditiis.\nCommodi dolorem eligendi porro magni. Aspernatur cupiditate reiciendis sunt illo qui vel quia quam. Omnis dolorum quo voluptas nihil aut. Sapiente qui aliquid fugiat sunt quo fuga totam. Totam quia blanditiis possimus voluptatem.\nTenetur itaque aliquid ex vel voluptas quo non aut. Et culpa et est sit repudiandae voluptas dolor esse. Quae expedita molestias harum possimus necessitatibus enim aut adipisci.\nSed recusandae dolorem rem molestias. Dolorem sed non est placeat. Aut reiciendis vel quia earum temporibus quia quidem unde.\nMaxime non quas et molestiae quis. Provident sapiente consequatur quia libero atque. Beatae aut nemo hic ipsam optio voluptatibus. Animi dolorum eligendi quo aut dolores fugiat harum. Tempora reiciendis est dolore nihil ducimus."], ["name", "Product #1 - 7120"], ["shipping_category_id", 1], ["slug", "product-1-7120"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:41.908369"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 22:59:41.911091"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:41.919134' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:41.920438' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:41.934780' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:41.936038' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:41.959546"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:59:41.959546"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:41.960966' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:41.961605' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:41.962947' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:41.963503' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:41.974843' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:41.975500' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:41.976060' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:59:41.977862"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:41.979130' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:41.979641' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:41.980135' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:41.980697' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:41.981146' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:59:41.999535"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:41.999535"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-7120' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.020670' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:59:42.032930' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-4607' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-4607' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:59:42.040973"], ["created_at", "2014-12-02 22:59:42.045702"], ["description", "Commodi eum eaque recusandae odit excepturi. Eos sed omnis voluptatem eum animi et sint iure. Quas soluta qui quia repellat culpa perferendis enim. Quo quae enim fuga occaecati.\nOmnis aut libero non ullam nobis vel vero. Vel placeat est quis debitis et velit dignissimos rem. Autem et sed unde molestiae laboriosam ut eligendi aut.\nAdipisci corrupti est occaecati id. Natus vel ratione nobis blanditiis facilis aut nostrum accusantium. Esse voluptatem autem rerum dolorum quisquam aut odit quam. Et accusamus dolorum necessitatibus consequatur. Omnis numquam sunt maiores inventore commodi.\nMinus quisquam quaerat tempora voluptate. Accusamus sapiente quia est id occaecati molestiae ratione. Est dolor voluptas impedit doloribus officia. Quisquam dolorem tempora ut iusto soluta veritatis eos. Ut aut ipsa occaecati accusamus nesciunt.\nCupiditate qui dolore facilis id nobis. Ab culpa cum error in voluptatem velit libero repudiandae. Blanditiis ut fugiat saepe labore incidunt omnis ut culpa. Aut velit occaecati nemo enim neque sed."], ["name", "Product #2 - 4607"], ["shipping_category_id", 1], ["slug", "product-2-4607"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:42.045702"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 22:59:42.100575"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.102659' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.103800' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.104989' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.105528' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:42.108368"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:59:42.108368"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.109330' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.109822' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.110915' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.111421' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.115574' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.116155' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.116646' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:59:42.118273"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.118995' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.119456' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.119911' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.120450' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.120916' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:59:42.125700"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:42.125700"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-4607' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.136037' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:59:42.142423' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-7722' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-7722' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:59:42.146947"], ["created_at", "2014-12-02 22:59:42.150657"], ["description", "Quia odit aperiam nostrum repudiandae similique reprehenderit. Autem architecto voluptatem sed eligendi consectetur deleniti ut blanditiis. Cupiditate alias eligendi harum est omnis ab voluptas. Nihil ea est laborum ipsam tenetur est commodi. Enim modi est eos unde."], ["name", "Product #3 - 7722"], ["shipping_category_id", 1], ["slug", "product-3-7722"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:42.150657"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 22:59:42.152721"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.154590' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.155593' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.156847' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.157396' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:42.160260"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:59:42.160260"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.161097' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.161625' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.162756' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.163216' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.167097' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.167617' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.168118' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:59:42.169714"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.170405' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.170874' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.171350' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.171898' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.172340' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:59:42.177025"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:42.177025"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-7722' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.187044' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:59:42.193556' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-985' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-985' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:59:42.200600"], ["created_at", "2014-12-02 22:59:42.204279"], ["description", "Quasi et voluptate fuga in excepturi quo reprehenderit alias. Nobis sunt et earum voluptas inventore laborum. Ipsam magnam est beatae enim id laboriosam. Quia error corrupti voluptatibus inventore sunt doloremque in dolor.\nExplicabo illo aut quis delectus eius debitis minima dolore. Fugit consectetur nihil eaque dolores doloremque assumenda quibusdam est. Esse ipsam iusto saepe recusandae nihil. Nisi quo fuga eum nihil consequatur quo. Excepturi aliquam eos rerum aut dolor consequatur.\nDeserunt assumenda fuga necessitatibus voluptas quos aut. Sint molestiae beatae autem nam. Soluta est nihil consequatur cupiditate.\nMolestias sed et officiis vel labore aut. Velit cum molestiae consequatur voluptatem dolore vel consequuntur. Sunt illum odio ut nostrum totam facilis exercitationem. Eveniet quisquam cumque quia est.\nPraesentium omnis qui molestiae voluptatum omnis. Deleniti totam quae ut natus et. Esse provident praesentium sint ut magni rem modi corporis. Et provident ullam soluta expedita aut ut."], ["name", "Product #4 - 985"], ["shipping_category_id", 1], ["slug", "product-4-985"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:42.204279"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 22:59:42.206405"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.208256' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.209293' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.210453' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.211023' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:42.213876"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:59:42.213876"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.214806' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.215308' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.216367' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.216852' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.220829' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.221322' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.221828' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:59:42.223390"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.224055' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.224494' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.224996' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.225524' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.225935' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:59:42.230579"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:42.230579"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-985' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.236317' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:59:42.242002' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-6776' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-6776' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:59:42.247682"], ["created_at", "2014-12-02 22:59:42.251378"], ["description", "Sit atque ad vel nisi omnis ratione eveniet ea. Aut neque reiciendis asperiores et aliquam ea voluptatum. Fuga saepe voluptatem deserunt provident quam rerum numquam animi. Enim similique maxime architecto blanditiis occaecati qui. Corrupti hic quos ipsa aliquam alias id et nihil.\nConsequatur molestias consequatur qui perspiciatis. Doloremque nostrum et nobis exercitationem ratione deleniti. Eum qui dolor enim possimus reiciendis alias odit. Qui eaque et fugiat in sit ad. Id est itaque enim quia aut ratione.\nEt et facilis vitae quo ut iusto. Cum soluta et facere quo debitis. Blanditiis qui expedita velit recusandae."], ["name", "Product #5 - 6776"], ["shipping_category_id", 1], ["slug", "product-5-6776"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:42.251378"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 22:59:42.253494"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.255320' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.256375' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.257548' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.258093' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:42.260980"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:59:42.260980"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.261857' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.262366' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.263408' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.263872' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.267778' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.268280' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.268801' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:59:42.270383"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.271056' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.271495' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.271969' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.272519' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.272975' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:59:42.277621"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:42.277621"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-6776' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.283413' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:59:42.288916' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:59:42.306484"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:59:42.306484"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:42.310114"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:59:42.310114"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.311053' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.312180' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.313408' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.313951' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:42.316433"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:59:42.316433"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.317275' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.318314' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.319409' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.319871' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:42.322329"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:59:42.322329"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.323179' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.324200' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.325689' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.326234' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:42.329440"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:59:42.329440"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.330344' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.331404' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.332523' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.333022' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:42.335743"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:59:42.335743"], ["variant_id", 5]] SQL (0.3ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.336582' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.339325' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.341650' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.342683' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H42064068842%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:59:42.350859"], ["number", "H42064068842"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:59:42.350859"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.351962' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:59:42.358476' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.376970"], ["description", "Ex veritatis ut aliquam a libero ut tenetur."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:59:42.376970"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.380322"], ["updated_at", "2014-12-02 22:59:42.380322"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:59:42.425107"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:59:42.425107"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:59:42.426265"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:59:42.426265"]] SQL (0.2ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.428115"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:59:42.428115"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:59:42.442626"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:59:42.442626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.457681"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:59:42.457681"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:59:42.458872' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.459502' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.460962"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:59:42.460962"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:59:42.461589' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.462022' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.463342"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:59:42.463342"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:59:42.463973' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.464403' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.465834"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:59:42.465834"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:59:42.466466' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.466894' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.468194"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:59:42.468194"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:59:42.468813' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.469242' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:59:42.485729' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.538203"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:59:42.538203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:59:42.542084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.543917' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:59:42.544589' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.566207"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:59:42.566207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.578972"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:59:42.578972"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'AWLCGY4R' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:59:42.590597"], ["identifier", "AWLCGY4R"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:59:42.590597"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.593429' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-030314' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-030314"], ["updated_at", "2014-12-02 22:59:42.594748"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.605178"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:59:42.605178"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:59:42.607253' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.624835"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:59:42.624835"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:59:42.628281"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.629898' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:59:42.632329' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.634053"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:59:42.634053"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:59:42.634815' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 22:59:42.637281"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.638543' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:59:42.645157' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.664343"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:59:42.664343"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 22:59:42.667368"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.668954' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:59:42.671121' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:59:42.672206' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.675795"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:59:42.675795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'AWLCGY4R' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 22:59:42.684439"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.685676' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.691722"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:59:42.691722"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:59:42.694242' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.713763"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:59:42.713763"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 22:59:42.716900"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.718519' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:59:42.720713' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.722289"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:59:42.722289"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:59:42.723077' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.724282"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:59:42.724282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.733624"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:59:42.733624"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 22:59:42.734548' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.751716"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:59:42.751716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 22:59:42.755192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.756936' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:59:42.759150' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.760823"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:59:42.760823"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 22:59:42.761682' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (55.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'evie@funkkuvalis.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175611821282xxxxxxxxxxxxx"], ["created_at", "2014-12-02 22:59:42.830733"], ["email", "evie@funkkuvalis.biz"], ["encrypted_password", "a7d1b001b2d36a791914d86f5014d1471a242eed8fc249299b85670e8bcd7093e3f33903c5c9ce571fe128bed0094cea8f994e831c9b320e0b199421c0dd6265"], ["login", "evie@funkkuvalis.biz"], ["password_salt", "tdqT2sbdtCqygij-XKtB"], ["updated_at", "2014-12-02 22:59:42.830733"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 22:59:42.834861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:59:42.836104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:59:42.837527"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 22:59:42.837527"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 22:59:42.840159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 22:59:42.841447"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 22:59:42.841447"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R449205605' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R449205605%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R449205605' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'tunQOOkbt2u24-lVGFXCig' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 22:59:42.851832"], ["currency", "USD"], ["email", "evie@funkkuvalis.biz"], ["guest_token", "tunQOOkbt2u24-lVGFXCig"], ["number", "R449205605"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 22:59:42.851832"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:59:42.862721"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 22:59:42.862721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 182897' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:59:42.865709"], ["description", "Esse id voluptate alias voluptas ratione sunt."], ["name", "TaxCategory - 182897"], ["updated_at", "2014-12-02 22:59:42.865709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:59:42.869653"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:59:42.869653"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9833' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9833' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:59:42.861393"], ["created_at", "2014-12-02 22:59:42.874000"], ["description", "Illo consequuntur sed et recusandae libero nemo architecto. Natus quam soluta dolorum fugit. Officiis nostrum eligendi enim quae quia sint id qui. Ut minima nihil voluptas occaecati voluptatem.\nVitae velit optio ipsa ratione accusamus. Excepturi deleniti ab non possimus voluptatem quidem ut nisi. Cupiditate corporis vitae ut voluptatem ad molestiae nisi sequi.\nOdit cumque placeat ratione dolorem. Fugiat nihil sequi quasi assumenda suscipit. Rerum corporis inventore praesentium quo non. Labore voluptas eligendi beatae quia velit facere perferendis.\nQuibusdam quos praesentium repellat et est. Similique illum aliquam commodi nihil ullam fugit. Adipisci voluptatum repudiandae molestias velit rerum laborum enim placeat. Eum culpa eveniet dolorum quo consequatur sit.\nDolorum et aut velit voluptas et atque. Nihil molestiae eum officia rem expedita voluptas pariatur. Ut sed temporibus quia explicabo. Dolorem rerum autem recusandae qui natus est accusamus."], ["name", "Product #6 - 9833"], ["shipping_category_id", 1], ["slug", "product-6-9833"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:42.874000"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-12-02 22:59:42.876297"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.878286' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.879462' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.880786' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.881351' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:42.884251"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:59:42.884251"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.885231' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.885851' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.886958' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.887454' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.891501' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.892033' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.892584' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 22:59:42.894249"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.894947' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.895430' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.895888' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.896425' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.896854' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:59:42.901713"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:42.901713"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9833' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.907662' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:59:42.913481' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-656' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-656' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:59:42.919533"], ["created_at", "2014-12-02 22:59:42.923289"], ["description", "Nostrum vel eveniet maiores consequatur facere aut voluptate. Dicta corporis ipsa similique eos et adipisci molestias. Cumque vitae illo ut cupiditate est ullam corporis.\nOmnis doloribus qui quod error reprehenderit consequatur id voluptatum. Nisi et dolorum doloremque nemo ut. Dolores recusandae qui in minus ipsum voluptatem.\nEt laboriosam a quia iure ea harum. Et dolorem adipisci officia est ea voluptatem nemo provident. Temporibus aspernatur quae repellendus similique at autem assumenda aut.\nQui aut et saepe at a impedit sint eligendi. Aliquid omnis veniam sit exercitationem. Sit non molestiae dignissimos ratione. Provident molestiae sed ut modi molestias."], ["name", "Product #7 - 656"], ["shipping_category_id", 1], ["slug", "product-7-656"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:42.923289"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-12-02 22:59:42.925369"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.927347' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.928431' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.929709' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.930235' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:42.933510"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:59:42.933510"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.934565' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.935122' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.936264' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.936744' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.940773' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.941327' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.941855' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 22:59:42.943548"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.944229' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.944752' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.945232' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.945791' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.946235' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:59:42.950899"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:42.950899"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-656' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:42.956745' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:59:42.962458' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-1262' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-1262' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:59:42.966968"], ["created_at", "2014-12-02 22:59:42.970864"], ["description", "Aut facilis molestiae officia reiciendis rem pariatur. Eaque ipsa eum minus ea accusamus. Accusantium dolor fuga amet iure. Aut alias sunt rem rerum."], ["name", "Product #8 - 1262"], ["shipping_category_id", 1], ["slug", "product-8-1262"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:42.970864"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-12-02 22:59:42.973009"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.974877' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.975948' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.977132' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.977669' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:42.980614"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:59:42.980614"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:42.981534' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.982083' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.983167' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.983680' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.987739' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.988301' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.988847' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 22:59:42.990594"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:42.991291' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.991763' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:42.992261' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:42.992919' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.008710' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:59:43.014165"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:43.014165"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-1262' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.019946' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:59:43.025642' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-950' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-950' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:59:43.031871"], ["created_at", "2014-12-02 22:59:43.035861"], ["description", "Aperiam autem asperiores voluptas ipsum sit nostrum voluptatem. Non sint optio eligendi voluptas dolorum. Sed quia cum laborum atque officiis aut.\nItaque officia repellendus aut vel. Dolores quo voluptas eaque asperiores incidunt ut. Numquam repellat dolore doloribus sint libero explicabo molestias incidunt.\nPerspiciatis quos dolor deserunt dolore consectetur voluptates et porro. In sint veritatis in et perferendis rem molestias non. Placeat sit incidunt dolore voluptatibus.\nPraesentium non expedita dolore natus dolorem ea voluptatibus eum. Est voluptatem et nemo et qui id aut soluta. A et alias illum aspernatur maxime unde est.\nFacere omnis voluptatem quia repudiandae dolore maiores non dolorem. Soluta et culpa facere et officiis quibusdam. Et at eius maiores et. Accusamus ipsam eum vero facilis illo quod et."], ["name", "Product #9 - 950"], ["shipping_category_id", 1], ["slug", "product-9-950"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:43.035861"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-12-02 22:59:43.037991"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:43.039916' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:43.041004' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.042226' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.042794' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:43.045520"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:59:43.045520"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:43.046335' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:43.046845' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.3ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.047934' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.048659' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:43.052601' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.053125' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.053630' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 22:59:43.055315"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:43.055972' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.056439' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.056920' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.057484' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.057912' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:59:43.062526"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:43.062526"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-950' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.072639' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:59:43.079145' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2527' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2527' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 22:59:43.085710"], ["created_at", "2014-12-02 22:59:43.089474"], ["description", "Velit quis sequi facere rem. Nihil et laboriosam saepe ut dolorem consequatur. Commodi et et in voluptas.\nEt quas facilis nihil aut. Laboriosam quibusdam fugit aliquam nobis saepe aut ea. Voluptates nesciunt ad rem ut.\nLibero minima sint quia explicabo fugit consequuntur debitis. Adipisci et id nulla sunt ipsum voluptate aut corporis. Quis blanditiis sed ullam ea magnam iure. Assumenda ipsum aut deleniti aliquid id omnis. Suscipit nihil quis sequi pariatur repudiandae rem ut.\nIn est fugiat animi illum. Assumenda ullam repellat eaque consequatur. Neque ut facilis sed ipsa.\nOfficia voluptate autem et labore nemo. Dignissimos provident inventore quod vel voluptas. Omnis beatae repellat incidunt vel exercitationem reiciendis nihil. Consequuntur saepe recusandae ut fugiat ea doloribus quia. Distinctio quibusdam voluptas in rerum placeat."], ["name", "Product #10 - 2527"], ["shipping_category_id", 1], ["slug", "product-10-2527"], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:43.089474"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-12-02 22:59:43.091631"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:43.093460' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:43.094517' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.095668' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.096192' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:43.098959"], ["stock_location_id", 1], ["updated_at", "2014-12-02 22:59:43.098959"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:43.099827' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:43.100322' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.101370' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.101833' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:43.105521' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.106004' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.106494' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 22:59:43.108006"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:43.108622' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.109066' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.109521' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.110039' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.110443' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 22:59:43.114994"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 22:59:43.114994"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2527' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.120497' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:59:43.126094' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 22:59:43.130858"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 22:59:43.130858"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:43.134295"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:59:43.134295"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:43.135174' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:43.136336' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.137517' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.138047' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:43.140509"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:59:43.140509"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:43.141360' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:43.142395' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.143496' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.143987' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:43.146307"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:59:43.146307"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:43.147154' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:43.148181' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.149262' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.149810' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:43.152480"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:59:43.152480"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:43.153366' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:43.154424' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.155531' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.155987' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 22:59:43.158282"], ["stock_location_id", 2], ["updated_at", "2014-12-02 22:59:43.158282"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 22:59:43.159081' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 22:59:43.160155' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 22:59:43.161281' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 22:59:43.161873' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H65486542586%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:59:43.164741"], ["number", "H65486542586"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 22:59:43.164741"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.165730' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 22:59:43.168817' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.172558"], ["description", "Possimus quia consequatur iste consequatur nostrum sed qui illo."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 22:59:43.172558"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.174023"], ["updated_at", "2014-12-02 22:59:43.174023"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 22:59:43.183471"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 22:59:43.183471"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 22:59:43.184276"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 22:59:43.184276"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.185593"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:59:43.185593"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 22:59:43.188326"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:59:43.188326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.191829"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:59:43.191829"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:59:43.192621' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.193241' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.194616"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:59:43.194616"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:59:43.195237' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.195667' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.196933"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:59:43.196933"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:59:43.197538' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.197969' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.199259"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:59:43.199259"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:59:43.199871' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.200312' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.201545"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 22:59:43.201545"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 22:59:43.202145' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.202576' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:59:43.210387' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.228875"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:59:43.228875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 22:59:43.232231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.233748' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 22:59:43.234319' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.237808"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 22:59:43.237808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.239781"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 22:59:43.239781"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'MQW7JHF7' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 22:59:43.241405"], ["identifier", "MQW7JHF7"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 22:59:43.241405"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.243614' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-214302' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-214302"], ["updated_at", "2014-12-02 22:59:43.244770"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.247572"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:59:43.247572"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:59:43.249196' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.266235"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:59:43.266235"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 22:59:43.269290"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.270794' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:59:43.272987' WHERE "spree_shipments"."id" = 1  (0.2ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.274788"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 22:59:43.274788"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:59:43.275529' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 22:59:43.277859"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.279073' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.2ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 22:59:43.290445' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.310207"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 22:59:43.310207"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 22:59:43.313404"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 22:59:43.314947' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 22:59:43.317103' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 22:59:43.318226' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 22:59:43.319547"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 22:59:43.319547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (5.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'madisen@hahnlockman.info' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175612453631xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:00:45.414758"], ["email", "madisen@hahnlockman.info"], ["encrypted_password", "aa98498cc0418aa44f400410a26d4a293989d0dc28092eaf27ddae29d0382cd83b868f8309bb26b770bd16b0d1b372158e437c819bdc0625fcd03549a1f28ac5"], ["login", "madisen@hahnlockman.info"], ["password_salt", "UUSzC_yzEDYbVMuW26-m"], ["updated_at", "2014-12-02 23:00:45.414758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:00:45.451569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:00:45.457740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:00:45.469163"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:00:45.469163"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:00:45.495154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:00:45.496766"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:00:45.496766"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R054738666' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R054738666%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R054738666' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'x0j31xl4C8mCP7wKQ1Ykwg' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:00:45.516323"], ["currency", "USD"], ["email", "madisen@hahnlockman.info"], ["guest_token", "x0j31xl4C8mCP7wKQ1Ykwg"], ["number", "R054738666"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:00:45.516323"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:00:45.575998"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 23:00:45.575998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 449567' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:00:45.586651"], ["description", "Aliquam occaecati necessitatibus modi quia."], ["name", "TaxCategory - 449567"], ["updated_at", "2014-12-02 23:00:45.586651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:00:45.612326"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:00:45.612326"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-8217' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-8217' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:00:45.571645"], ["created_at", "2014-12-02 23:00:45.617617"], ["description", "Illum ut quisquam velit architecto enim similique doloremque asperiores. Vero fugiat architecto in dolores praesentium. Dolores earum dicta voluptatem libero mollitia labore. Nam reiciendis quisquam optio quibusdam voluptatem. Tempore maxime et quos nihil.\nTempore sed debitis doloremque enim asperiores provident dolorem soluta. Similique nulla aut saepe commodi aspernatur molestiae quis ipsa. Asperiores voluptatem sunt beatae similique sit."], ["name", "Product #1 - 8217"], ["shipping_category_id", 1], ["slug", "product-1-8217"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:45.617617"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 23:00:45.620449"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:45.628316' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.629585' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.644052' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.645366' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:45.668567"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:00:45.668567"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:45.669822' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.670428' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.671619' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.672162' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.682903' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.683559' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.684134' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:00:45.685851"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.687015' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.687480' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.687930' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.688472' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.688881' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:00:45.712305"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:45.712305"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-8217' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:45.729481' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:00:45.795842' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-6809' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-6809' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:00:45.802904"], ["created_at", "2014-12-02 23:00:45.806930"], ["description", "Modi qui eligendi dolore molestiae. Repudiandae facere voluptas tempore deserunt aliquam architecto quia necessitatibus. Cumque atque voluptatum officiis nam sit consequatur qui sit.\nAut iusto ea amet pariatur sapiente dolores. Ab in quidem odio laborum accusamus et ut non. Soluta aliquid eveniet quos quis suscipit voluptas.\nLibero nam numquam quidem accusamus magni aut. Consectetur laborum odit ut id ad necessitatibus repudiandae. Molestias deserunt et eos repudiandae quaerat consequatur autem. Corrupti voluptatum deserunt voluptas veniam minima.\nAut id odio in assumenda cumque. Ut sed corrupti rerum quam eaque et. Cum error animi repellendus eum dicta rerum laudantium. Quo sunt quia omnis quibusdam.\nArchitecto harum consequuntur odit officia quis velit. Rerum sunt illum porro odio vel. Iste illo natus pariatur aut voluptatem. Fuga quod explicabo tempora ea nihil minus recusandae quidem. Assumenda id est expedita qui sint."], ["name", "Product #2 - 6809"], ["shipping_category_id", 1], ["slug", "product-2-6809"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:45.806930"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 23:00:45.809246"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:45.811318' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.812421' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.813637' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.814194' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:45.817071"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:00:45.817071"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:45.818053' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.818532' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.819577' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.820058' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.823896' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.824440' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.824954' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:00:45.826447"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.827125' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.827574' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.828019' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.828567' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.829031' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:00:45.833525"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:45.833525"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-6809' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:45.839109' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:00:45.844694' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-674' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-674' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:00:45.851812"], ["created_at", "2014-12-02 23:00:45.855489"], ["description", "Reprehenderit ut omnis vel qui. Veritatis ipsam et autem voluptas recusandae facilis. Et ut est molestiae quae qui dolores commodi. Et expedita et provident voluptatem ullam.\nVoluptas ut et nobis et et eum quam. Aliquid omnis similique totam enim ratione praesentium quia. Ipsa expedita dolorem quia ea quia eius. Laudantium ab nobis magnam et nemo consequatur at. Eos officia recusandae amet rerum porro tempora dolor dolorum.\nDeserunt dolore nihil dolores labore sit in sint voluptas. Est nemo est quam vel aut officiis quae. Labore est recusandae illum odit nemo molestiae quidem iste. Eos aut ad sint impedit. Odit consequuntur aliquam quibusdam facere reprehenderit laboriosam non.\nMaiores quibusdam corporis inventore nulla consequatur. Quis dolorum quia est soluta ut molestiae. Veritatis sequi dolorem dicta sunt. Repellendus qui ullam beatae autem.\nTenetur dolorem at deleniti impedit nesciunt consectetur doloribus laboriosam. Ea quasi eveniet consectetur aut. Consequatur quaerat explicabo vel cumque et et tempore eaque. Eum quas enim corporis iste. Maiores sunt consequatur suscipit numquam libero."], ["name", "Product #3 - 674"], ["shipping_category_id", 1], ["slug", "product-3-674"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:45.855489"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 23:00:45.857569"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:45.859384' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.860399' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.861598' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.862141' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:45.864947"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:00:45.864947"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:45.865847' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.866345' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.867427' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.867904' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.871807' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.872310' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.872827' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:00:45.874462"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.875140' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.875598' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.876068' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.876613' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.877035' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:00:45.881734"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:45.881734"], ["variant_id", 3]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-674' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:45.892254' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:00:45.898595' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2857' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2857' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:00:45.905418"], ["created_at", "2014-12-02 23:00:45.909200"], ["description", "Unde fuga dolores consequatur qui qui illo veritatis debitis. Mollitia similique quidem et maiores labore ut autem eum. Sit ipsum sunt fugit deleniti sed.\nIllum eum odit dolores laboriosam corrupti temporibus sed. Sunt beatae nam omnis id voluptas sapiente aliquam molestiae. Animi eum vel delectus ratione voluptas tempore.\nIn provident iure omnis incidunt placeat ut vitae id. Atque consequatur dolores debitis et excepturi amet ut non. Qui earum ea corporis quae dolor sit expedita. Optio eveniet est ut nostrum magnam eaque natus. Asperiores et quidem fugiat corrupti repellendus aut facilis.\nCommodi officia et natus qui ad voluptatibus est consequatur. Enim assumenda ut aut nesciunt quia. Cumque eius beatae corrupti repellendus nihil. Temporibus et voluptas tempore doloremque dolore cupiditate non.\nRatione unde sed ab beatae ipsam voluptas maiores doloribus. Voluptas incidunt facere animi porro accusamus alias. Saepe quam non a itaque omnis veniam eveniet fuga. Adipisci nobis eius veniam dolorem."], ["name", "Product #4 - 2857"], ["shipping_category_id", 1], ["slug", "product-4-2857"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:45.909200"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 23:00:45.911534"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:45.913631' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.914824' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.916132' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.916710' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:45.919635"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:00:45.919635"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:45.920536' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.921062' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.922143' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.922645' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.927993' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.929189' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.930273' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:00:45.933155"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.934228' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.934983' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.935737' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.936501' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.937085' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:00:45.942517"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:45.942517"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2857' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:45.947918' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:00:45.953523' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-2740' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-2740' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:00:45.958149"], ["created_at", "2014-12-02 23:00:45.961841"], ["description", "Facilis et cumque ratione minima veniam quasi. Voluptatibus quis quaerat accusamus adipisci et. Omnis beatae dolorum itaque aut eos dignissimos. Ea sint tempore dolorem voluptas."], ["name", "Product #5 - 2740"], ["shipping_category_id", 1], ["slug", "product-5-2740"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:45.961841"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 23:00:45.964038"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:45.965940' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.967013' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.968228' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.968763' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:45.971631"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:00:45.971631"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:45.972512' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.973029' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.974047' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.974566' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.978492' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.978992' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.979531' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:00:45.981071"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:45.981753' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.982219' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.982702' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:45.983262' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:45.983694' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:00:45.988504"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:45.988504"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-2740' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:45.994968' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:00:46.000875' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:00:46.019442"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:00:46.019442"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.023181"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:00:46.023181"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.024172' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.025389' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.026700' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.027264' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.029801"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:00:46.029801"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.030641' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.031713' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.032844' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.033361' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.035736"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:00:46.035736"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.036584' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.037724' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.039008' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.039548' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.042275"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:00:46.042275"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.043199' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.044255' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.045351' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.045865' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.048244"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:00:46.048244"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.049099' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.050095' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.051232' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.051800' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H81134044755%') SQL (0.3ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:00:46.057518"], ["number", "H81134044755"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:00:46.057518"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.058696' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.2ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:00:46.067125' WHERE "spree_shipments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.088782"], ["description", "Eos maxime consequatur qui voluptatibus id tenetur nihil laborum."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:00:46.088782"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.091865"], ["updated_at", "2014-12-02 23:00:46.091865"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:00:46.136148"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:00:46.136148"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:00:46.137283"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:00:46.137283"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.139072"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:00:46.139072"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:00:46.153415"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:00:46.153415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.168820"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:00:46.168820"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:00:46.170246' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.170937' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.172512"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:00:46.172512"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:00:46.173258' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.173718' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.175063"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:00:46.175063"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:00:46.175724' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.176183' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.177695"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:00:46.177695"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:00:46.178493' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.179340' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.180822"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:00:46.180822"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:00:46.181515' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.181970' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:00:46.198298' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.252022"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:00:46.252022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:00:46.255739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.257521' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:00:46.258122' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.278973"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:00:46.278973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.292055"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:00:46.292055"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'X9YXW43V' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:00:46.306787"], ["identifier", "X9YXW43V"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:00:46.306787"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.309972' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-335455' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-335455"], ["updated_at", "2014-12-02 23:00:46.311296"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.322305"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:00:46.322305"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:00:46.324542' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.341883"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:00:46.341883"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:00:46.344942"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.346485' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:00:46.348784' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.350536"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:00:46.350536"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:00:46.351393' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:00:46.353969"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.355255' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:00:46.361797' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.380782"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:00:46.380782"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:00:46.383792"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.385421' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:00:46.387540' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:00:46.388719' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.392429"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:00:46.392429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (58.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.4ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'domenica_krajcik@connbailey.info' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175612466842xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:00:46.469654"], ["email", "domenica_krajcik@connbailey.info"], ["encrypted_password", "8dae20df7610cd57732ec7c98ef9df20fa0f7762447e9e8255bfee9cd6b22b304a4afafed57eeb36c3f378df7288bfdc0356bf1fbbcb032db2dc950601b844d0"], ["login", "domenica_krajcik@connbailey.info"], ["password_salt", "AoocaSCCJGsnh6zxfcyz"], ["updated_at", "2014-12-02 23:00:46.469654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:00:46.475419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:00:46.477435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:00:46.479482"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:00:46.479482"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:00:46.482417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:00:46.483852"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:00:46.483852"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R816563894' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R816563894%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R816563894' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '0quaLdvW0P5ToZZ18kG2Ew' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:00:46.489970"], ["currency", "USD"], ["email", "domenica_krajcik@connbailey.info"], ["guest_token", "0quaLdvW0P5ToZZ18kG2Ew"], ["number", "R816563894"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:00:46.489970"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:00:46.497411"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 23:00:46.497411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 779129' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.501273"], ["description", "Consequatur voluptatem quia error ut."], ["name", "TaxCategory - 779129"], ["updated_at", "2014-12-02 23:00:46.501273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:00:46.504868"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:00:46.504868"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9360' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9360' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:00:46.496293"], ["created_at", "2014-12-02 23:00:46.508463"], ["description", "Vel vero ipsam qui voluptatem sed autem dolorem. Omnis eius excepturi a et iusto laudantium sint. Qui reprehenderit optio dolor rerum rem id consequatur. Delectus voluptate pariatur dolor quod et alias quibusdam nobis.\nDignissimos minima provident esse ut. Qui voluptatum aut nihil quod exercitationem eum. Sint commodi sed qui voluptatem. Ea consequatur quia magni accusantium eum odio veritatis est."], ["name", "Product #6 - 9360"], ["shipping_category_id", 1], ["slug", "product-6-9360"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:46.508463"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-12-02 23:00:46.510651"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.512684' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.513778' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.515383' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.515941' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.518817"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:00:46.518817"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.519747' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.520249' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.521308' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.521869' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.526192' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.526718' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.527243' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:00:46.531525"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.532905' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.533911' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.534729' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.535609' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.536275' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:00:46.545796"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:46.545796"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9360' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.552672' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:00:46.559047' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-9947' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-9947' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:00:46.564821"], ["created_at", "2014-12-02 23:00:46.568912"], ["description", "Hic velit sed ipsam modi dolorem id libero. Aspernatur modi cum quas magnam sapiente tenetur debitis vel. Et odit quis sunt quaerat perferendis. Qui dicta consequatur blanditiis rerum consectetur.\nSequi qui labore optio et ad dolore. Dolorem in eos optio aperiam ea quos. Quis ut et sunt et minus soluta. Accusamus optio sed quae ex harum omnis vel et.\nEa quis aut et facilis est consequatur tempore atque. Magni velit id nulla quos cumque cupiditate. Minus facere quis pariatur aspernatur. Sapiente commodi rerum aspernatur velit assumenda nostrum. Ut maiores aliquam recusandae nemo illo aut."], ["name", "Product #7 - 9947"], ["shipping_category_id", 1], ["slug", "product-7-9947"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:46.568912"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-12-02 23:00:46.571337"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.573410' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.574514' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.575781' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.576349' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.579229"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:00:46.579229"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.580323' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.581080' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.582303' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.582848' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.586925' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.587456' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.587963' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:00:46.589568"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.590280' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.590739' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.591185' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.591725' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.592139' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:00:46.596788"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:46.596788"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-9947' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.602803' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:00:46.608448' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-59' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-59' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:00:46.613084"], ["created_at", "2014-12-02 23:00:46.616971"], ["description", "Aliquid qui ea voluptas et molestiae repudiandae non. Et numquam est aperiam similique maxime eum sed. Non quos quis et error doloribus aut reiciendis voluptatem. Natus quis quidem qui libero. Placeat voluptas non ipsum sequi iure itaque eaque."], ["name", "Product #8 - 59"], ["shipping_category_id", 1], ["slug", "product-8-59"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:46.616971"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-12-02 23:00:46.619116"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.621069' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.622126' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.623344' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.623937' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.627157"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:00:46.627157"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.628175' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.628674' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.629733' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.630278' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.634135' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.634649' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.635175' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:00:46.636757"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.637372' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.637813' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.638289' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.638848' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.639276' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:00:46.643967"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:46.643967"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-59' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.649715' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:00:46.655533' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-6302' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-6302' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:00:46.661957"], ["created_at", "2014-12-02 23:00:46.665721"], ["description", "Ipsam id iure aperiam commodi et recusandae ea nihil. Doloribus et pariatur porro expedita et sit laboriosam aut. Qui ducimus aut dolorem nulla ab provident dolore velit. Veritatis velit et doloremque rerum aut debitis fugit. Et commodi ullam consectetur ea.\nQui nihil praesentium ex quo totam qui soluta. Qui nihil eos harum facere est. Voluptate nulla est sit praesentium omnis ut occaecati.\nEt mollitia nihil rem nam tempora incidunt. Ut quia illo facere molestias at sit est earum. Sed animi voluptate quis ipsum error. Voluptatibus eos perferendis error sint. Est ex est vel voluptas.\nTemporibus porro autem iusto excepturi. Deserunt aliquam dolores voluptas animi mollitia nostrum. Autem sunt distinctio error cum quos et minus."], ["name", "Product #9 - 6302"], ["shipping_category_id", 1], ["slug", "product-9-6302"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:46.665721"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-12-02 23:00:46.667892"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.669737' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.670867' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.672102' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.672669' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.675591"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:00:46.675591"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.676488' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.676986' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.678014' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.678547' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.682467' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.682978' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.683508' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:00:46.685129"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.685762' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.686233' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.686754' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.687326' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.687775' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:00:46.692699"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:46.692699"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-6302' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.698502' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:00:46.704260' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-3689' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-3689' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:00:46.708740"], ["created_at", "2014-12-02 23:00:46.712591"], ["description", "Dolorem est sit ab quia quia. Et atque nobis voluptatem omnis sit id eligendi. Earum ut nobis fuga asperiores dolorem. Impedit vero voluptate iure dolor et illum hic alias."], ["name", "Product #10 - 3689"], ["shipping_category_id", 1], ["slug", "product-10-3689"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:46.712591"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-12-02 23:00:46.714998"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.732687' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.734121' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.735309' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.735851' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.738725"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:00:46.738725"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.739676' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.740212' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.741216' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.741708' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.745793' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.746311' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.746809' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:00:46.748380"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.749033' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.749469' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.749911' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.750440' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.750884' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:00:46.755485"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:00:46.755485"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-3689' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.761408' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:00:46.766986' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:00:46.771808"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:00:46.771808"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.775178"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:00:46.775178"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.776082' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.777152' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.778390' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.778932' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.781372"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:00:46.781372"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.782209' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.783224' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.784318' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.784808' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.787132"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:00:46.787132"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.787988' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.789017' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.790153' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.790705' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.793506"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:00:46.793506"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.794473' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.795538' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.796665' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.797156' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:00:46.799554"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:00:46.799554"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:00:46.800417' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:00:46.801444' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:00:46.802637' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:00:46.803196' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H68773025536%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:00:46.806083"], ["number", "H68773025536"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:00:46.806083"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.807018' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:00:46.810004' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.813722"], ["description", "Consequuntur cumque ipsam eveniet aspernatur quia."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:00:46.813722"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.815176"], ["updated_at", "2014-12-02 23:00:46.815176"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:00:46.824994"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:00:46.824994"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:00:46.825860"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:00:46.825860"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.827257"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:00:46.827257"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:00:46.830294"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:00:46.830294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.834398"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:00:46.834398"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:00:46.835236' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.835798' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.837205"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:00:46.837205"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:00:46.837877' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.838343' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.839649"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:00:46.839649"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:00:46.840308' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.840763' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.842070"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:00:46.842070"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:00:46.842730' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.843195' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.844485"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:00:46.844485"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:00:46.845156' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.845626' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:00:46.853751' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.872367"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:00:46.872367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:00:46.875584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.877107' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:00:46.877698' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.881084"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:00:46.881084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.883073"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:00:46.883073"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'DHBKKWGC' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:00:46.884714"], ["identifier", "DHBKKWGC"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:00:46.884714"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.886868' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-201341' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-201341"], ["updated_at", "2014-12-02 23:00:46.888069"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.890951"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:00:46.890951"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:00:46.892714' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.909751"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:00:46.909751"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:00:46.912752"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.914249' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:00:46.916402' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.918051"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:00:46.918051"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:00:46.918799' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:00:46.921194"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.922468' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:00:46.928837' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.948254"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:00:46.948254"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:00:46.951191"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:00:46.952804' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:00:46.955045' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:00:46.956226' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:00:46.957655"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:00:46.957655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (5.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'salma.moore@harveyjohnston.info' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175612951001xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:01:35.852482"], ["email", "salma.moore@harveyjohnston.info"], ["encrypted_password", "3615c7b7d411591ddf22625699a0ae58dc26af62a99f3f3c39ac11b372642f9cd8d26bd950407696b12fed5eba6d5b4130d20f61f3791e4b25d0ebfb8926d2cc"], ["login", "salma.moore@harveyjohnston.info"], ["password_salt", "azZkDZMCQrU8AvoXsTsv"], ["updated_at", "2014-12-02 23:01:35.852482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:01:35.886965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:01:35.893833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:01:35.905590"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:01:35.905590"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:01:35.931177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:01:35.932756"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:01:35.932756"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R758724283' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R758724283%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R758724283' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'b6anAK203Kwc8zmG1bq1sw' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:01:35.951219"], ["currency", "USD"], ["email", "salma.moore@harveyjohnston.info"], ["guest_token", "b6anAK203Kwc8zmG1bq1sw"], ["number", "R758724283"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:01:35.951219"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:01:36.011110"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 23:01:36.011110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 597539' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.021825"], ["description", "Dolorum et minus consequatur dolor."], ["name", "TaxCategory - 597539"], ["updated_at", "2014-12-02 23:01:36.021825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:01:36.047321"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:01:36.047321"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-1422' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-1422' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:36.006711"], ["created_at", "2014-12-02 23:01:36.052798"], ["description", "Voluptatibus ducimus aut et quisquam ad autem. Aperiam animi vel modi ad et earum qui. Debitis voluptatem rerum culpa corporis. Neque nostrum quae et mollitia.\nOmnis animi repudiandae maxime dicta minima. Est et quos molestias eum perspiciatis. Dolore fugit hic dolores ea aspernatur soluta. Quasi molestiae qui debitis consequatur similique delectus doloremque vel. Quo ducimus esse harum omnis modi.\nOdit incidunt illo fuga rerum commodi id. Sit deserunt quas consequatur quasi facilis at culpa. Amet excepturi quaerat doloribus autem voluptatem. Est ipsam voluptatem minima consequuntur nulla.\nEum reprehenderit ex nostrum et. Soluta suscipit sit architecto est libero. Maxime qui ut eligendi dolore iusto sunt similique dolorem. Modi assumenda iste quasi sit aut ut. Quis tempora nihil magnam ut ipsam."], ["name", "Product #1 - 1422"], ["shipping_category_id", 1], ["slug", "product-1-1422"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:36.052798"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 23:01:36.055480"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.063446' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.064784' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.079340' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.080827' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:36.103893"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:36.103893"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.105238' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.105861' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.107123' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.107662' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.119125' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.119792' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.120413' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:36.122189"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.123392' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.123948' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.124479' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.125041' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.125467' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:36.143736"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:36.143736"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-1422' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.161619' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:36.171921' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-5767' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-5767' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:36.178112"], ["created_at", "2014-12-02 23:01:36.182383"], ["description", "Velit ea magni enim soluta et eos dolor est. Unde autem sapiente quae voluptas facere voluptate sit. Assumenda veniam quo corporis similique doloremque qui ipsum. Consequuntur itaque temporibus harum laborum. Quia eveniet in voluptatem praesentium tempore sit.\nMaiores ut eos modi tenetur placeat provident. Ipsa harum non consequatur recusandae. Voluptates sit odio laudantium dolorem enim rerum.\nCum reiciendis excepturi et non dolores. Iusto vel commodi eos cum vero minima. Consequatur ipsum sunt molestias esse labore. Culpa veritatis nobis et corporis suscipit."], ["name", "Product #2 - 5767"], ["shipping_category_id", 1], ["slug", "product-2-5767"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:36.182383"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 23:01:36.240633"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.242872' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.244061' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.245333' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.245916' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:36.248788"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:36.248788"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.249743' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.250259' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.251460' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.251950' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.255981' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.256566' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.257112' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:36.258733"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.259438' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.259899' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.260404' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.260961' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.261397' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:36.266044"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:36.266044"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-5767' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.276168' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:36.282608' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-7503' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-7503' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:36.287604"], ["created_at", "2014-12-02 23:01:36.291823"], ["description", "Dolor est explicabo aut ut ea. Quis doloribus ducimus blanditiis ut enim. Qui est officiis sed exercitationem neque repellendus.\nTemporibus aliquid voluptas harum nisi. Est sint impedit nemo neque. Harum iusto optio incidunt vel asperiores. Est quis quia consequuntur similique deserunt."], ["name", "Product #3 - 7503"], ["shipping_category_id", 1], ["slug", "product-3-7503"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:36.291823"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 23:01:36.294173"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.296218' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.297453' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.298768' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.299426' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:36.302675"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:36.302675"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.303595' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.304117' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.305274' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.305778' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.309779' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.310335' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.310914' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:36.312557"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.313259' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.313765' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.314256' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.314830' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.315279' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:36.319988"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:36.319988"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-7503' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.325721' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:36.331318' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-4212' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-4212' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:36.335643"], ["created_at", "2014-12-02 23:01:36.339345"], ["description", "Sapiente quia a accusamus quas dolores voluptas magni. Culpa molestias et officiis vero quia. Quas hic eum consequatur reiciendis aspernatur consequatur incidunt qui."], ["name", "Product #4 - 4212"], ["shipping_category_id", 1], ["slug", "product-4-4212"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:36.339345"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 23:01:36.341427"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.343308' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.344342' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.345617' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.346154' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:36.349131"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:36.349131"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.350028' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.350557' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.351635' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.352153' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.355987' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.356546' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.357103' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:36.358664"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.359326' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.359786' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.360247' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.360793' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.361234' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:36.366004"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:36.366004"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-4212' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.372403' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:36.378291' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-3119' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-3119' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:36.384019"], ["created_at", "2014-12-02 23:01:36.387706"], ["description", "Deserunt earum quae eaque unde. Amet error accusantium sit beatae est quidem dolorem. Magnam id fuga nesciunt distinctio. Quidem rem dicta sequi tempore blanditiis nulla dolor ut.\nTotam ipsum quia aliquid et aspernatur dolore. Cum sit alias veritatis quasi iure amet aperiam. Est eius iusto eum earum quam.\nEius at et earum rerum voluptatibus occaecati culpa voluptas. Reiciendis earum eum qui necessitatibus assumenda sit. Illo hic ut ut fugit aut tempora necessitatibus. Unde molestiae in non mollitia quas enim at nihil. Magni rem molestiae provident quasi perspiciatis."], ["name", "Product #5 - 3119"], ["shipping_category_id", 1], ["slug", "product-5-3119"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:36.387706"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 23:01:36.389816"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.391888' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.392987' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.394266' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.394834' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:36.397766"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:36.397766"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.398671' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.399212' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.400329' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.400851' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.404728' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.405272' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.405804' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:36.407414"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.408075' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.408519' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.409011' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.409552' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.410046' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:36.414632"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:36.414632"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-3119' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.420278' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:36.425707' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:01:36.443464"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:01:36.443464"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:36.447136"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:36.447136"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.448068' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.449285' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.450515' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.451099' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:36.453620"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:36.453620"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.454435' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.455528' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.456679' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.457161' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:36.459506"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:36.459506"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.460376' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.461369' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.462498' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.463097' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:36.465713"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:36.465713"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.466722' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.467863' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.468997' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.469516' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:36.471905"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:36.471905"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:36.472741' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:36.473828' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:36.475688' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:36.477038' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H53513386305%') SQL (0.3ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:01:36.486518"], ["number", "H53513386305"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:01:36.486518"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.487907' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:36.494226' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.512384"], ["description", "Alias illum dicta animi est."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:01:36.512384"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.515409"], ["updated_at", "2014-12-02 23:01:36.515409"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:01:36.558570"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:01:36.558570"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:01:36.559615"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:01:36.559615"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.561695"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:36.561695"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:01:36.576473"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:36.576473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.591546"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:36.591546"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:36.592756' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.593463' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.595008"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:36.595008"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:36.595680' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.596138' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.597441"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:36.597441"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:36.598091' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.598529' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.599850"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:36.599850"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:36.600595' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.601054' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.602412"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:36.602412"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:36.603114' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.603556' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:36.620389' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.673005"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:36.673005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:01:36.676925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.678589' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:01:36.679164' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.699505"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:01:36.699505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.712195"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:01:36.712195"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'G7CUQ56R' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:01:36.723657"], ["identifier", "G7CUQ56R"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:01:36.723657"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.726535' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-504334' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-504334"], ["updated_at", "2014-12-02 23:01:36.727847"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.738575"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:36.738575"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:01:36.740635' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.757952"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:36.757952"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:01:36.761010"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.762569' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:36.764893' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.766610"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:36.766610"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:36.767332' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:01:36.769916"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.771256' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:01:36.777709' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.796912"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:36.796912"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:01:36.799870"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.801519' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:36.803658' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:36.804797' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.808539"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:01:36.808539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'G7CUQ56R' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 23:01:36.817259"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.818487' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.824385"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:36.824385"], ["user_id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 23:01:36.827012' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.846395"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:36.846395"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:01:36.849361"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.850944' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:36.853120' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.3ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.854698"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:36.854698"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:36.855739' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.856978"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:01:36.856978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.866024"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:36.866024"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 23:01:36.866977' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.884495"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:36.884495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:01:36.887832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:36.889557' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:36.891761' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.893441"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:36.893441"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:01:36.894262' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (57.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'luis.kunze@aufderhar.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175612964022xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:01:36.965365"], ["email", "luis.kunze@aufderhar.us"], ["encrypted_password", "ee7edc814b09b095761ab4e6bf00086d4800a11465d325ba9539b1c80d2ff3ab171a73500c3027a9d3dcb1cea4e9530f2a248cb18aae20b03e1ed6270de4b32f"], ["login", "luis.kunze@aufderhar.us"], ["password_salt", "cTutLgQ9FpPxUzrtXcjt"], ["updated_at", "2014-12-02 23:01:36.965365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:01:36.969637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:01:36.970928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:01:36.972352"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:01:36.972352"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:01:36.974965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:01:36.976242"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:01:36.976242"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R111022888' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R111022888%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R111022888' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'DXaXiFkH4a1sNXewhgeCXw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:01:36.982442"], ["currency", "USD"], ["email", "luis.kunze@aufderhar.us"], ["guest_token", "DXaXiFkH4a1sNXewhgeCXw"], ["number", "R111022888"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:01:36.982442"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:01:36.990105"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 23:01:36.990105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 705841' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:01:36.992875"], ["description", "Veritatis non vel quo aut libero."], ["name", "TaxCategory - 705841"], ["updated_at", "2014-12-02 23:01:36.992875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:01:36.996476"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:01:36.996476"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-8366' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-8366' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:36.988928"], ["created_at", "2014-12-02 23:01:37.000531"], ["description", "Porro minus distinctio autem non explicabo neque. Odit et voluptatem alias qui. Et sunt sunt et et non tempora eos. Odio laudantium quos nihil nobis minima.\nAspernatur suscipit quis quaerat dolores in. Aliquam debitis sed quis non et officia. Et reiciendis soluta placeat non ipsam repellendus nam officiis. Esse blanditiis quibusdam necessitatibus nulla officiis optio voluptas aliquam. Placeat nihil quas maiores corrupti ut quisquam."], ["name", "Product #6 - 8366"], ["shipping_category_id", 1], ["slug", "product-6-8366"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:37.000531"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-12-02 23:01:37.002853"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.004927' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.006248' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.007643' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.008227' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:37.011337"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:37.011337"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.012306' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.012843' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.014227' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.014893' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.019457' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.020067' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.020654' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:37.022356"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.023109' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.023597' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.024062' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.024646' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.025089' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:37.030041"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:37.030041"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-8366' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.036161' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:37.042373' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-5628' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-5628' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:37.048957"], ["created_at", "2014-12-02 23:01:37.052770"], ["description", "Rem repudiandae aut qui eaque tempore est molestias tempora. Quis sit et vitae sint. Qui totam vero voluptatibus repellat quia voluptatum asperiores. Voluptate deserunt velit sunt rerum quod accusamus. Asperiores provident nostrum iste dignissimos ipsa fuga accusamus totam.\nSed ut ducimus enim dolorum voluptas quisquam aut. Unde et repellendus fugiat dolorem repudiandae placeat nisi ullam. Eveniet enim sit est nihil ea a. Magni nam similique est provident ut. Et rerum ipsa esse aut qui ipsum.\nMinus blanditiis ducimus nam quod ut enim. Animi ipsam voluptatem sit velit. Sit et tenetur consequatur numquam corporis voluptatem quisquam sed.\nOmnis error quam eos quis ea. Officiis eum assumenda odit hic vel ea. Quaerat aspernatur itaque qui quisquam."], ["name", "Product #7 - 5628"], ["shipping_category_id", 1], ["slug", "product-7-5628"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:37.052770"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-12-02 23:01:37.054941"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.056897' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.058005' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.059333' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.059892' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:37.062772"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:37.062772"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.063738' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.064250' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.065379' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.065864' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.069868' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.070430' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.070976' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:37.072627"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.073284' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.073806' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.074301' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.074849' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.075297' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:37.080055"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:37.080055"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-5628' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.085915' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:37.091443' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-6693' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-6693' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:37.098081"], ["created_at", "2014-12-02 23:01:37.102045"], ["description", "Deserunt vitae non reprehenderit quasi a. Fuga sed odio ad voluptates dolorem incidunt in. Et doloribus sequi voluptatem ad aut ipsa et.\nEt sequi ea amet voluptatem debitis pariatur eveniet. Dolores eos et necessitatibus et ducimus. Nesciunt repudiandae sunt deserunt quaerat. Suscipit ea deleniti blanditiis quia voluptas maiores ab fugit.\nSed tenetur laudantium voluptatem eum sint harum et totam. Modi adipisci velit omnis quae corporis mollitia earum facilis. Nihil officiis expedita molestiae atque architecto sunt voluptatem fugiat. Autem aliquid nobis iste ab possimus tempore dolorem quasi.\nEst nostrum quia ipsum doloremque. Rerum ut quae id temporibus incidunt. Dolore enim quam amet laudantium deleniti recusandae ipsa. Sed exercitationem alias aut non iure nisi voluptas et.\nOdio repellendus excepturi id vel alias quia debitis nesciunt. Harum qui recusandae eveniet aliquam. Est est voluptates officiis aspernatur."], ["name", "Product #8 - 6693"], ["shipping_category_id", 1], ["slug", "product-8-6693"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:37.102045"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-12-02 23:01:37.104519"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.106466' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.107574' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.109073' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.109632' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:37.112635"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:37.112635"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.113631' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.114143' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.115328' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.115834' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.119825' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.120329' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.120873' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:37.122534"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.123220' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.123682' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.124159' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.124726' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.125260' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:37.145999"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:37.145999"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-6693' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.151451' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:37.157029' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-4222' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-4222' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:37.162846"], ["created_at", "2014-12-02 23:01:37.166637"], ["description", "Nam cumque molestiae asperiores ipsam officiis pariatur ad. Omnis consequatur id quibusdam aut est eos. Magni exercitationem et et omnis vero. Distinctio voluptatem velit voluptas in rerum praesentium.\nLaborum dolor eveniet quidem dolorum. Libero aut natus molestiae omnis qui laborum corporis sint. Perferendis similique ullam quibusdam nihil voluptas dolorem.\nItaque non sit repudiandae consectetur ad. Repudiandae dolorem quam qui soluta quo. Hic perferendis dolore aperiam accusantium sapiente earum at dignissimos.\nSit beatae quod perferendis minus pariatur dolor cumque. Dolore quasi commodi quidem a incidunt aperiam. Eveniet similique ea nam perferendis rerum illum."], ["name", "Product #9 - 4222"], ["shipping_category_id", 1], ["slug", "product-9-4222"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:37.166637"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-12-02 23:01:37.168831"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.170715' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.171755' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.172979' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.173657' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:37.176495"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:37.176495"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.177354' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.177861' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.178979' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.179489' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.183461' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.183989' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.184537' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:37.186154"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.186799' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.187268' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.187738' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.188294' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.188743' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:37.193400"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:37.193400"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-4222' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.199250' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:37.204923' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2862' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2862' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:37.212110"], ["created_at", "2014-12-02 23:01:37.215887"], ["description", "Amet eligendi quod et soluta numquam facilis. Rerum vitae harum cumque aut. Voluptate et dolor eos quis ipsam quo vitae. Libero sed in magnam atque. Saepe corrupti dolorum minus nihil aut tempore est sed.\nDoloribus quis ipsam quas hic voluptas enim eaque neque. Et et ad autem aliquid dolorum. Cumque amet occaecati dolorem voluptatem et sed possimus voluptatum.\nTempore officiis quo sunt corporis ea eius earum totam. Animi velit exercitationem rerum cupiditate. Aperiam magni excepturi consequuntur iure temporibus laudantium. Quo omnis ratione iste libero non consequatur velit.\nRerum autem assumenda voluptatibus rerum qui commodi. Aut consectetur quibusdam consequatur illo quasi. Necessitatibus sed officiis et minima.\nAutem deleniti eos eveniet ullam nostrum quo itaque. Repudiandae similique harum ab aperiam consequatur quo impedit et. Voluptas dolor repellendus delectus exercitationem. Distinctio aut aspernatur et nobis minus est occaecati reprehenderit. Voluptas et quo adipisci omnis explicabo facere."], ["name", "Product #10 - 2862"], ["shipping_category_id", 1], ["slug", "product-10-2862"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:37.215887"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-12-02 23:01:37.218119"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.220043' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.221171' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.222382' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.222934' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:37.225740"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:37.225740"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.226585' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.227078' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.228159' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.228668' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.232665' WHERE "spree_products"."id" = 5 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.233292' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.234034' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:37.235885"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.236622' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.237172' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.237686' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.238286' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.238726' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:37.244768"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:37.244768"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2862' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.251307' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:37.256918' WHERE "spree_line_items"."id" = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:01:37.261720"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:01:37.261720"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:37.265152"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:37.265152"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.266104' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.267207' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.268404' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.268942' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:37.271363"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:37.271363"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.272194' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.273196' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.274306' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.274768' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:37.277105"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:37.277105"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.277900' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.278926' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.280014' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.280528' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:37.283105"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:37.283105"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.284012' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.285152' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.286322' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.286807' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:37.289183"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:37.289183"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:37.290007' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:37.291061' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:37.292240' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:37.292759' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H21547525242%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:01:37.295666"], ["number", "H21547525242"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:01:37.295666"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.296589' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:37.299606' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.303313"], ["description", "Reprehenderit sint ullam sequi distinctio at."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:01:37.303313"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.304704"], ["updated_at", "2014-12-02 23:01:37.304704"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:01:37.314194"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:01:37.314194"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:01:37.315005"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:01:37.315005"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.316331"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:37.316331"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:01:37.319208"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:37.319208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.322950"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:37.322950"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:37.323759' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.324334' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.325729"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:37.325729"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:37.326383' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.326841' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.328141"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:37.328141"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:37.328766' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.329200' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.330485"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:37.330485"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:37.331125' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.331529' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.332819"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:37.332819"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:37.333488' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.333920' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:37.341924' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.360574"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:37.360574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:01:37.363891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.365479' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:01:37.366075' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.369504"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:01:37.369504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.371457"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:01:37.371457"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '2Y854ZCG' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:01:37.373131"], ["identifier", "2Y854ZCG"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:01:37.373131"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.375272' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-101035' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-101035"], ["updated_at", "2014-12-02 23:01:37.376396"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.379161"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:37.379161"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:01:37.380834' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.398063"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:37.398063"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:01:37.401121"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.402627' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:37.404823' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.406398"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:37.406398"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:37.407130' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:01:37.409491"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.410641' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:01:37.416982' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.436675"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:37.436675"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:01:37.439682"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.441304' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:37.443451' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:37.444585' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.446145"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:01:37.446145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = '2Y854ZCG' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "failed"], ["updated_at", "2014-12-02 23:01:37.449430"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.450571' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.455838"], ["name", "payment"], ["next_state", "failed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:37.455838"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:01:37.458327' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.477583"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:37.477583"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:01:37.481259"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.482993' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:37.485218' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'failed', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:37.486374' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.487750"], ["name", "payment"], ["next_state", "failed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:01:37.487750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:01:37.496654' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:37.514305"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:37.514305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:01:37.517810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:37.519622' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:37.521881' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'failed', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:01:37.522941' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (5.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'larue@koepp.com' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175613118271xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:01:51.667480"], ["email", "larue@koepp.com"], ["encrypted_password", "2cf3c56ee63de20fc844c8b1d2d742af16ad669a235cee627f41c1ecb7a7acf4a83468f2d0a68035bce34f8642bf3f7f5c7a999e1354d643b78b46622726407a"], ["login", "larue@koepp.com"], ["password_salt", "tTWtZNqDVa245AaEiJBq"], ["updated_at", "2014-12-02 23:01:51.667480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:01:51.702161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:01:51.708481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:01:51.717845"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:01:51.717845"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:01:51.740114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:01:51.741580"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:01:51.741580"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R590809494' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R590809494%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R590809494' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-bqDn9MrScLq4BSVJTp2tA' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:01:51.760336"], ["currency", "USD"], ["email", "larue@koepp.com"], ["guest_token", "-bqDn9MrScLq4BSVJTp2tA"], ["number", "R590809494"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:01:51.760336"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:01:51.816922"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 23:01:51.816922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 563416' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:01:51.827412"], ["description", "Non perferendis neque quia et sed quis ut quis."], ["name", "TaxCategory - 563416"], ["updated_at", "2014-12-02 23:01:51.827412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:01:51.852678"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:01:51.852678"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-924' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-924' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:51.812491"], ["created_at", "2014-12-02 23:01:51.858268"], ["description", "Reiciendis aut omnis et debitis. Quam molestias quas optio dolore deserunt vitae aspernatur. Magnam tempora distinctio voluptatibus quia deserunt. Aperiam repudiandae ut distinctio optio.\nVeniam sunt vero ut vel ex minus et. Impedit rerum cupiditate aut delectus sit repellat voluptates quos. Unde voluptatibus nobis facilis illo ut. Ad ut aliquam enim repudiandae distinctio nam voluptas sit. Accusamus odio et illum minima dolorem non at."], ["name", "Product #1 - 924"], ["shipping_category_id", 1], ["slug", "product-1-924"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:51.858268"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 23:01:51.860975"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:51.869009' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:51.870274' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:51.885091' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:51.886364' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:51.909321"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:51.909321"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:51.910550' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:51.911160' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:51.912378' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:51.912913' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:51.923772' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:51.924393' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:51.924935' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:51.926753"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:51.927976' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:51.928427' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:51.928879' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:51.929436' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:51.929879' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:51.948303"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:51.948303"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-924' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:51.966177' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:52.029251' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-1322' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-1322' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:52.034707"], ["created_at", "2014-12-02 23:01:52.038582"], ["description", "Quis rerum dolor ut eum doloribus vel nam. Porro qui aspernatur voluptatem sit quo cumque eos. Ut error non aperiam quas alias nostrum ipsa voluptate.\nAut consequatur consequatur pariatur tempore vero dolore. Dolores ipsum dolorem eum ut debitis nihil vel rerum. Mollitia et quibusdam dolores aut beatae.\nQui tempora velit earum nihil. Expedita aliquid sint eaque at non aspernatur. Incidunt ut quam in natus ipsa."], ["name", "Product #2 - 1322"], ["shipping_category_id", 1], ["slug", "product-2-1322"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.038582"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 23:01:52.040766"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.042816' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.043875' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.045117' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.045709' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:52.048574"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:52.048574"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.049484' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.050076' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.051289' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.051786' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.055621' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.056173' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.056674' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:52.058279"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.059145' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.059593' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.060082' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.060589' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.061092' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:52.065955"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.065955"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-1322' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.071688' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:52.077244' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5825' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5825' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:52.083363"], ["created_at", "2014-12-02 23:01:52.087140"], ["description", "Quas odio et laborum praesentium odit commodi. Odit ea accusantium explicabo soluta animi autem rerum. Corporis repellat architecto est quisquam porro quo. Culpa repudiandae id aut tempore unde non odit dolores.\nEnim eos recusandae doloremque deleniti. Nemo quia quos necessitatibus ut repudiandae. Corporis accusantium illum illo veritatis et consequatur ut. Animi laboriosam dolorum tenetur vel consequatur soluta. Voluptas voluptatem nostrum dolores perferendis nulla ab.\nEst quia sed fugiat repellendus voluptatem. Et enim velit ducimus omnis adipisci porro. In qui nesciunt enim et mollitia est vel.\nSoluta corrupti deleniti cumque aperiam ut officia. Quia sit tempore quod sapiente veritatis modi et optio. Fugiat saepe quo numquam repudiandae ab aut. Consequatur maxime a quam quos accusantium unde ut."], ["name", "Product #3 - 5825"], ["shipping_category_id", 1], ["slug", "product-3-5825"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.087140"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 23:01:52.089266"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.091092' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.092141' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.093308' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.093833' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:52.096624"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:52.096624"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.097547' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.098021' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.099103' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.099612' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.103399' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.103913' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.104503' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:52.106088"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.106822' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.107214' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.107713' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.108240' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.108686' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:52.113318"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.113318"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5825' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.119036' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:52.124616' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-1751' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-1751' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:52.129684"], ["created_at", "2014-12-02 23:01:52.133274"], ["description", "Amet ad qui ratione assumenda non odit numquam. Rerum animi deleniti tempore sit. Corporis dolores ratione itaque asperiores minima minus reprehenderit iure.\nEx sed sint nisi et id autem rerum porro. Assumenda sed est necessitatibus reprehenderit odit illo. Nulla fugiat ipsam natus deserunt similique accusamus.\nNumquam rerum adipisci quisquam laudantium iure. Et et at magni et. Vel alias et sapiente dignissimos perferendis quis eaque ea."], ["name", "Product #4 - 1751"], ["shipping_category_id", 1], ["slug", "product-4-1751"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.133274"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 23:01:52.135356"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.137221' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.138276' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.139574' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.140127' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:52.142941"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:52.142941"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.143811' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.144320' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.145390' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.145865' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.149725' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.150224' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.150724' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:52.152256"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.152921' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.153349' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.153811' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.154380' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.154827' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:52.159331"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.159331"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-1751' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.169579' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:52.176202' WHERE "spree_line_items"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-9276' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-9276' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:52.181270"], ["created_at", "2014-12-02 23:01:52.184969"], ["description", "Illo sunt reprehenderit nisi et ea iure omnis. Officiis ut ut pariatur ducimus. Distinctio qui molestias in et earum soluta. Ipsam eos corrupti rerum consequatur.\nSint sit quod tempore delectus tenetur dolorem vel et. Tenetur non eum soluta ut consequuntur voluptates vel repellat. Sit porro rem nam et blanditiis quae nihil soluta. Similique unde est harum aut optio qui nam."], ["name", "Product #5 - 9276"], ["shipping_category_id", 1], ["slug", "product-5-9276"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.184969"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 23:01:52.187056"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.189010' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.190066' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.191270' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.191845' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:52.194697"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:52.194697"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.195621' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.196171' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.197296' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.197819' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.201779' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.202282' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.202791' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:52.204411"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.205081' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.205514' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.206009' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.206540' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.207026' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:52.211705"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.211705"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-9276' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.217376' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:52.222921' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:01:52.246317"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:01:52.246317"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:52.250010"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:52.250010"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.250999' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.252197' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.253478' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.254101' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:52.256601"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:52.256601"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.257426' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.258468' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.259602' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.260094' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:52.262450"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:52.262450"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.263498' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.264555' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.267200' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.268475' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:52.273007"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:52.273007"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.274497' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.276127' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.277717' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.278401' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:52.281522"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:52.281522"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.282582' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.283762' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.285023' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.285568' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H22026604124%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:01:52.291706"], ["number", "H22026604124"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:01:52.291706"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.292869' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:52.299330' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.318179"], ["description", "Perspiciatis officiis odit sit libero expedita labore ut et."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:01:52.318179"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.321242"], ["updated_at", "2014-12-02 23:01:52.321242"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:01:52.366222"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:01:52.366222"]] SQL (0.3ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:01:52.367400"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:01:52.367400"]] SQL (0.2ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.369316"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:52.369316"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:01:52.384312"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:52.384312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.399520"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:52.399520"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:52.400729' WHERE "spree_shipments"."id" = 1 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.401434' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.403122"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:52.403122"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:52.403796' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.404259' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.405594"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:52.405594"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:52.406278' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.406762' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.408071"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:52.408071"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:52.408719' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.409175' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.410460"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:52.410460"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:52.411112' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.411577' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:52.428445' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.481978"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:52.481978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:01:52.485494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.487128' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:01:52.487706' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.509270"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:01:52.509270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.522258"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:01:52.522258"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'Y6ZEFNP6' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:01:52.534068"], ["identifier", "Y6ZEFNP6"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:01:52.534068"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.536992' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-004332' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-004332"], ["updated_at", "2014-12-02 23:01:52.538337"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.548959"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:52.548959"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:01:52.551045' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.569562"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:52.569562"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:01:52.572808"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.574439' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.5ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:52.576902' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.579103"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:52.579103"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:52.579883' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:01:52.582891"]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.584174' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:01:52.590985' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.610316"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:52.610316"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:01:52.613307"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.614865' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:52.617025' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:52.618180' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.621904"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:01:52.621904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'Y6ZEFNP6' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 23:01:52.630616"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.631859' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.638015"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:52.638015"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 23:01:52.640605' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.659888"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:52.659888"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:01:52.662826"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.664379' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:52.666579' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.668187"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:52.668187"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:52.668958' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.670191"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:01:52.670191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.679794"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:52.679794"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 23:01:52.680782' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.697434"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:52.697434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:01:52.700734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.702441' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:52.704625' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.706312"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:52.706312"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:01:52.707119' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (53.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Spree::User Exists (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'amely.cassin@lockman.name' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175613126012xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:01:52.775166"], ["email", "amely.cassin@lockman.name"], ["encrypted_password", "11610b30b7da13ede6308378eb2d747aad19edd8ae38da6e078068210294591be016d583a271e081401ea85f5a21781ffc750d8b5d4eab3d6631964b6cc4e96c"], ["login", "amely.cassin@lockman.name"], ["password_salt", "xfxmk3Gh4jSTCEqLAVhN"], ["updated_at", "2014-12-02 23:01:52.775166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:01:52.780596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:01:52.782574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:01:52.784543"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:01:52.784543"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:01:52.787297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:01:52.788756"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:01:52.788756"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R133673110' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R133673110%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R133673110' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'zIncjZwb_V1tG_DWPTHMgQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:01:52.794795"], ["currency", "USD"], ["email", "amely.cassin@lockman.name"], ["guest_token", "zIncjZwb_V1tG_DWPTHMgQ"], ["number", "R133673110"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:01:52.794795"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:01:52.802754"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 23:01:52.802754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 973371' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:01:52.805781"], ["description", "Dolorum soluta est quas voluptatibus expedita qui voluptas porro."], ["name", "TaxCategory - 973371"], ["updated_at", "2014-12-02 23:01:52.805781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:01:52.809767"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:01:52.809767"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-5242' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-5242' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:52.801661"], ["created_at", "2014-12-02 23:01:52.813753"], ["description", "Ipsum impedit quo quos eligendi veniam expedita. Voluptatem est omnis reprehenderit veniam voluptas alias maiores. Cumque et qui et facilis. Nulla architecto id fuga maiores et veritatis in eum. Autem perspiciatis eius qui quas aspernatur aut.\nQui omnis sapiente eos praesentium non. In et quaerat et voluptates explicabo. Rerum voluptas similique quisquam debitis. Quaerat a inventore et totam aut provident aperiam.\nMolestiae saepe modi eligendi rerum consectetur totam velit minima. Sint quod laboriosam maxime optio ea et itaque. Soluta provident iusto natus possimus consequatur."], ["name", "Product #6 - 5242"], ["shipping_category_id", 1], ["slug", "product-6-5242"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.813753"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-12-02 23:01:52.815929"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.817991' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.819102' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.820441' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.821000' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:52.823921"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:52.823921"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.824831' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.825356' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.826469' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.826952' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.831024' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.831585' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.832153' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:52.833748"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.834478' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.834959' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.835428' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.835969' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.836408' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:52.841091"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.841091"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-5242' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.846977' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:52.852681' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-5810' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-5810' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:52.860126"], ["created_at", "2014-12-02 23:01:52.863991"], ["description", "Minima sit et et magnam non nam. Et consectetur quod dolorum similique et explicabo aut. Aut fuga sint placeat dicta iste sit rerum maxime. Quos velit et qui quidem natus est. Unde reprehenderit velit dicta fuga quibusdam.\nMagni unde hic sed est enim. Omnis inventore delectus eaque eligendi aperiam. Aut eos quia modi quisquam aut rerum cum. Fuga alias iure est quam nostrum eligendi expedita veritatis. Laborum dicta illum necessitatibus aut facere accusamus aut est.\nRerum explicabo qui eum iure eius assumenda sapiente dignissimos. Quasi dignissimos quod enim vel. Distinctio quidem doloribus ut quis modi. Ad qui iste totam dignissimos molestiae ducimus.\nAd aperiam aut sint magnam. Aut sed ut cupiditate quia. Reiciendis id laudantium tempora voluptatem asperiores aut occaecati. Non amet nisi deserunt et omnis dolorem quibusdam in. Non sint modi veritatis consequatur vitae.\nInventore aperiam minus rerum consequatur. Saepe et architecto voluptatibus aut voluptate id. Quis esse eveniet consectetur officia facilis alias. Exercitationem odit id et ratione et dolor enim. Distinctio quae magni totam voluptatem."], ["name", "Product #7 - 5810"], ["shipping_category_id", 1], ["slug", "product-7-5810"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.863991"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-12-02 23:01:52.866218"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.868242' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.869397' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.870737' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.871315' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:52.874559"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:52.874559"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.875552' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.876086' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.877289' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.877916' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.881953' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.882718' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.883254' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:52.884854"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.885520' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.886007' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.886527' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.887061' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.887508' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:52.892185"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.892185"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-5810' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.898153' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:52.903832' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-8797' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-8797' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:52.909846"], ["created_at", "2014-12-02 23:01:52.913696"], ["description", "Delectus libero quam rem optio asperiores esse. Dolor quidem id similique eos quas quasi pariatur. Dolorum laudantium corporis et voluptas laborum ipsam nihil. Fuga itaque quae qui velit non ratione vel.\nOmnis veritatis debitis et at voluptas impedit perferendis. Maxime unde sapiente rerum ut laborum. Quaerat omnis at dolores aperiam omnis voluptatibus sint neque. Quas a odio qui et enim.\nNemo in nihil maiores eveniet reiciendis quaerat est. Rerum sed ratione culpa dolor. Sed voluptatem alias aut minus unde aut incidunt."], ["name", "Product #8 - 8797"], ["shipping_category_id", 1], ["slug", "product-8-8797"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.913696"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-12-02 23:01:52.915845"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.917737' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.918811' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.920104' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.920667' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:52.923623"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:52.923623"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.924522' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.925104' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.926506' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.942517' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.946994' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.947559' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.948099' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:52.949761"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.950414' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.950854' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.951334' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.951895' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.952349' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:52.957038"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.957038"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-8797' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:52.962887' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:52.968836' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-2739' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-2739' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:52.973267"], ["created_at", "2014-12-02 23:01:52.976951"], ["description", "Velit iste pariatur ut rerum. Omnis minima repellendus odit quae ut asperiores quibusdam. Animi explicabo et voluptatum ipsa aut aspernatur maiores harum. Eos animi nostrum enim illum qui dicta vel."], ["name", "Product #9 - 2739"], ["shipping_category_id", 1], ["slug", "product-9-2739"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:52.976951"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-12-02 23:01:52.979025"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.981045' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.982145' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.983442' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.984004' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:52.986948"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:52.986948"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:52.987838' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.988583' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.989673' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.990194' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.994099' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.994603' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.995133' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:52.996742"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:52.997422' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.997855' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.998317' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:52.998845' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:52.999313' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:53.004342"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:53.004342"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-2739' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.010059' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:53.015592' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-8091' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-8091' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:01:53.021292"], ["created_at", "2014-12-02 23:01:53.024961"], ["description", "Occaecati id nemo dolorem aspernatur mollitia repellat quis. Expedita laborum unde temporibus magnam consectetur. Voluptas sit iusto qui a. Voluptatem voluptatum quisquam praesentium accusamus omnis sit ullam. Ipsum sed ad harum odit quaerat sapiente eum.\nFugiat tenetur voluptatem voluptatibus nihil natus sunt. Quos error voluptas architecto illo totam voluptates. Voluptatem aliquid itaque magni velit facere veritatis illo aut.\nRepellat qui veritatis qui tempora dolore mollitia qui. Officia iure assumenda et consequatur voluptate magni omnis. Consequatur quo aliquid sunt tempore esse. Nihil voluptatum deserunt reprehenderit aut autem quam. Sint nisi maiores reiciendis vero explicabo ipsam qui minima."], ["name", "Product #10 - 8091"], ["shipping_category_id", 1], ["slug", "product-10-8091"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:53.024961"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-12-02 23:01:53.027083"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:53.029018' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:53.030118' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:53.031678' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:53.032232' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:53.035137"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:01:53.035137"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:53.035993' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:53.036510' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:53.037591' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:53.038056' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:53.041867' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:53.042361' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:53.042862' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:01:53.044402"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:53.045011' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:53.045440' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:53.045914' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:53.046443' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:53.046868' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:01:53.051393"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:01:53.051393"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-8091' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.057087' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:53.063015' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:01:53.067850"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:01:53.067850"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:53.071287"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:53.071287"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:53.072164' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:53.073273' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:53.074483' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:53.075055' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:53.077472"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:53.077472"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:53.078276' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:53.079294' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:53.080388' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:53.080867' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:53.083423"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:53.083423"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:53.084236' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:53.085256' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:53.086448' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:53.087017' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:53.089588"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:53.089588"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:53.090493' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:53.091597' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:53.092762' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:53.093248' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:01:53.096063"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:01:53.096063"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:01:53.096882' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:01:53.097897' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:01:53.099094' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:01:53.099959' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H76744338654%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:01:53.102872"], ["number", "H76744338654"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:01:53.102872"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.103838' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:01:53.106784' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.110401"], ["description", "Dolor qui sit reiciendis illum."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:01:53.110401"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.111777"], ["updated_at", "2014-12-02 23:01:53.111777"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:01:53.120879"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:01:53.120879"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:01:53.121645"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:01:53.121645"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.123002"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:53.123002"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:01:53.125777"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:53.125777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.129951"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:53.129951"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:53.130731' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.131302' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.132741"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:53.132741"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:53.133377' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.133792' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.135078"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:53.135078"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:53.135697' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.136151' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.137421"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:53.137421"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:53.138045' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.138498' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.139733"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:01:53.139733"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:01:53.140368' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.140797' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:53.149088' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.167709"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:53.167709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:01:53.170899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.172506' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:01:53.173087' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.176526"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:01:53.176526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.178422"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:01:53.178422"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'BUF2MQTT' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:01:53.180088"], ["identifier", "BUF2MQTT"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:01:53.180088"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.182247' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-034051' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-034051"], ["updated_at", "2014-12-02 23:01:53.183396"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.186371"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:53.186371"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:01:53.188092' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.205346"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:53.205346"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:01:53.208387"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.209935' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:53.212262' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.213862"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:53.213862"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:53.214626' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:01:53.216962"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.218139' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:01:53.224630' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.243439"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:53.243439"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:01:53.246489"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.248081' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:53.250291' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:53.251510' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.252946"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:01:53.252946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'BUF2MQTT' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "failed"], ["updated_at", "2014-12-02 23:01:53.256301"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.257464' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.262935"], ["name", "payment"], ["next_state", "failed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:01:53.262935"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:01:53.265467' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.286845"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:53.286845"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:01:53.290187"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.291980' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:53.294236' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'failed', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:01:53.295388' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.296779"], ["name", "payment"], ["next_state", "failed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:01:53.296779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:01:53.305672' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:01:53.336389"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:01:53.336389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:01:53.340038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:01:53.341868' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:01:53.344279' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'failed', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:01:53.345301' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (176.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'effie.anderson@pacocha.ca' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175613854211xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:05.561076"], ["email", "effie.anderson@pacocha.ca"], ["encrypted_password", "0ed56702fe3cadc58470f4d79f78129e3d733bcd520e9c7ec2abdaec66fe0de1fadca4a64a896ee3d686ff8b9f8cc9cafd10eb653c2dddf6353e92ee289af9fb"], ["login", "effie.anderson@pacocha.ca"], ["password_salt", "9WJfJTHzgsPkss9jXvbs"], ["updated_at", "2014-12-02 23:03:05.561076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:05.596941"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:05.607095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:05.622822"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:05.622822"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:05.645698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:05.647223"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:05.647223"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R523454263' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R523454263%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R523454263' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'IM5hrxE7WlUCzj96PmNqmA' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:05.665293"], ["currency", "USD"], ["email", "effie.anderson@pacocha.ca"], ["guest_token", "IM5hrxE7WlUCzj96PmNqmA"], ["number", "R523454263"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:03:05.665293"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:05.724180"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 23:03:05.724180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 951462' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:05.734706"], ["description", "Excepturi voluptate alias qui fugiat quidem et molestias."], ["name", "TaxCategory - 951462"], ["updated_at", "2014-12-02 23:03:05.734706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:05.759987"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:05.759987"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-4593' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-4593' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:05.719881"], ["created_at", "2014-12-02 23:03:05.765380"], ["description", "Dolorem sit et quia sunt. Labore magni assumenda rerum quo. Voluptate accusantium aliquam dolorum dolor. Maiores quia suscipit enim sequi et at.\nMaxime nihil temporibus iure voluptatum cum dolorem. Consequuntur placeat rerum ut culpa est. Praesentium voluptatibus sit minima neque harum quia consequatur reiciendis.\nCulpa tempore molestiae beatae fugiat autem voluptas voluptate. Explicabo assumenda vero et et enim architecto. Illum eos dolorum unde dolorem delectus est sint velit. Sit laborum vero fugit asperiores aperiam ipsam velit. Tenetur ex quos nemo sapiente sed fugit."], ["name", "Product #1 - 4593"], ["shipping_category_id", 1], ["slug", "product-1-4593"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:05.765380"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 23:03:05.768087"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:05.776115' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:05.777427' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:05.792584' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:05.793873' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:05.816862"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:05.816862"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:05.818158' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:05.818768' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:05.820027' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:05.820603' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:05.831722' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:05.832360' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:05.832940' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:05.834643"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:05.835867' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:05.836358' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:05.836821' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:05.837371' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:05.837818' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:05.857046"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:05.857046"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-4593' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:05.874458' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:05.884412' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-328' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-328' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:05.889527"], ["created_at", "2014-12-02 23:03:05.893777"], ["description", "Et aspernatur et at dolorem ullam aut totam sequi. Pariatur sequi doloremque qui incidunt amet. Voluptate aliquam consequatur et aut eos. Velit illo nulla blanditiis voluptatem amet."], ["name", "Product #2 - 328"], ["shipping_category_id", 1], ["slug", "product-2-328"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:05.893777"]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 23:03:05.955494"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:05.958017' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:05.960267' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:05.962973' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:05.963847' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:05.969410"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:05.969410"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:05.970953' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:05.971728' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:05.973297' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:05.973981' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:05.978629' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:05.979244' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:05.979841' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:05.981775"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:05.982976' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:05.983778' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:05.984430' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:05.985078' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:05.985566' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:05.991473"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:05.991473"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-328' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:05.999390' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:06.006436' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-4779' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-4779' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:06.013139"], ["created_at", "2014-12-02 23:03:06.017087"], ["description", "Tempora sed amet numquam qui porro. Quaerat iusto veniam autem animi sit corporis magnam velit. Molestiae voluptate accusamus hic atque perferendis at doloribus quia.\nDoloremque suscipit sit maiores ipsum est blanditiis. Beatae animi esse eveniet culpa dolorem dolor et eius. At voluptatem possimus et accusantium ratione impedit. Et eum praesentium dolores labore facilis cumque vero rerum.\nOdit incidunt expedita sint autem. Eum quis voluptas labore consequatur magnam occaecati earum. Officia consequatur laboriosam molestias suscipit provident molestiae. Deserunt minus aut a libero. Reiciendis dicta deleniti ipsum ut ipsa voluptas.\nUnde dolores fugiat architecto quis eum eum ut. Iure aliquid exercitationem ipsum pariatur neque deserunt rerum reprehenderit. Eos delectus maxime quaerat iure id et. Ut deserunt doloremque quis iusto sit."], ["name", "Product #3 - 4779"], ["shipping_category_id", 1], ["slug", "product-3-4779"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.017087"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 23:03:06.019241"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.021122' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.022152' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.023339' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.023867' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.026767"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:06.026767"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.027642' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.028162' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.029206' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.029755' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.033588' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.034123' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.034631' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:06.036217"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.036874' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.037351' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.037833' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.038374' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.038824' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:06.043471"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.043471"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-4779' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.049285' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:06.054744' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-5959' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-5959' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:06.059688"], ["created_at", "2014-12-02 23:03:06.063352"], ["description", "Impedit ipsam excepturi rerum velit ut quis. Voluptate et est eius et doloremque culpa voluptas saepe. Tenetur minus magnam officiis explicabo fugiat et nihil.\nEos repellat sint enim quo est cumque. Eos consectetur sed ratione fugit dolor sit qui numquam. Tempora ad in nam optio qui excepturi dolores. Quo laudantium qui dolorem magnam incidunt sint ipsum. Nobis perspiciatis reprehenderit est ut aut."], ["name", "Product #4 - 5959"], ["shipping_category_id", 1], ["slug", "product-4-5959"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.063352"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 23:03:06.065414"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.067267' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.068311' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.069509' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.070084' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.073050"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:06.073050"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.073978' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.074543' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.075752' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.076296' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.080231' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.080740' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.081244' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:06.082864"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.083549' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.084002' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.084478' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.085062' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.085524' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:06.090072"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.090072"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-5959' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.095918' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:06.101460' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-6793' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-6793' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:06.107906"], ["created_at", "2014-12-02 23:03:06.111693"], ["description", "Cum dolor nemo et suscipit nostrum. Exercitationem id sed enim iste voluptate. Itaque sit ratione suscipit vel ab accusantium culpa esse. Quis non occaecati minus deleniti autem porro asperiores. Ea maiores temporibus aspernatur voluptas ut eum.\nMagnam aut tenetur nisi earum culpa id hic dolorum. Aut vero cumque omnis architecto quaerat quasi dolores. Aut earum illo ipsa sit qui voluptatem.\nLabore quia atque quo amet consequatur cupiditate. Voluptatem modi eos fuga asperiores neque sed alias sed. Ut dolorem nihil facere non nesciunt mollitia et est.\nQui repellat maxime aut voluptate. Unde similique repellendus nihil reiciendis illum illo numquam. Quo voluptas quod iste cupiditate at quibusdam.\nDistinctio qui eos autem ut aut. Ut dolor officia et in. Incidunt maxime dolores totam aliquid occaecati doloremque amet numquam."], ["name", "Product #5 - 6793"], ["shipping_category_id", 1], ["slug", "product-5-6793"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.111693"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 23:03:06.113815"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.115724' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.116779' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.117964' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.118532' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.121445"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:06.121445"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.122330' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.122833' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.123919' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.124412' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.128303' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.128807' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.129338' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:06.130877"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.131541' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.131991' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.132483' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.133025' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.133511' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:06.138245"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.138245"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-6793' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.143873' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:06.149547' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:06.167679"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:06.167679"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.171398"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:06.171398"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.172353' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.173553' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.174788' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.175340' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.177884"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:06.177884"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.178707' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.179739' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.180837' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.181328' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.183845"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:06.183845"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.184671' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.185670' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.186988' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.187564' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.190358"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:06.190358"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.191379' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.192496' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.193623' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.194148' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.196646"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:06.196646"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.197517' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.198519' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.200816' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.201980' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H51765832024%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:06.211352"], ["number", "H51765832024"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:03:06.211352"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.212592' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:06.218990' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.237371"], ["description", "In sapiente aliquid harum magni tempora iusto inventore."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:03:06.237371"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.240616"], ["updated_at", "2014-12-02 23:03:06.240616"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:06.285698"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:03:06.285698"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:03:06.286893"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:03:06.286893"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.288733"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:06.288733"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:06.303999"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:06.303999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.320422"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:06.320422"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:06.323504' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.324198' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.325777"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:06.325777"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:06.326500' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.326958' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.328289"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:06.328289"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:06.328954' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.329463' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.330940"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:06.330940"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:06.331629' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.332145' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.333556"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:06.333556"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:06.334233' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.334707' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:06.353647' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.4ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.410904"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:06.410904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:03:06.416791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.418988' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:03:06.419568' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.439987"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:06.439987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.452765"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:06.452765"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'MPWYGTZN' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:03:06.464506"], ["identifier", "MPWYGTZN"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:06.464506"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.467453' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-142515' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-142515"], ["updated_at", "2014-12-02 23:03:06.468777"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.479462"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:06.479462"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:06.481544' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.499233"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:06.499233"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:03:06.502420"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.504230' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:06.506680' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.508521"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:06.508521"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:06.509292' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:03:06.511831"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.513132' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:06.519606' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.539138"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:06.539138"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:03:06.542155"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.543831' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:06.545978' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:06.547151' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.550840"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:03:06.550840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'MPWYGTZN' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 23:03:06.559539"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.560760' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.566988"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:06.566988"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 23:03:06.569589' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.589250"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:06.589250"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:03:06.592217"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.593844' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:06.596030' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.597646"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:06.597646"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:06.598452' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.599721"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:03:06.599721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.609235"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:06.609235"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 23:03:06.610238' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.627391"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:06.627391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:03:06.630664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.632487' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:06.634749' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.636475"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:06.636475"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:03:06.637330' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (53.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'anna@heathcotegutkowski.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175613864852xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:06.704304"], ["email", "anna@heathcotegutkowski.com"], ["encrypted_password", "e34c6f3337b69e2f8f967df084bf53b0a3cc56638f9c59694a50df70be1b6dc87f85e861f584d4e13c26426579491f603b6f1beb75cb965a290e308fdbba5ad6"], ["login", "anna@heathcotegutkowski.com"], ["password_salt", "No7fMpm3b-RdBN55DzTj"], ["updated_at", "2014-12-02 23:03:06.704304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:06.707773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:06.709212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:06.710802"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:06.710802"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:06.713658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:06.715016"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:06.715016"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R106598618' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R106598618%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R106598618' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'pl9XmlT1Sdr_P9W8sAMrNQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:06.721336"], ["currency", "USD"], ["email", "anna@heathcotegutkowski.com"], ["guest_token", "pl9XmlT1Sdr_P9W8sAMrNQ"], ["number", "R106598618"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:03:06.721336"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:06.728314"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 23:03:06.728314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 445503' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:06.730937"], ["description", "Quis omnis rerum tempore voluptas voluptatibus."], ["name", "TaxCategory - 445503"], ["updated_at", "2014-12-02 23:03:06.730937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:06.734237"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:06.734237"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-4123' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-4123' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:06.727189"], ["created_at", "2014-12-02 23:03:06.738359"], ["description", "Voluptatibus iure officiis aliquid distinctio animi nam. Provident a voluptates quisquam debitis qui aliquid totam. Id et ipsam voluptas et recusandae voluptatem minima commodi. Recusandae adipisci eos dolorem sit occaecati in. Laboriosam quidem velit quo provident quam."], ["name", "Product #6 - 4123"], ["shipping_category_id", 1], ["slug", "product-6-4123"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.738359"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-12-02 23:03:06.740681"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.742709' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.743788' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.745114' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.745732' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.751317"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:06.751317"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.753334' WHERE "spree_variants"."id" = 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.754214' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.756044' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.756855' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.761709' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.762228' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.762757' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:06.764322"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.765017' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.765522' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.765983' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.766553' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.766995' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:06.771647"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.771647"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-4123' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.777613' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:06.783225' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-6272' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-6272' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:06.788951"], ["created_at", "2014-12-02 23:03:06.792719"], ["description", "Ut laudantium officiis perspiciatis distinctio quam et. Est enim quis illo quasi ex dolore repudiandae. Magnam harum rem rerum quaerat ut illo molestiae. Voluptas consectetur dolores et id.\nConsequuntur asperiores et molestiae nisi non debitis numquam. Aliquam ut dolores cupiditate non beatae. Quae iste ullam enim sint sit modi enim. Odio distinctio accusamus numquam quam pariatur.\nHic qui aut culpa velit qui. Dolorum laudantium ut ab necessitatibus ipsam repellat. Vel repellat ut voluptate eos aut molestiae. Voluptatum eum sequi animi non natus. Vel et ex culpa asperiores magnam quas."], ["name", "Product #7 - 6272"], ["shipping_category_id", 1], ["slug", "product-7-6272"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.792719"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-12-02 23:03:06.794896"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.796868' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.797969' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.799205' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.800397' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.803508"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:06.803508"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.804442' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.804967' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.806084' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.806598' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.810520' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.811058' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.811575' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:06.813135"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.813832' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.814308' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.814830' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.815448' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.815919' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:06.820609"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.820609"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-6272' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.826574' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:06.832132' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3659' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3659' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:06.838980"], ["created_at", "2014-12-02 23:03:06.842765"], ["description", "Accusantium minima excepturi illum natus nisi voluptatibus non dolores. Quo quasi aliquid debitis aut praesentium et. Molestiae quia repudiandae sequi quasi.\nNumquam unde et praesentium sint et. Est numquam culpa praesentium dolore nam consequatur sit. Et nisi aut doloremque nostrum error ea est.\nUt ipsum voluptates et assumenda a cum aut explicabo. Quia et at aliquid adipisci nemo deserunt dolore. Soluta recusandae voluptatem quo aperiam inventore laudantium cupiditate. Illo in dolores quae qui aperiam.\nLabore excepturi qui animi cumque iste sit. Et impedit at ducimus laboriosam. Quibusdam est tenetur natus explicabo. Sit qui officiis alias soluta ut.\nNisi sed laborum voluptatem fugiat quidem sint est. Maxime cupiditate et officia culpa. Eum molestias corrupti voluptas quibusdam amet et. Dicta sit nulla velit velit ad qui et nostrum."], ["name", "Product #8 - 3659"], ["shipping_category_id", 1], ["slug", "product-8-3659"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.842765"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-12-02 23:03:06.845091"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.847075' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.848173' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.849429' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.849978' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.853287"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:06.853287"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.854560' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.855097' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.856354' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.856917' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.860931' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.861458' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.861996' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:06.863651"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.864605' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.865050' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.865549' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.866111' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.866618' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:06.887353"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.887353"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3659' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.892748' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:06.898357' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-33' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-33' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:06.903386"], ["created_at", "2014-12-02 23:03:06.907267"], ["description", "Ducimus eaque soluta sunt quis atque hic a et. Odit harum voluptatum dicta illum. Harum ut quas sit facilis hic minima similique.\nMolestiae saepe aliquid ut natus quia vel temporibus. Nisi doloremque at eum cum. Est laborum sunt aut corrupti sed error est quod. Assumenda a maxime perspiciatis libero distinctio rerum aut. Esse porro rerum soluta sunt architecto fugiat."], ["name", "Product #9 - 33"], ["shipping_category_id", 1], ["slug", "product-9-33"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.907267"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-12-02 23:03:06.909439"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.911381' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.912451' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.913675' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.914244' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.917143"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:06.917143"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.918027' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.918542' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.919589' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.920183' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.924026' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.924546' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.925083' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:06.926667"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.927352' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.927816' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.928286' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.928834' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.929292' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:06.933998"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.933998"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-33' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.939952' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:06.945589' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-8790' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-8790' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:06.950169"], ["created_at", "2014-12-02 23:03:06.953914"], ["description", "Consequatur dolorem ut nisi suscipit praesentium iusto est maiores. Et nihil dolores sit perspiciatis ullam ab molestias ut. Consequatur quisquam unde sed fuga eaque voluptate. Excepturi natus sequi molestias accusantium quaerat dolor molestiae. Autem laboriosam est esse velit placeat et."], ["name", "Product #10 - 8790"], ["shipping_category_id", 1], ["slug", "product-10-8790"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.953914"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-12-02 23:03:06.956037"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.957930' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.959015' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.960253' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.960778' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.963673"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:06.963673"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:06.964574' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.965056' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.966129' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.966637' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.970459' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.970967' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.971470' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:06.973028"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:06.973668' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.974089' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.974553' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:06.975097' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:06.975561' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:06.980157"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:06.980157"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-8790' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:06.985941' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:06.991376' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:06.996122"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:06.996122"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:06.999522"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:06.999522"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.000384' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.001504' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.002761' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.003299' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.005801"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:07.005801"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.006616' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.007622' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.008732' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.009214' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.011788"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:07.011788"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.012572' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.013599' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.015582' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.017019' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.021779"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:07.021779"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.023123' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.024743' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.026395' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.027078' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.029851"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:07.029851"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.030790' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.031935' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.033172' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.033665' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H68362240585%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:07.036380"], ["number", "H68362240585"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:03:07.036380"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.037278' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:07.040421' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.044357"], ["description", "Possimus repellat qui sit non."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:03:07.044357"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.045826"], ["updated_at", "2014-12-02 23:03:07.045826"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:07.055136"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:03:07.055136"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:03:07.055944"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:03:07.055944"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.057294"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:07.057294"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:07.060098"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:07.060098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.063886"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:07.063886"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:07.064656' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.065233' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.066607"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:07.066607"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:07.067272' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.067732' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.069027"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:07.069027"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:07.069674' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.070121' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.071419"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:07.071419"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:07.072077' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.072541' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.073855"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:07.073855"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:07.074542' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.074969' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:07.083257' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.102375"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:07.102375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:03:07.105638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.107218' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:03:07.107803' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.111343"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:07.111343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.113394"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:07.113394"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'G4C5ZYLZ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:03:07.115084"], ["identifier", "G4C5ZYLZ"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:07.115084"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.117255' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-154351' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-154351"], ["updated_at", "2014-12-02 23:03:07.118632"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.121522"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:07.121522"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:07.123244' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.140556"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:07.140556"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:03:07.143712"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.145312' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:07.147534' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.149281"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:07.149281"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:07.150042' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:03:07.152452"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.153643' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:07.160278' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.179546"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:07.179546"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:03:07.182569"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.184163' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:07.186354' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:07.187475' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.188885"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:03:07.188885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'G4C5ZYLZ' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "failed"], ["updated_at", "2014-12-02 23:03:07.192225"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.193376' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.198822"], ["name", "payment"], ["next_state", "failed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:07.198822"], ["user_id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:07.201287' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.223193"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:07.223193"]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:03:07.228605"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.230988' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:07.233543' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'failed', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:07.234721' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.236099"], ["name", "payment"], ["next_state", "failed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:03:07.236099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:07.245023' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.262728"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:07.262728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:03:07.266136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.267933' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:07.270324' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'failed', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:03:07.271414' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (180.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mona.hills@barton.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175613875023xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:07.478041"], ["email", "mona.hills@barton.ca"], ["encrypted_password", "d9ebed6f1246115976e01d9ec106401800120bbd52e75f5eb2d13d2c56b28b342a26293e49a5b9fb5538a7503d752d2b9aeae97556da6e2014cf4a308b895757"], ["login", "mona.hills@barton.ca"], ["password_salt", "pgWiQ9F-pgui7rysPgps"], ["updated_at", "2014-12-02 23:03:07.478041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:07.481133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:07.482382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:07.483800"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:07.483800"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:07.486372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:07.487661"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:07.487661"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001807987' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R001807987%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001807987' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '7R4YaTBf7JpGs5ArRhMT1g' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:07.493871"], ["currency", "USD"], ["email", "mona.hills@barton.ca"], ["guest_token", "7R4YaTBf7JpGs5ArRhMT1g"], ["number", "R001807987"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:03:07.493871"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:07.502506"], ["name", "ShippingCategory #3"], ["updated_at", "2014-12-02 23:03:07.502506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 657017' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.508047"], ["description", "Perferendis nam dicta voluptas officiis animi repellat neque."], ["name", "TaxCategory - 657017"], ["updated_at", "2014-12-02 23:03:07.508047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:07.512952"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:07.512952"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-5775' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-5775' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:07.500847"], ["created_at", "2014-12-02 23:03:07.516754"], ["description", "Dolor non quaerat reprehenderit natus quas ut ad pariatur. Earum accusamus laboriosam qui hic inventore ut. Necessitatibus quo doloremque est vel quidem et aspernatur.\nRepudiandae quisquam nobis placeat ullam ea commodi voluptates esse. Eos qui id et amet voluptatem excepturi. Magnam eum et eos unde. Quam ducimus quas aut exercitationem.\nConsequatur repudiandae est voluptas assumenda dolore consequatur. Earum enim repellendus voluptate illum distinctio dolorem dolore. Praesentium exercitationem deserunt sint asperiores ullam rerum."], ["name", "Product #11 - 5775"], ["shipping_category_id", 1], ["slug", "product-11-5775"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:07.516754"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-12-02 23:03:07.519064"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.521143' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.522238' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.523507' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.524068' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.527093"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:07.527093"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.528061' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.528568' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.529704' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.530201' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.534233' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.534775' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.535314' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:07.536907"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.537590' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.538037' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.538499' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.539079' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.539534' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.4ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:07.544166"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:07.544166"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-5775' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.554662' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:07.561123' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1495' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1495' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:07.566608"], ["created_at", "2014-12-02 23:03:07.570316"], ["description", "Sed sit nostrum maiores laborum exercitationem esse amet libero. Deserunt voluptas quod optio blanditiis. Nam incidunt dignissimos similique animi illo sunt consectetur reiciendis. Harum expedita ratione non hic culpa.\nNam cupiditate voluptatem nobis occaecati eaque sed. Dignissimos et consectetur iste quis aut quae quia. Est rem pariatur nemo et. Eum aut ipsum quos et.\nIncidunt impedit quas qui velit enim qui. Placeat nemo magni animi ullam sint est. Reiciendis id autem incidunt aut dolorem inventore ut quasi."], ["name", "Product #12 - 1495"], ["shipping_category_id", 1], ["slug", "product-12-1495"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:07.570316"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-12-02 23:03:07.572386"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.574352' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.575426' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.576677' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.577215' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.580005"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:07.580005"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.580947' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.581462' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.582536' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.583040' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.586921' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.587436' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.587941' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:07.589486"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.590123' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.590587' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.591040' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.591581' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.592058' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:07.596606"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:07.596606"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1495' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.602254' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:07.607867' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-7076' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-7076' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:07.614774"], ["created_at", "2014-12-02 23:03:07.618474"], ["description", "Tempora perferendis vitae recusandae doloremque labore ex vel. Repellendus a odio tempore iusto nulla. Neque aliquam est aspernatur consectetur saepe sequi ut nostrum.\nNostrum a voluptas quae rerum eum tenetur sit. Consectetur mollitia occaecati rem nam. Omnis illum id ducimus quod. Voluptas rem sit neque ex et facere.\nQuisquam ducimus minus beatae quidem sint ut enim molestiae. Error iure quod illum voluptas voluptatum atque repudiandae ipsum. Ut non illo laboriosam incidunt aut dignissimos enim quas. Perspiciatis rerum nostrum non assumenda. Et doloribus quia totam aut asperiores.\nQui et ab libero est. Quibusdam quia ut voluptatem corporis sequi quas vel exercitationem. Unde id quia quis excepturi. Asperiores quibusdam animi sit suscipit.\nSequi id incidunt vel assumenda odio ipsa. Rerum dignissimos sint beatae accusamus aliquid. Eos cumque aut sed iure sit aut. Vitae omnis repellat eveniet assumenda est voluptates. Voluptatem corporis et quo repudiandae."], ["name", "Product #13 - 7076"], ["shipping_category_id", 1], ["slug", "product-13-7076"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:07.618474"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-12-02 23:03:07.620732"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.622604' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.623662' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.624865' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.625400' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.628239"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:07.628239"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.629159' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.629683' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.630753' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.631239' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.635191' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.635739' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.636343' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-13' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:07.638198"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.638920' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.639413' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.639951' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.640545' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.641025' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:07.646047"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:07.646047"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-7076' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.651559' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:07.657055' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-4597' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-4597' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:07.662965"], ["created_at", "2014-12-02 23:03:07.666699"], ["description", "Architecto eum doloribus minus expedita necessitatibus. Tempore est alias ea officia ab. Alias ex perferendis commodi blanditiis est illum non.\nAutem molestiae quaerat sit consequatur. Sunt aut totam iusto ipsa. Nemo accusamus quo est est molestias.\nEt eligendi quia tenetur quia repellendus eos. Velit suscipit ipsam in cumque. Nesciunt suscipit sit dolores omnis eaque vel. Placeat incidunt illum qui ut excepturi voluptas. Perferendis nihil incidunt sit sed aut.\nRatione sapiente culpa dolor aut aut repellat eveniet. Eveniet qui non voluptatem dolores laborum ab sed vel. Voluptatem quam et ex minus veniam."], ["name", "Product #14 - 4597"], ["shipping_category_id", 1], ["slug", "product-14-4597"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:07.666699"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-14"], ["updated_at", "2014-12-02 23:03:07.668817"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.670733' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.671799' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.673027' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.673563' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.676469"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:07.676469"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.677397' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.677907' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.678959' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.679658' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.683552' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.684050' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.684553' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-14' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:07.686146"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.686792' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.687237' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.687691' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.688244' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.688685' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:07.693321"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:07.693321"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-4597' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.699000' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:07.704549' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-964' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-964' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:07.710400"], ["created_at", "2014-12-02 23:03:07.714128"], ["description", "Iusto sequi et rerum assumenda sunt temporibus. Est nihil vero eligendi voluptatem sint molestiae voluptatem. Sed deleniti adipisci hic quo eum vero.\nArchitecto molestias modi omnis fuga aut. Minima amet consequatur perspiciatis nemo facilis. Sit accusamus sunt deleniti quam. Rerum quidem quam et corrupti dolor eveniet. Inventore esse culpa itaque tenetur optio veritatis iure.\nIncidunt voluptas consequuntur itaque et. Accusamus nam eos veniam rerum quaerat. Neque pariatur doloribus et veritatis illum doloremque saepe.\nEveniet eos enim temporibus aspernatur rerum. Nisi non molestiae ut voluptatibus et esse nam. Repellendus sunt voluptas eaque autem rerum."], ["name", "Product #15 - 964"], ["shipping_category_id", 1], ["slug", "product-15-964"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:07.714128"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-12-02 23:03:07.716300"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.718197' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.719256' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.720458' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.720997' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.723976"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:07.723976"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.724851' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.725367' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.726461' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.726961' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.730943' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.731470' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.731999' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-15' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:07.733542"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.734161' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.734629' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.735099' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.735933' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.736399' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:07.741037"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:07.741037"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-964' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.746621' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:07.752113' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:07.756979"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:07.756979"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.760663"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:07.760663"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.761580' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.762728' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.763935' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.764469' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.766897"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:07.766897"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.767731' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.768722' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.769840' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.770314' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.772626"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:07.772626"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.773444' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.774504' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.775581' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.776093' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.778749"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:07.778749"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.779674' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.780792' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.781925' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.782421' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:07.784776"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:07.784776"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:07.785569' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:07.786554' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:07.787664' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:07.788250' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H22383312140%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:07.791026"], ["number", "H22383312140"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:03:07.791026"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.791991' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:07.795023' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.798708"], ["description", "Quaerat et possimus repudiandae incidunt sit."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:03:07.798708"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.801921"], ["updated_at", "2014-12-02 23:03:07.801921"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:07.814389"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:03:07.814389"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:03:07.815164"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:03:07.815164"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.816501"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:07.816501"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:07.819272"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:07.819272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.822994"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:07.822994"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:07.823792' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.824419' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.825877"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:07.825877"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:07.826597' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.827068' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.828361"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:07.828361"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:07.829005' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.829477' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.830772"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:07.830772"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:07.831465' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.831961' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.833317"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:07.833317"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:07.834033' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.834547' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:07.843242' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.862589"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:07.862589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:03:07.865936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.867572' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:03:07.868177' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.871912"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:07.871912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.873974"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:07.873974"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'JZZUC78Y' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:03:07.887458"], ["identifier", "JZZUC78Y"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:07.887458"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.890039' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-154231' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-154231"], ["updated_at", "2014-12-02 23:03:07.891230"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.894135"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:07.894135"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:07.895839' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.913651"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:07.913651"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:03:07.916687"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.918190' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:07.920594' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.922382"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:07.922382"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:07.923234' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:03:07.925599"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.926790' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:07.933249' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.952929"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:07.952929"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:03:07.956004"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.957639' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:07.959823' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:07.961020' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.962378"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:03:07.962378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'JZZUC78Y' ORDER BY spree_payments.created_at LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "void"], ["updated_at", "2014-12-02 23:03:07.965714"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.966865' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:07.973422' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:07.992277"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:07.992277"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:03:07.995250"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:07.996825' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:07.999002' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:08.000190' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:08.001673"], ["name", "payment"], ["next_state", "void"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:03:08.001673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:08.010386' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:08.027310"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:08.027310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:03:08.030558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:08.032259' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:08.034499' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:03:08.035561' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (175.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'marlen@keeling.biz' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614264261xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:46.211584"], ["email", "marlen@keeling.biz"], ["encrypted_password", "2a0de5a28aaee4ead120cd9e4882b07f297ff1e00e09a1e307c6a11102b5cd2277a5202049fae03fddd23145ef54db5cb5e451b3e442654930bbf3a350fdb7f3"], ["login", "marlen@keeling.biz"], ["password_salt", "z6qX51urxxa4WyswCcgB"], ["updated_at", "2014-12-02 23:03:46.211584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:46.246991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:46.253758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:46.265478"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:46.265478"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:46.290320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:46.291837"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:46.291837"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R214740252' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R214740252%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R214740252' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'E7TCfhdOXMt_aaciDZQtlA' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:46.309805"], ["currency", "USD"], ["email", "marlen@keeling.biz"], ["guest_token", "E7TCfhdOXMt_aaciDZQtlA"], ["number", "R214740252"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:03:46.309805"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:46.367755"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 23:03:46.367755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 959173' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:46.378555"], ["description", "Nihil optio eaque suscipit cum ipsa aliquid illum nostrum."], ["name", "TaxCategory - 959173"], ["updated_at", "2014-12-02 23:03:46.378555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:46.403675"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:46.403675"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-9724' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-9724' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:46.363433"], ["created_at", "2014-12-02 23:03:46.409086"], ["description", "Omnis non nihil voluptatem sunt officiis rerum tempora maxime. Ipsum ea consequatur quasi ut hic corrupti neque et. Omnis est ratione itaque occaecati. Aliquid ut cupiditate et et velit.\nTempora error sed dolorem perspiciatis. Ipsa facilis dolorem sit reiciendis totam maiores. Numquam ut aut deserunt aspernatur quibusdam natus."], ["name", "Product #1 - 9724"], ["shipping_category_id", 1], ["slug", "product-1-9724"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:46.409086"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 23:03:46.411829"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.419742' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.421037' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.435798' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.437099' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:46.466060"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:46.466060"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.467367' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.467954' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.469177' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.469705' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.480567' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.481268' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.481842' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:46.483665"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.484929' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.485439' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.485941' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.486466' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.486881' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:46.510463"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:46.510463"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-9724' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:46.527912' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:46.538115' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-979' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-979' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:46.543239"], ["created_at", "2014-12-02 23:03:46.547212"], ["description", "Nisi sit et optio modi quis quia porro culpa. In eum sint hic magnam occaecati. Sed et fugit sit corrupti.\nAnimi qui id et nemo sit unde. Doloribus facere similique est omnis sunt quas eligendi. Dignissimos culpa quaerat nam qui quisquam tempora et."], ["name", "Product #2 - 979"], ["shipping_category_id", 1], ["slug", "product-2-979"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:46.547212"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 23:03:46.601468"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.603712' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.604859' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.606134' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.606661' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:46.609469"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:46.609469"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.610409' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.610895' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.612007' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.612472' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.616299' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.616824' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.617329' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:46.618785"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.619449' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.619906' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.620361' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.0ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.620893' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.621300' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:46.625860"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:46.625860"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-979' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:46.635867' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:46.642634' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-3303' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-3303' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:46.649253"], ["created_at", "2014-12-02 23:03:46.652935"], ["description", "Ipsum corrupti in voluptatem a voluptas labore. Provident dolorem velit et aut unde qui. Eaque velit voluptas voluptates ut iste. Odio accusamus error neque iste quod earum. Nostrum officia sed voluptate nemo est et ad ut.\nReprehenderit tempora quos culpa fugiat ipsum. Maiores magni omnis consequuntur quia delectus aut quo. Id iste molestiae sint voluptas dicta eos. Sed perspiciatis recusandae ipsa perferendis ea sint et adipisci. Et animi quibusdam ea amet dolorem.\nQui ut sint esse et enim est hic error. Et est omnis itaque ad sed. Non et ad ut occaecati in.\nVoluptas sunt minus qui et libero quia vel alias. Ipsum necessitatibus aspernatur qui enim. Nesciunt rem ipsa accusantium eveniet molestiae. Ab est quidem est omnis non."], ["name", "Product #3 - 3303"], ["shipping_category_id", 1], ["slug", "product-3-3303"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:46.652935"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-12-02 23:03:46.655012"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.656831' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.657870' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.659030' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.659593' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:46.662477"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:46.662477"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.663334' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.663855' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.664998' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.665501' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.669343' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.669897' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.670438' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:46.672000"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.672666' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.673113' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.673577' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.674155' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.674585' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:46.679206"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:46.679206"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-3303' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:46.684869' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:46.690296' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-5111' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-5111' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:46.697357"], ["created_at", "2014-12-02 23:03:46.700944"], ["description", "Maxime iste nam ad exercitationem beatae dolor. Est facere voluptas quidem odit quod placeat cupiditate nisi. Unde aut in voluptatem occaecati. A hic numquam quas et quisquam. Neque consequuntur dicta id quis qui vero omnis.\nEt ut doloribus non et animi. Neque tempore eos odit occaecati. Cum eum aliquid minima qui magni sit accusantium. Labore sit quo et molestiae non quae. Sit vel natus iusto saepe.\nIncidunt molestiae ullam sunt vel nihil totam. At voluptates et quisquam et eum. Qui harum aliquam voluptas vero blanditiis. Aut nam totam repudiandae illo.\nOfficia consequatur aut ipsum mollitia molestiae vitae vel dolorem. Saepe laborum totam maxime quos consequatur. Eveniet voluptates fuga ea id. Delectus modi aut in voluptate ad et. Qui ex animi ut repudiandae recusandae voluptas omnis voluptatibus.\nVoluptates hic quo molestiae quo voluptas nam expedita. Perspiciatis quam est odio est quae. Omnis quod vitae nihil eos eligendi."], ["name", "Product #4 - 5111"], ["shipping_category_id", 1], ["slug", "product-4-5111"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:46.700944"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-12-02 23:03:46.703086"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.704975' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.706377' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.707604' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.708154' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:46.711031"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:46.711031"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.711929' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.712427' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.713464' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.713946' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.718156' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.718687' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.719250' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:46.720826"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.721472' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.721910' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.722359' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.722895' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.723332' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:46.728280"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:46.728280"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-5111' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:46.733963' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:46.740257' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-7700' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-7700' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:46.746200"], ["created_at", "2014-12-02 23:03:46.750248"], ["description", "Hic voluptatibus qui dolores pariatur placeat aliquid est. Velit fugiat error accusamus quia commodi assumenda. Enim alias quis sunt id totam.\nEveniet reiciendis sit necessitatibus totam maiores aut. Porro veritatis molestiae aut aut nihil fuga nobis. Ipsa consequuntur dolor necessitatibus illo aliquam eos.\nEarum est nihil eum animi perferendis id. Pariatur dolorem at rerum consequatur officia. In beatae deserunt aliquid commodi nam quas atque ullam. Numquam at atque occaecati ad quia. Molestiae modi nobis sapiente aut."], ["name", "Product #5 - 7700"], ["shipping_category_id", 1], ["slug", "product-5-7700"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:46.750248"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-12-02 23:03:46.752372"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.754281' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.755339' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.756524' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.757094' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:46.760000"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:46.760000"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.760864' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.761362' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.762409' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.762942' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.766813' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.767316' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.767837' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:46.769339"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.769987' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.770426' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.770906' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.771416' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.771881' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:46.776530"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:46.776530"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-7700' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:46.786645' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:46.793025' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:46.810436"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:46.810436"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:46.814139"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:46.814139"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.815118' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.816299' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.817553' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.818108' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:46.820586"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:46.820586"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.821389' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.822404' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.823485' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.823993' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:46.826359"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:46.826359"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.827168' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.828142' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.829390' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.829923' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:46.832584"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:46.832584"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.833446' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.834464' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.835540' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.836008' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:46.838357"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:46.838357"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:46.839178' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:46.840175' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:46.841244' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:46.841776' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H00007381521%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:46.847787"], ["number", "H00007381521"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:03:46.847787"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:46.848991' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.2ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:46.857704' WHERE "spree_shipments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.1ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:46.879173"], ["description", "Soluta culpa sint qui ut quibusdam."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:03:46.879173"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:46.882292"], ["updated_at", "2014-12-02 23:03:46.882292"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:46.926236"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:03:46.926236"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:03:46.927391"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:03:46.927391"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:46.929259"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:46.929259"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:46.943821"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:46.943821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:46.958908"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:46.958908"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:46.960086' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:46.960757' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:46.962329"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:46.962329"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:46.962998' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:46.963427' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:46.964726"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:46.964726"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:46.965379' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:46.965798' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:46.967144"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:46.967144"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:46.967873' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:46.968298' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:46.969618"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:46.969618"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:46.970262' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:46.970690' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:46.986789' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.040419"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:47.040419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:03:47.044721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.046373' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:03:47.046952' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.068502"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:47.068502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.081402"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:47.081402"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'D8NZ68GP' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:03:47.092753"], ["identifier", "D8NZ68GP"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:47.092753"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.095657' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-431353' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-431353"], ["updated_at", "2014-12-02 23:03:47.096957"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.107606"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:47.107606"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:47.109752' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.127050"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:47.127050"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:03:47.130159"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.131764' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:47.134117' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.135872"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:47.135872"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:47.136644' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:03:47.139145"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.140414' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:47.146987' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.166481"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:47.166481"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:03:47.169478"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.171075' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:47.173163' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:47.174286' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.177965"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:03:47.177965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'D8NZ68GP' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 23:03:47.188667"]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.189945' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.196720"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:47.196720"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 23:03:47.199398' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.219229"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:47.219229"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:03:47.222278"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.223978' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:47.226133' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.227768"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:47.227768"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:47.228595' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.229844"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:03:47.229844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.239065"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:47.239065"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 23:03:47.240038' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.257565"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:47.257565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:03:47.261188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.263048' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:47.265292' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.267024"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:47.267024"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:03:47.267882' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (60.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jamal@friesen.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614276132xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:47.340224"], ["email", "jamal@friesen.name"], ["encrypted_password", "80fee56882d029f277bb54bee4f136e6152c7d292f3c4a7e735fe0dc83330496d81644e88f2a0e637e854ae731adf806bc3222a09fd333560756775392c4195f"], ["login", "jamal@friesen.name"], ["password_salt", "2S1Z7Nf-vKtyqjvDhEVE"], ["updated_at", "2014-12-02 23:03:47.340224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:47.343658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:47.345015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:47.346481"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:47.346481"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:47.349164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:47.350486"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:47.350486"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R854973023' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R854973023%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R854973023' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bnpNgwWrH4nYzL-OGQi7sA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:47.356583"], ["currency", "USD"], ["email", "jamal@friesen.name"], ["guest_token", "bnpNgwWrH4nYzL-OGQi7sA"], ["number", "R854973023"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:03:47.356583"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:47.363990"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 23:03:47.363990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 282833' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.367033"], ["description", "Aperiam nemo qui dolor nesciunt autem vel dolore."], ["name", "TaxCategory - 282833"], ["updated_at", "2014-12-02 23:03:47.367033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:47.370941"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:47.370941"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-5282' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-5282' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:47.362680"], ["created_at", "2014-12-02 23:03:47.375512"], ["description", "Magni inventore nihil mollitia omnis. Vel doloremque rerum quo voluptatem vero. Et consequatur sapiente placeat asperiores libero quidem. Est repudiandae consectetur aut pariatur architecto."], ["name", "Product #6 - 5282"], ["shipping_category_id", 1], ["slug", "product-6-5282"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:47.375512"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-12-02 23:03:47.378000"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.379978' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.381072' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.382362' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.382930' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:47.385839"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:47.385839"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.386791' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.387309' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.388414' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.388874' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.392846' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.393347' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.393910' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:47.395698"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.396446' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.396965' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.397481' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.398053' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.398514' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:47.403555"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:47.403555"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-5282' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.409418' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:47.415438' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-2682' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-2682' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:47.422661"], ["created_at", "2014-12-02 23:03:47.426636"], ["description", "Voluptas a iste quos dolor nulla. Doloremque id et inventore consequatur quia incidunt. Porro in et architecto esse voluptate. Et officia et nihil voluptatibus rerum. Dolor neque corporis sequi perferendis.\nUllam vel sequi error dolore. Sed ab corrupti tempore est aperiam. Qui placeat reprehenderit nostrum natus odit nesciunt sit occaecati.\nQuam molestias nesciunt voluptatum totam quidem adipisci aut. Culpa velit et non consequatur. Ipsum praesentium temporibus ipsa voluptatem sit vitae.\nSunt occaecati dicta ratione cupiditate inventore ipsam nemo. Sunt consequatur dolores enim ut est. Qui sunt est doloribus in ex commodi ratione. Quia voluptates ad sit blanditiis.\nCupiditate accusantium modi dicta est asperiores dignissimos omnis voluptatum. Qui tempore ad tenetur modi qui odio voluptates. Eos qui omnis dolore quisquam laboriosam sunt. Aut fugiat est suscipit qui."], ["name", "Product #7 - 2682"], ["shipping_category_id", 1], ["slug", "product-7-2682"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:47.426636"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-12-02 23:03:47.428833"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.430882' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.432043' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.433359' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.433895' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:47.436837"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:47.436837"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.437795' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.438301' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.439459' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.439943' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.443910' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.444449' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.444991' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:47.446551"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.447247' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.447763' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.448255' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.448795' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.449219' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:47.455508"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:47.455508"], ["variant_id", 2]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-2682' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.464855' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:47.470974' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-1335' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-1335' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:47.476972"], ["created_at", "2014-12-02 23:03:47.481031"], ["description", "Eos ipsa mollitia ex distinctio eveniet nulla est. Quas laborum consequatur ipsum commodi veniam voluptatem voluptatum. Fuga impedit quisquam in autem molestias. Distinctio molestias similique veritatis occaecati.\nEos magni voluptatibus quia quae quos sed. Et deleniti saepe id earum voluptate. Ipsum cupiditate maxime ut facere blanditiis.\nUt quaerat in blanditiis sunt ut. Possimus est nemo corrupti sunt saepe sit et. Nam blanditiis enim tempora sunt iste magni earum. Sit aut commodi et perferendis corrupti.\nConsequatur vel impedit magni eum deserunt. Ea sed quasi ut sed debitis ipsum. Quas laborum culpa esse iure inventore aut voluptatem adipisci."], ["name", "Product #8 - 1335"], ["shipping_category_id", 1], ["slug", "product-8-1335"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:47.481031"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-12-02 23:03:47.483338"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.485323' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.486418' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.487699' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.488242' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:47.491219"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:47.491219"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.492194' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.492761' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.493925' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.494409' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.498390' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.498944' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.499484' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:47.501252"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.501910' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.502399' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.502876' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.503440' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.503982' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:47.528856"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:47.528856"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-1335' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.534390' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:47.540175' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-6246' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-6246' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:47.546231"], ["created_at", "2014-12-02 23:03:47.550039"], ["description", "Voluptas temporibus eaque dolor molestiae. Voluptas animi ratione sunt cupiditate veniam modi necessitatibus. Quia voluptas ratione et inventore possimus aut pariatur. Maxime accusantium omnis numquam omnis iure. Laboriosam aut dolor deleniti odio provident saepe perferendis.\nEt incidunt optio quo et voluptatem qui voluptas neque. Tempore recusandae reprehenderit nam praesentium rerum dolor. Placeat aut non enim aut beatae voluptatem atque. Et expedita minima voluptatum distinctio labore velit laborum impedit. Praesentium possimus consequuntur totam est.\nAut dolor ducimus facere porro quia. Nam molestiae blanditiis vero eum adipisci eaque est sed. Ut placeat sed facilis ut. Placeat quo perferendis eum laboriosam autem iure."], ["name", "Product #9 - 6246"], ["shipping_category_id", 1], ["slug", "product-9-6246"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:47.550039"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-12-02 23:03:47.552309"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.554256' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.555414' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.556670' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.557211' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:47.560074"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:47.560074"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.561014' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.561580' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.562725' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.563254' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.567185' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.567673' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.568212' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:47.569855"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.570532' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.571010' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.571495' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.572262' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.573585' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:47.580686"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:47.580686"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-6246' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.586257' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:47.591946' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-354' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-354' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:47.596875"], ["created_at", "2014-12-02 23:03:47.600513"], ["description", "At iure doloribus et expedita velit. Non laudantium ullam enim nostrum ducimus fuga sequi. Nisi vel ex et dolores autem rerum ut consequatur. Aut suscipit consequatur earum et voluptas officiis est iusto.\nId et nisi consequatur rem consequatur voluptatem eos. Et consectetur reiciendis blanditiis est cupiditate. Quo nostrum rerum error minima."], ["name", "Product #10 - 354"], ["shipping_category_id", 1], ["slug", "product-10-354"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:47.600513"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-12-02 23:03:47.602576"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.604417' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.605571' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.606818' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.607389' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:47.610326"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:47.610326"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.611192' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.611684' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.612802' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.613293' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.617022' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.617499' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.617997' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:47.619518"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.620131' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.620574' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.621051' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.621590' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.622050' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:47.629978"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:47.629978"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-354' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.637485' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:47.643116' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:47.648076"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:47.648076"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:47.651692"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:47.651692"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.652586' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.653725' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.654985' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.655502' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:47.657998"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:47.657998"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.658798' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.659853' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.660963' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.661436' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:47.663930"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:47.663930"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.664766' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.665857' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.667106' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.668660' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:47.673796"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:47.673796"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.675179' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.676802' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.678485' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.679143' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:47.682047"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:47.682047"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:47.682959' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:47.684073' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:47.685243' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:47.685728' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H28354336762%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:47.688452"], ["number", "H28354336762"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:03:47.688452"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.689338' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:47.692256' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.695914"], ["description", "Qui deleniti illo totam deserunt unde quibusdam."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:03:47.695914"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.697384"], ["updated_at", "2014-12-02 23:03:47.697384"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:47.706456"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:03:47.706456"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:03:47.707240"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:03:47.707240"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.708521"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:47.708521"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:47.711206"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:47.711206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.714917"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:47.714917"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:47.715805' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.716443' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.718050"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:47.718050"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:47.718784' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.719283' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.720687"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:47.720687"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:47.721429' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.721893' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.723218"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:47.723218"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:47.723876' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.724334' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.725665"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:47.725665"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:47.726361' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.726785' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:47.735315' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.754114"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:47.754114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:03:47.757394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.758968' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:03:47.759544' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.762933"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:47.762933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.764942"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:47.764942"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '2QW9FLCP' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:03:47.766653"], ["identifier", "2QW9FLCP"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:47.766653"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.768872' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-142001' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-142001"], ["updated_at", "2014-12-02 23:03:47.770012"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.772764"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:47.772764"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:47.774541' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.791791"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:47.791791"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:03:47.794817"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.796306' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:47.798524' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.800241"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:47.800241"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:47.801027' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:03:47.803476"]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.804649' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:47.811050' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.830200"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:47.830200"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:03:47.833338"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.834987' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:47.837235' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:47.838391' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.839804"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:03:47.839804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = '2QW9FLCP' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "failed"], ["updated_at", "2014-12-02 23:03:47.843110"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.844272' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.850075"], ["name", "payment"], ["next_state", "failed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:47.850075"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:47.852606' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.872117"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:47.872117"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:03:47.875181"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.876833' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:47.879140' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'failed', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:47.880339' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.881729"], ["name", "payment"], ["next_state", "failed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:03:47.881729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:47.890330' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:47.908115"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:47.908115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:03:47.911543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:47.913293' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:47.915549' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'failed', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:03:47.916635' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (147.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rigoberto@hirthe.us' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417561428473xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:48.089741"], ["email", "rigoberto@hirthe.us"], ["encrypted_password", "de81e79371e319f0ec50a1899422bd5cadc2658f898bccb7e3b924425c6baed4b34e32bb2ccc7f9ae777744d3b8b66f5d5083d470a1c3b28b58d914662bb449e"], ["login", "rigoberto@hirthe.us"], ["password_salt", "gPuFasBqzRwUd3MzzWLS"], ["updated_at", "2014-12-02 23:03:48.089741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:48.093176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:48.094382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:48.095770"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:48.095770"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:48.098268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:48.099531"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:48.099531"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R588877207' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R588877207%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R588877207' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '3nnWwtHefNRr0AoDhANt_g' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:48.109828"], ["currency", "USD"], ["email", "rigoberto@hirthe.us"], ["guest_token", "3nnWwtHefNRr0AoDhANt_g"], ["number", "R588877207"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:03:48.109828"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:48.119358"], ["name", "ShippingCategory #3"], ["updated_at", "2014-12-02 23:03:48.119358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 177066' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.122239"], ["description", "Est atque temporibus nulla doloremque voluptatem."], ["name", "TaxCategory - 177066"], ["updated_at", "2014-12-02 23:03:48.122239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:48.125700"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:48.125700"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-1335' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-1335' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:48.118254"], ["created_at", "2014-12-02 23:03:48.129975"], ["description", "Necessitatibus atque recusandae placeat veniam qui quos consectetur. Enim rem iusto est natus. Aut dolor quis ut fugiat iure velit repellat. Adipisci inventore sunt quis harum. Impedit quia praesentium autem illo dolorum fuga rerum.\nRepellendus et nihil ad iusto sit. Dolorum nobis architecto autem dolor quaerat. Laborum quis dolorum qui enim nemo perferendis est.\nEst qui neque laborum aspernatur accusantium ut possimus. Vero maiores dolorem sit at nisi quod. Praesentium et maiores officiis porro. Nulla vel temporibus molestias recusandae dolorem. Aut ad illo dicta quibusdam tempore est."], ["name", "Product #11 - 1335"], ["shipping_category_id", 1], ["slug", "product-11-1335"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.129975"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-12-02 23:03:48.132359"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.134355' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.135463' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.136703' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.137266' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:48.140345"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:48.140345"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.141260' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.141764' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.142837' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.143309' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.147195' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.147715' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.148239' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:48.149775"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.150433' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.150878' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.151348' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.151906' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.152357' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:48.157055"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.157055"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-1335' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.162825' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:48.168379' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1322' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1322' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:48.173559"], ["created_at", "2014-12-02 23:03:48.177229"], ["description", "Voluptatum velit doloribus sint magnam perferendis. Aliquid voluptatum et quia sequi deleniti maiores assumenda rerum. Omnis repellat corporis vero dolores voluptatum. Eveniet consequatur perspiciatis nihil vitae officia.\nSed iusto et voluptas eligendi et quia dolores. Et exercitationem asperiores magni ex nemo voluptatem. Rerum labore et sint molestiae unde similique. Distinctio dignissimos soluta vero consectetur id tenetur. Eius ea repudiandae facilis dicta et."], ["name", "Product #12 - 1322"], ["shipping_category_id", 1], ["slug", "product-12-1322"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.177229"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-12-02 23:03:48.179332"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.181507' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.182589' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.184051' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.184604' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:48.187558"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:48.187558"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.188477' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.188991' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.190083' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.190588' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.194394' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.194896' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.195420' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:48.196940"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.197571' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.198019' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.198476' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.198997' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.199420' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:48.203976"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.203976"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1322' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.209571' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:48.214962' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-4540' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-4540' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:48.219468"], ["created_at", "2014-12-02 23:03:48.223047"], ["description", "Fugiat exercitationem ullam velit voluptatibus consectetur ipsa iusto molestias. Excepturi et sequi ut accusamus ea reprehenderit consequuntur. Quidem eius ut iste quos consectetur quia doloremque. Sunt assumenda numquam voluptatibus id est fugiat voluptates. Optio eaque atque magnam velit quia."], ["name", "Product #13 - 4540"], ["shipping_category_id", 1], ["slug", "product-13-4540"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.223047"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-12-02 23:03:48.225052"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.226857' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.227886' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.229177' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.229729' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:48.232670"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:48.232670"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.233658' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.234163' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.235205' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.235687' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.239557' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.240085' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.240570' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-13' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:48.242119"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.242716' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.243163' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.243623' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.244153' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.244588' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:48.249103"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.249103"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-4540' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.254645' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:48.260084' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-4839' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-4839' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:48.265463"], ["created_at", "2014-12-02 23:03:48.269135"], ["description", "Accusamus qui aliquid qui et aut consequatur ducimus impedit. Id eveniet sed ipsa vitae architecto autem ex. Sunt doloremque omnis vitae velit sequi repellendus veniam odio.\nMolestiae praesentium modi sed earum pariatur qui voluptatem. Beatae fuga consectetur est rerum. Sapiente repellat laboriosam perspiciatis perferendis eius consequatur.\nCupiditate quisquam et ut ad. Aut praesentium odit quam veritatis. Et itaque placeat aperiam modi fugiat. Delectus dolore quae impedit quo explicabo excepturi dignissimos odit."], ["name", "Product #14 - 4839"], ["shipping_category_id", 1], ["slug", "product-14-4839"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.269135"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-14"], ["updated_at", "2014-12-02 23:03:48.271305"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.273165' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.274195' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.275378' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.275925' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:48.278735"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:48.278735"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.279603' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.280073' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.281118' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.281603' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.285717' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.286206' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.286701' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-14' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:48.288231"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.288846' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.289282' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.289753' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.290259' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.290699' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:48.295241"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.295241"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-4839' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.300800' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:48.306522' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-362' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-362' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:48.312040"], ["created_at", "2014-12-02 23:03:48.315703"], ["description", "Ipsum minus veniam quae mollitia. Error maiores praesentium esse consequuntur voluptatibus. Ipsa modi quo ratione aspernatur alias iure animi. Quia repellat animi repellendus ullam recusandae et. Quas quisquam quis sed officiis itaque.\nDucimus ea nemo temporibus itaque nobis id. Beatae sit provident id maxime et voluptatibus. Expedita amet officiis sit autem aliquam. Incidunt aliquam aut nostrum eum ad.\nQuod qui consequatur odit aliquid impedit quo aut et. Iste unde facere voluptas et. Veniam maxime nulla ut dolore officia."], ["name", "Product #15 - 362"], ["shipping_category_id", 1], ["slug", "product-15-362"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.315703"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-12-02 23:03:48.317725"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.319568' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.320595' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.321777' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.322299' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:48.325121"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:48.325121"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.326000' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.326465' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.327492' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.327957' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.331739' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.332226' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.332716' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-15' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:48.334269"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.334897' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.335349' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.335808' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.336316' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.336754' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:48.341339"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.341339"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-362' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.347002' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:48.353131' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:48.358435"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:48.358435"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:48.362075"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:48.362075"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.362970' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.364120' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.365288' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.365823' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:48.368406"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:48.368406"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.369297' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.370337' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.371426' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.371927' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:48.374255"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:48.374255"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.375044' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.376104' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.377254' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.378521' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:48.383758"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:48.383758"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.385149' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.386794' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.388512' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.389198' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:48.392152"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:48.392152"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.393057' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.394205' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.395334' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.395814' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H73328307787%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:48.398396"], ["number", "H73328307787"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:03:48.398396"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.399277' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:48.402264' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.405960"], ["description", "Possimus excepturi et quisquam vero cum nihil est."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:03:48.405960"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.407253"], ["updated_at", "2014-12-02 23:03:48.407253"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:48.416144"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:03:48.416144"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:03:48.416926"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:03:48.416926"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.418242"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:48.418242"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:48.421030"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:48.421030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.424705"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:48.424705"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:48.425498' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.426066' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.427440"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:48.427440"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:48.428104' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.428540' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.429803"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:48.429803"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:48.430447' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.430876' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.432132"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:48.432132"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:48.432781' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.433257' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.434556"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:48.434556"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:48.435222' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.435660' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:48.443857' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.463232"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:48.463232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:03:48.466639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.468243' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:03:48.468903' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.472536"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:48.472536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.474593"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:48.474593"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'G54XGPGQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:03:48.489187"], ["identifier", "G54XGPGQ"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:48.489187"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.491925' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-313244' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-313244"], ["updated_at", "2014-12-02 23:03:48.493146"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.495933"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:48.495933"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:48.497602' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.514836"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:48.514836"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:03:48.517942"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.519444' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:48.521682' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.523381"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:48.523381"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:48.524173' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:03:48.526638"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.527885' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:48.534444' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.553583"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:48.553583"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:03:48.556682"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.558307' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:48.560560' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:48.561759' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.563137"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:03:48.563137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'G54XGPGQ' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "void"], ["updated_at", "2014-12-02 23:03:48.566637"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.567810' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:48.574100' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.593391"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:48.593391"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:03:48.596533"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.598098' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:48.600373' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:48.601515' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.602963"], ["name", "payment"], ["next_state", "void"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:03:48.602963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:48.611795' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.629060"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:48.629060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:03:48.632357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.634107' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:48.636481' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:03:48.637497' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (176.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'bria.hagenes@jewess.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417561428724xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:48.827362"], ["email", "bria.hagenes@jewess.ca"], ["encrypted_password", "35a7b11ce8b03b2966503f1b3e3d82290feb5e15ef90417af7381df3c94c89402887867b5e9f2065f0623a6e7d02ca266abe8874936dbbe07db0e70a2e15764c"], ["login", "bria.hagenes@jewess.ca"], ["password_salt", "vfdJyrJarw1_dJUq2krh"], ["updated_at", "2014-12-02 23:03:48.827362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:48.830573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:48.831847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:48.833234"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:48.833234"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:48.835775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:48.837029"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:48.837029"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R265466089' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R265466089%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R265466089' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Dhm7QrKeUuTUTbY2ECbhuQ' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:48.847028"], ["currency", "USD"], ["email", "bria.hagenes@jewess.ca"], ["guest_token", "Dhm7QrKeUuTUTbY2ECbhuQ"], ["number", "R265466089"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:03:48.847028"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:48.855625"], ["name", "ShippingCategory #4"], ["updated_at", "2014-12-02 23:03:48.855625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 186250' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:48.858592"], ["description", "Aspernatur et illum quas quis."], ["name", "TaxCategory - 186250"], ["updated_at", "2014-12-02 23:03:48.858592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:48.862191"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:48.862191"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-4343' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-4343' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:48.854545"], ["created_at", "2014-12-02 23:03:48.867454"], ["description", "Autem adipisci incidunt voluptatem repudiandae. Quibusdam temporibus eaque amet id error totam animi quidem. Aut provident rerum vitae porro fuga eaque delectus blanditiis. Autem quia quasi deserunt rerum consequuntur esse. Consectetur deserunt blanditiis facilis ut."], ["name", "Product #16 - 4343"], ["shipping_category_id", 1], ["slug", "product-16-4343"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.867454"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-16"], ["updated_at", "2014-12-02 23:03:48.871447"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.874509' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.875987' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.877342' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.877898' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:48.880806"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:48.880806"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.881753' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.882223' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.883273' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.883721' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.887703' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.888253' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.888761' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-16' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:48.890387"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.891064' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.891560' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.892015' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.892551' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.892978' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:48.897931"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.897931"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-4343' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.903853' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:48.909387' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-3052' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-3052' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:48.915419"], ["created_at", "2014-12-02 23:03:48.919033"], ["description", "Est quisquam ratione qui iure consequatur voluptatibus voluptas debitis. Est odit consequatur aut et corporis iure quo neque. Tenetur ab quia eos magni id harum ut qui.\nAut qui dolor et ex aliquid amet exercitationem omnis. Ut quidem magni fugiat quo ut facere. Qui quia quibusdam illo omnis sunt dicta sit excepturi. Qui iste quidem quia omnis ducimus corporis exercitationem maxime.\nReiciendis velit accusantium minus dignissimos quo repellendus assumenda. Ab quo laudantium rerum ex non qui unde. Architecto commodi voluptas quod adipisci aut error sed. Veniam molestiae ex fugit enim. Ut qui sit quis suscipit ut velit adipisci dolorem.\nNobis illo nemo quibusdam officia veniam ratione rerum. Vitae deleniti veritatis et nihil iusto. Nobis velit magnam ipsam iure repudiandae inventore incidunt voluptatem."], ["name", "Product #17 - 3052"], ["shipping_category_id", 1], ["slug", "product-17-3052"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.919033"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-17"], ["updated_at", "2014-12-02 23:03:48.921101"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.923031' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.924135' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.925384' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.925943' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:48.928841"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:48.928841"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.929805' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.930308' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.931351' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.931802' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.935558' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.936086' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.936569' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-17' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:48.938140"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.938763' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.939212' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.939676' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.940196' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.940628' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:48.945100"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.945100"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-3052' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:48.950615' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:48.955938' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-9134' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-9134' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:48.961739"], ["created_at", "2014-12-02 23:03:48.965463"], ["description", "Nulla rerum qui sint iusto consequatur sed. Distinctio ut quis enim et quasi voluptatum assumenda nobis. Inventore iusto rem eum odio voluptatem ut. Soluta ea modi dolorum eius necessitatibus aut autem. Excepturi ut quod cumque perspiciatis dolores eum.\nVoluptatem quo sed nulla est. Est at est iusto ut quod rem nihil. Nesciunt rerum nam molestiae quasi vel rerum. Quo magni in dolorem quod ut rem. Accusantium reiciendis et et at aut non modi omnis.\nReprehenderit reiciendis unde eligendi tempore voluptate quia voluptatem. Sapiente est amet autem in est asperiores perspiciatis ratione. Quaerat et expedita est dolorem. Unde ducimus qui qui suscipit quidem."], ["name", "Product #18 - 9134"], ["shipping_category_id", 1], ["slug", "product-18-9134"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.965463"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-18"], ["updated_at", "2014-12-02 23:03:48.967501"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.969308' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.970372' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.971555' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.972077' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:48.974832"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:48.974832"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:48.975680' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.976169' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.977210' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.977696' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.981421' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.981937' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.982480' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-18' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:48.984026"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:48.984644' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.985092' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.985557' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:48.986077' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:48.986514' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:48.991085"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:48.991085"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-9134' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.000973' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:49.007748' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-246' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-246' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:49.012901"], ["created_at", "2014-12-02 23:03:49.016585"], ["description", "Ducimus doloribus quae autem molestiae labore facere. Repellat enim soluta doloribus sapiente possimus minima autem quisquam. Numquam praesentium est esse necessitatibus voluptas voluptatem et est. Veniam fugit omnis sunt similique eius rerum officia. Adipisci architecto vel consequatur provident dolorum ipsum rerum.\nSuscipit et dolores ut ut et enim non. Consequatur omnis corrupti provident et laborum aut tempora perferendis. Necessitatibus tenetur molestias sed sunt mollitia ut. Est omnis repudiandae ipsam quos."], ["name", "Product #19 - 246"], ["shipping_category_id", 1], ["slug", "product-19-246"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:49.016585"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-19"], ["updated_at", "2014-12-02 23:03:49.018642"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:49.020469' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:49.021500' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.022726' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.023273' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:49.026183"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:49.026183"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:49.027109' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:49.027608' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.028685' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.029164' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:49.032965' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.033462' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.033947' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-19' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:49.035501"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:49.036115' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.036563' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.037042' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.037572' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.038007' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:49.042841"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:49.042841"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-246' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.048579' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:49.067224' WHERE "spree_line_items"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-9880' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-9880' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:49.072657"], ["created_at", "2014-12-02 23:03:49.076360"], ["description", "Voluptate ut sed id eligendi magnam. Voluptatem voluptatem mollitia ut minus saepe illum magnam non. Eligendi inventore eaque error dolorem.\nInventore animi cumque quia nam doloribus beatae incidunt ut. Dignissimos doloribus ad corrupti consectetur sit. Veritatis nulla repellat dolor voluptas quas laborum omnis et.\nSaepe necessitatibus aliquam qui iusto earum dolores nemo rerum. Rerum vero nostrum est sapiente quos non. Nostrum tempore est fugit veritatis. Dolorem qui eos repudiandae rerum minus assumenda qui consequuntur. Labore facere exercitationem commodi qui possimus impedit."], ["name", "Product #20 - 9880"], ["shipping_category_id", 1], ["slug", "product-20-9880"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:49.076360"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-20"], ["updated_at", "2014-12-02 23:03:49.078497"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:49.080324' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:49.081318' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.082507' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.083034' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:49.085783"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:49.085783"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:49.086625' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:49.087162' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.088182' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.088649' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:49.092373' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.092876' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.093364' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-20' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:49.094846"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:49.095443' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.095886' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.096349' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.096852' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.097293' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:49.101738"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:49.101738"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-9880' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.107291' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:49.112699' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:49.117444"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:49.117444"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:49.120761"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:49.120761"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:49.121620' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:49.122723' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.123902' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.124463' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:49.126879"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:49.126879"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:49.127681' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:49.128658' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.129804' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.130253' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:49.132522"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:49.132522"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:49.133320' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:49.134309' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.135381' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.135845' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:49.141444"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:49.141444"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:49.143079' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:49.144717' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.146489' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.147239' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:49.150629"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:49.150629"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:49.151597' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:49.152744' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:49.153966' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:49.154437' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H66804663831%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:49.157031"], ["number", "H66804663831"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:03:49.157031"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.157971' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:49.161107' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.165019"], ["description", "Assumenda tempore quas repellendus qui voluptatem repellat."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:03:49.165019"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.166343"], ["updated_at", "2014-12-02 23:03:49.166343"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:49.174498"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:03:49.174498"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:03:49.175283"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:03:49.175283"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.176582"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:49.176582"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:49.179310"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:49.179310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.182857"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:49.182857"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:49.183634' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.184165' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.185602"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:49.185602"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:49.186259' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.186718' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.188005"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:49.188005"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:49.188644' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.189088' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.190323"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:49.190323"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:49.190992' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.191445' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.192758"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:49.192758"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:49.193378' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.193837' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:49.202179' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.221639"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:49.221639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:03:49.225103"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.226764' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:03:49.227368' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.230810"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:49.230810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.232846"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:49.232846"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '9V2EPNTW' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:03:49.234495"], ["identifier", "9V2EPNTW"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:49.234495"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.236725' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-144001' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-144001"], ["updated_at", "2014-12-02 23:03:49.237852"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.240635"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:49.240635"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:49.242275' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.258916"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:49.258916"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:03:49.261985"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.263500' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:49.265644' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.267221"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:03:49.267221"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:49.267983' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:03:49.270386"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.271527' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:49.277734' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.296527"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:49.296527"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:03:49.299525"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.301080' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:49.303159' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:49.304293' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.305699"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:03:49.305699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = '9V2EPNTW' ORDER BY spree_payments.created_at LIMIT 1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:03:49.318615' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:49.337356"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:49.337356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:03:49.340509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:49.342296' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:03:49.344570' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:03:49.345589' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (5.4ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "mercado_pago_notifications" ("created_at", "operation_id", "topic", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:57.934269"], ["operation_id", "op123"], ["topic", "payment"], ["updated_at", "2014-12-02 23:03:57.934269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 30ms (Views: 7.0ms | ActiveRecord: 1.0ms) MercadoPago::Notification Load (0.2ms) SELECT "mercado_pago_notifications".* FROM "mercado_pago_notifications" ORDER BY "mercado_pago_notifications"."created_at" DESC LIMIT 1  (37.0ms) rollback transaction  (0.2ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"nonexistent_topic"} Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 400 Bad Request in 6ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'zetta.klocko@hintzzulauf.info' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614382891xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:58.041823"], ["email", "zetta.klocko@hintzzulauf.info"], ["encrypted_password", "d3960c4360ab98d41921740ddc14960b85319db6d4c12aeea2e58cf784da4b8d547408edaaa8ec280fd29301e000252fe501236eed898beb1e24fcdc09cfd857"], ["login", "zetta.klocko@hintzzulauf.info"], ["password_salt", "BWPxf1TyfDpWVoyBVz48"], ["updated_at", "2014-12-02 23:03:58.041823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:58.069275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:58.079571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:58.091879"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:58.091879"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R887356301' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R887356301%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R887356301' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-4ymidGjxy3eh-OqjktgrQ' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:58.128247"], ["currency", "USD"], ["email", "zetta.klocko@hintzzulauf.info"], ["guest_token", "-4ymidGjxy3eh-OqjktgrQ"], ["number", "R887356301"], ["state", "cart"], ["updated_at", "2014-12-02 23:03:58.128247"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:58.181648"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 23:03:58.181648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 526286' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:58.191880"], ["description", "Debitis nulla unde qui numquam aut officia distinctio exercitationem."], ["name", "TaxCategory - 526286"], ["updated_at", "2014-12-02 23:03:58.191880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:58.216671"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:58.216671"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-2096' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-2096' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:58.177587"], ["created_at", "2014-12-02 23:03:58.222215"], ["description", "Non rem occaecati eos magnam fugiat molestiae. Est quam natus vero laborum nulla rem. Quidem labore eos odit quis nemo laboriosam quibusdam. Fugiat est placeat nemo et non maxime in.\nOdio ipsam laboriosam quo voluptatem. Architecto excepturi aperiam qui earum. Quod est accusantium et rerum ullam aut rerum. Porro numquam et distinctio dolorem non quasi.\nSequi ab magni et nobis repellendus consequatur recusandae qui. Mollitia commodi et et omnis atque. Odit rem voluptas libero ut minima quidem in.\nEt similique officiis veritatis exercitationem. Qui minima numquam dicta ut quia cum. Qui voluptatem facere repellat voluptatem."], ["name", "Product #1 - 2096"], ["shipping_category_id", 1], ["slug", "product-1-2096"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.222215"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 23:03:58.225066"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.232778' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.234154' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.248556' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.249891' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:58.325600"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:58.325600"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.326854' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.327509' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.328769' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.329318' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.339597' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.340248' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.340837' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:58.342487"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.343674' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.344175' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.344638' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.345192' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.345632' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:58.362144"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.362144"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-2096' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:58.370665' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:58.379541' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-9878' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-9878' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:58.385874"], ["created_at", "2014-12-02 23:03:58.389648"], ["description", "Molestiae aliquam eius eaque enim voluptatem corporis quisquam excepturi. Magnam sunt quibusdam id laborum. Sint enim rerum at atque. Voluptatem velit itaque autem veniam neque iure nihil ut. Minima fuga et similique maiores unde.\nQuia quam qui autem ducimus et ratione ut. Sit quia repellendus quis sit perspiciatis nostrum. Culpa dolor dolorem esse explicabo ut id aperiam minus.\nUt molestias iure unde illum incidunt. Impedit saepe sit rerum eius voluptatibus. Fugit dolores doloribus at cumque.\nDolore autem cum ratione fuga voluptatem consequatur. Et doloremque iste aut et. Ut dolores sint et sit eius. Sequi aut et quos omnis expedita."], ["name", "Product #2 - 9878"], ["shipping_category_id", 1], ["slug", "product-2-9878"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.389648"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 23:03:58.391802"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.393742' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.394821' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.396041' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.396581' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:58.399528"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:58.399528"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.400503' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.401012' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.402168' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.402691' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.406577' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.407087' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.407601' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:58.409164"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.409871' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.410317' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.410820' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.411401' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.411887' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:58.416481"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.416481"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-9878' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:58.421209' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:58.426002' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 23:03:58.443404' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:58.473351"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:58.473351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:58.487675"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:58.487675"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'domingo_konopelski@ward.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614386412xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:58.492366"], ["email", "domingo_konopelski@ward.com"], ["encrypted_password", "5bb050cc8b54c5a84b5b425df5a4931e54058508bd62aabd5557729c4334dd1bf04cd8aa19947d728155b13fb25fd9348a18518415fae1646bcdb989b0cbd432"], ["login", "domingo_konopelski@ward.com"], ["password_salt", "K2_owVy1nzjw5K8MsQAn"], ["updated_at", "2014-12-02 23:03:58.492366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:58.495037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:58.496436"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:58.496436"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R138600292' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R138600292%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R138600292' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'R7zmvc40nCl6T5iyqEXyrA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 23:03:58.502649"], ["currency", "USD"], ["email", "domingo_konopelski@ward.com"], ["guest_token", "R7zmvc40nCl6T5iyqEXyrA"], ["number", "R138600292"], ["state", "cart"], ["updated_at", "2014-12-02 23:03:58.502649"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '9363JQN7' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 23:03:58.516423"], ["identifier", "9363JQN7"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:58.516423"]] Spree::Payment Load (0.6ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:58.520424' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-334324' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-334324"], ["updated_at", "2014-12-02 23:03:58.522018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jaylin@reichel.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417561438933xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:58.544484"], ["email", "jaylin@reichel.us"], ["encrypted_password", "b892042c6bfaeece4c475ba6c303bcb0804a77c267b2ca2972839e8e848ba2778b9a300088309b6a0d05c76890cddd2cf85baaa11df602a2b1eedc882b162f58"], ["login", "jaylin@reichel.us"], ["password_salt", "WQqGbsLKrJcArxCcpaXy"], ["updated_at", "2014-12-02 23:03:58.544484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:58.548836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:58.550163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:58.551688"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:58.551688"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R365518812' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R365518812%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R365518812' LIMIT 1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'n2ffjrOxD6EnprkwY0aYcA' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:58.557336"], ["currency", "USD"], ["email", "jaylin@reichel.us"], ["guest_token", "n2ffjrOxD6EnprkwY0aYcA"], ["number", "R365518812"], ["state", "cart"], ["updated_at", "2014-12-02 23:03:58.557336"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:58.565691"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 23:03:58.565691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 756333' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:58.568349"], ["description", "Ut qui eos cum dolorem ratione nemo quam."], ["name", "TaxCategory - 756333"], ["updated_at", "2014-12-02 23:03:58.568349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:58.571607"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:58.571607"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-7122' LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-7122' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:58.564600"], ["created_at", "2014-12-02 23:03:58.576853"], ["description", "Odit quia eos veritatis odio. Sint molestiae nobis officiis sunt ullam ipsa voluptatibus eaque. Aut recusandae asperiores voluptatem velit est occaecati voluptate quod. Beatae eligendi expedita assumenda ut nam nulla ipsam voluptate.\nPerferendis et magnam tenetur maiores nesciunt suscipit. Animi ut sunt reiciendis quo atque velit dignissimos. Deserunt nam voluptates doloremque tempora aliquid facere sed vel. Perferendis rerum odit iusto ipsam est. Sunt neque repudiandae nulla culpa repellat sint sed.\nEt consequatur quis illo animi exercitationem aspernatur. Fugit ea delectus soluta suscipit qui aspernatur officiis enim. Sint a dicta aut id illo aperiam dolor qui. Et asperiores velit sed veritatis optio tempora."], ["name", "Product #3 - 7122"], ["shipping_category_id", 1], ["slug", "product-3-7122"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.576853"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-12-02 23:03:58.581329"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.584572' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.586255' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.587963' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.588528' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:58.592294"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:58.592294"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.593309' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.593874' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.595092' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.595600' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.599593' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.600088' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.600733' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:58.602453"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.603177' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.603690' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.604202' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.604793' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.605260' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:58.610025"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.610025"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-7122' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:58.614232' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:58.618912' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2795' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2795' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:58.624768"], ["created_at", "2014-12-02 23:03:58.628551"], ["description", "Aspernatur ut sed sunt maiores est. Deserunt voluptatum ipsa in autem sint. Blanditiis pariatur cum et eum. Eligendi dolorum quasi recusandae est.\nAliquam veniam soluta aspernatur quia et aliquid quasi et. Dignissimos harum est perferendis tenetur sint. Illum doloribus qui maiores quo quam.\nQuisquam pariatur adipisci distinctio sunt numquam maiores. Dolores ab eos molestiae est voluptatum. Laborum cupiditate earum nam aliquid quis illo ipsum.\nEt exercitationem omnis voluptatem et. Voluptatem velit animi odio alias. Accusamus culpa porro et facilis et est."], ["name", "Product #4 - 2795"], ["shipping_category_id", 1], ["slug", "product-4-2795"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.628551"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-12-02 23:03:58.630695"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.632719' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.633819' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.635085' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.635654' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:58.639013"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:58.639013"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.639936' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.640466' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.641538' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.642051' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.645966' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.646520' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.647089' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:58.648889"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.649628' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.650158' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.650742' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.651335' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.651819' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:58.656574"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.656574"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2795' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:58.660691' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:58.665226' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 23:03:58.673860' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:58.677532"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:58.677532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:58.679564"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:58.679564"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'graham.mueller@wardokeefe.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417561438834xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:58.682441"], ["email", "graham.mueller@wardokeefe.name"], ["encrypted_password", "3b7841585808a39b311be87a909722f1c9ae8a11c70fdb2dc3a1906ec2d19c92a11c35ece26f0f52109b8d2b1886cd42c65b2e0cab531fbf9c217aff7eedd0ab"], ["login", "graham.mueller@wardokeefe.name"], ["password_salt", "YmMs_qjx_gUqrk5yQxjE"], ["updated_at", "2014-12-02 23:03:58.682441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:58.685013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:58.686353"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:58.686353"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R523964392' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R523964392%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R523964392' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'OsR81Fgvle__4red3y2JNQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 23:03:58.691617"], ["currency", "USD"], ["email", "graham.mueller@wardokeefe.name"], ["guest_token", "OsR81Fgvle__4red3y2JNQ"], ["number", "R523964392"], ["state", "cart"], ["updated_at", "2014-12-02 23:03:58.691617"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'KWU97QXB' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 23:03:58.694234"], ["identifier", "KWU97QXB"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:58.694234"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:58.696748' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-120420' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-120420"], ["updated_at", "2014-12-02 23:03:58.698027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dolores.ledner@fay.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614381795xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:58.715042"], ["email", "dolores.ledner@fay.name"], ["encrypted_password", "a4cd073d503b18a2387dfbecde082c9935ecb0ca9f61dd015ac438ae2bf79855066063222149066f98e4224931e0b3de843b1ef062289b313930e7f7b5490cb3"], ["login", "dolores.ledner@fay.name"], ["password_salt", "ugskawTwzhyhn5yEaGoJ"], ["updated_at", "2014-12-02 23:03:58.715042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:58.718328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:58.719723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:58.721233"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:58.721233"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R080778935' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R080778935%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R080778935' LIMIT 1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'iRTNg9Mdnn_v0DeDqm2k1w' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:58.727611"], ["currency", "USD"], ["email", "dolores.ledner@fay.name"], ["guest_token", "iRTNg9Mdnn_v0DeDqm2k1w"], ["number", "R080778935"], ["state", "cart"], ["updated_at", "2014-12-02 23:03:58.727611"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:58.742115"], ["name", "ShippingCategory #3"], ["updated_at", "2014-12-02 23:03:58.742115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 369109' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:58.744884"], ["description", "Tempora porro officia amet minima."], ["name", "TaxCategory - 369109"], ["updated_at", "2014-12-02 23:03:58.744884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:58.748530"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:58.748530"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-6697' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-6697' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:58.741017"], ["created_at", "2014-12-02 23:03:58.752316"], ["description", "Rem ad laborum et qui amet est et. Aperiam natus eaque alias minima fuga culpa ducimus aut. Sed dolorem iste nemo inventore. Veritatis iure in rerum qui cumque laudantium iusto aut.\nUllam dolorem excepturi expedita voluptas. Et est porro fugiat hic. Officiis vel ad incidunt repellat error quis corrupti. Aut dolorum enim labore rerum molestiae ullam dolor in.\nQui dolor est rem iusto autem accusamus deserunt. Est quidem perspiciatis dicta porro. A modi accusantium exercitationem provident. Vitae voluptate ducimus dolor fuga.\nMagni delectus qui et minus modi qui. Incidunt sed praesentium sint veniam magnam qui amet enim. Sed qui id optio non. Quia accusamus et fugiat autem enim. Doloremque qui debitis aut labore provident sit consequuntur fugiat.\nEt dicta id qui accusantium quos sed sit. Voluptatem ex tenetur assumenda corporis similique. Nobis vero vel dolore corporis quia. Est ut enim ullam dicta. Autem illo laudantium omnis quisquam et quae officiis cum."], ["name", "Product #5 - 6697"], ["shipping_category_id", 1], ["slug", "product-5-6697"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.752316"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-12-02 23:03:58.754528"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.756524' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.757893' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.759357' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.760041' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:58.763659"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:58.763659"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.764677' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.765240' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.766374' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.766890' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.771082' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.772769' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.774130' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:58.777409"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.778578' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.779370' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.780179' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.781079' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.781827' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:58.787405"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.787405"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-6697' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:58.807748' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:58.812584' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-8586' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-8586' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:58.818113"], ["created_at", "2014-12-02 23:03:58.821915"], ["description", "Modi dicta laboriosam qui ea deserunt. Harum natus veniam repellendus enim neque molestias. Quaerat et modi sit pariatur rerum in ut est. Alias voluptates similique vel ut voluptas et.\nDolor optio dolorem quas beatae consequuntur aspernatur velit eum. Voluptates accusamus beatae porro dolorem quaerat occaecati sed quibusdam. Et laboriosam dolorem et consequatur quo quasi dolor commodi.\nAccusamus ea dolores sit ad qui. Omnis ex nobis enim occaecati voluptas sint ut nihil. Quas quisquam qui ducimus et."], ["name", "Product #6 - 8586"], ["shipping_category_id", 1], ["slug", "product-6-8586"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.821915"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-12-02 23:03:58.824098"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.826018' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.827096' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.828299' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.828887' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:58.832223"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:58.832223"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.833262' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.833796' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.834937' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.835499' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.839393' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.839920' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.840497' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:58.842262"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.843001' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.843579' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.844129' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.844734' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.845226' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:58.849928"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.849928"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-8586' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:58.854024' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:58.858440' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 23:03:58.867132' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:58.870813"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:58.870813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:58.872872"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:58.872872"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tyree_corkery@hudson.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614382496xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:58.876055"], ["email", "tyree_corkery@hudson.com"], ["encrypted_password", "750d6955f51de6352bb727d16f99afaeeb07f5098653e986f57661a86b1134b773fb55ab52bd22d2408704d0dc37cf26103bc502a0853726c550c69e7c19ad45"], ["login", "tyree_corkery@hudson.com"], ["password_salt", "ZWeFbFYxoLntUvR3Ag-h"], ["updated_at", "2014-12-02 23:03:58.876055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:58.878532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:58.879904"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:58.879904"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R841739536' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R841739536%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R841739536' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'YIsEBOOt_CsyKiBo2FBuyw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 23:03:58.885169"], ["currency", "USD"], ["email", "tyree_corkery@hudson.com"], ["guest_token", "YIsEBOOt_CsyKiBo2FBuyw"], ["number", "R841739536"], ["state", "cart"], ["updated_at", "2014-12-02 23:03:58.885169"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'L2M9H6GF' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 23:03:58.887512"], ["identifier", "L2M9H6GF"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:58.887512"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:58.889645' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-542220' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-542220"], ["updated_at", "2014-12-02 23:03:58.890807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (3.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'domenick.cormier@bode.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614385497xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:58.903855"], ["email", "domenick.cormier@bode.ca"], ["encrypted_password", "42b32f709b45e086105e98a90498fe3d8f3b7595bc6b0edfbb896fef6daa80967733b369ebdef846c775a5bdc7b67bed2b01f80c6ebcad916c38a7a3c5d64c16"], ["login", "domenick.cormier@bode.ca"], ["password_salt", "Zg2x5y4cTQqCzeMq363T"], ["updated_at", "2014-12-02 23:03:58.903855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:58.906961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:58.908239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:58.909664"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:58.909664"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R593287580' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R593287580%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R593287580' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'D7cCy8AiWLn8ga3H2qtKbw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:58.915390"], ["currency", "USD"], ["email", "domenick.cormier@bode.ca"], ["guest_token", "D7cCy8AiWLn8ga3H2qtKbw"], ["number", "R593287580"], ["state", "cart"], ["updated_at", "2014-12-02 23:03:58.915390"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:58.927887"], ["name", "ShippingCategory #4"], ["updated_at", "2014-12-02 23:03:58.927887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 726827' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:58.931725"], ["description", "Ab odit explicabo assumenda fuga."], ["name", "TaxCategory - 726827"], ["updated_at", "2014-12-02 23:03:58.931725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:58.935176"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:58.935176"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-1255' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-1255' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:58.926155"], ["created_at", "2014-12-02 23:03:58.939234"], ["description", "Hic voluptate nemo dolores aut quia est porro in. Itaque quia quos ducimus minima mollitia repudiandae qui placeat. At ut fugiat nesciunt nihil quas iusto nihil aut. Suscipit dolor distinctio nihil dolor hic.\nAut et labore voluptas molestiae dolorem repellendus quia. Deleniti provident delectus rerum minus ut ut. Veniam laudantium hic aliquam similique quaerat dolorum. Dolore quo facilis nihil eos.\nCupiditate in ad neque et. Sint qui rerum magni aut voluptatem ullam assumenda voluptatem. Totam eum sit a eum quisquam error iure unde."], ["name", "Product #7 - 1255"], ["shipping_category_id", 1], ["slug", "product-7-1255"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.939234"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-12-02 23:03:58.941670"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.943928' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.945126' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.946419' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.947058' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:58.950509"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:58.950509"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.951446' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.951984' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.953103' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.953602' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.957723' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.958415' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.959029' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:58.960845"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.961612' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.962068' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.962590' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.963149' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.963608' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:58.968429"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.968429"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-1255' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:58.972631' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:58.977212' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-1840' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-1840' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:58.984087"], ["created_at", "2014-12-02 23:03:58.987953"], ["description", "Odio earum et ut provident eos architecto sed. Veritatis ratione eveniet vel fugit atque minima voluptatem autem. Beatae sunt facilis omnis accusantium sapiente ut provident. Et fugiat perferendis commodi culpa sunt.\nEius voluptas possimus iure et ipsam. Deserunt perferendis et est in corporis non inventore itaque. Saepe nesciunt iure sed iste. Non ea earum rerum eum. Maiores repudiandae temporibus consequatur cupiditate quam.\nQuis explicabo suscipit ab voluptas corporis cumque. Corrupti velit minima sunt aut. Atque dolore nobis maxime est. Et doloribus autem cumque aut. Quas ut perferendis nulla et ullam sed sunt.\nLabore vel aut voluptatibus rem voluptatem. Rerum non et sit veritatis accusamus molestiae excepturi. Unde consequatur qui tempore porro voluptatibus."], ["name", "Product #8 - 1840"], ["shipping_category_id", 1], ["slug", "product-8-1840"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:58.987953"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-12-02 23:03:58.990072"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.992039' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.993127' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:58.994351' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:58.994894' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:58.998208"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:58.998208"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:58.999148' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:58.999636' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.000726' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.001239' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.005135' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.005656' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.006196' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:59.009742"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.011109' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.012044' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.013008' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.013973' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.014698' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:59.020965"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.020965"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-1840' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.024986' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:59.029347' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 23:03:59.037936' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.041569"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:59.041569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.043603"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:59.043603"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'orpha_runolfsson@tremblay.ca' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614396808xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:59.046552"], ["email", "orpha_runolfsson@tremblay.ca"], ["encrypted_password", "dbb59e0debb549785bcd7eb56267611eef77fa018a35fa69a4e64fe2ab2ff6094a8ea0d5013ba32c5d3532b0b44de495817ce03df39f36b5339f3a28084483fb"], ["login", "orpha_runolfsson@tremblay.ca"], ["password_salt", "py8ouZTSZKo8N--NGvBB"], ["updated_at", "2014-12-02 23:03:59.046552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:59.049085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:59.050439"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:59.050439"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R785496002' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R785496002%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R785496002' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '2tsTMAr6d6NumJ4VLB5_eA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 23:03:59.055839"], ["currency", "USD"], ["email", "orpha_runolfsson@tremblay.ca"], ["guest_token", "2tsTMAr6d6NumJ4VLB5_eA"], ["number", "R785496002"], ["state", "cart"], ["updated_at", "2014-12-02 23:03:59.055839"], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'UAWNUK6J' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 23:03:59.058250"], ["identifier", "UAWNUK6J"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:59.058250"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.060387' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-050444' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-050444"], ["updated_at", "2014-12-02 23:03:59.061546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'erick_lynch@rutherfordlangosh.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614393969xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:59.075070"], ["email", "erick_lynch@rutherfordlangosh.name"], ["encrypted_password", "f7b4c2f3c2270287f60f7b694a0473a61503b50cdf3787887aad7efc68d3a8ac259bb491e8fa9d1d1e99696b3b5a98f5ddbb3794d453da856308656044773747"], ["login", "erick_lynch@rutherfordlangosh.name"], ["password_salt", "EByCFi68a7sCNTzFouZC"], ["updated_at", "2014-12-02 23:03:59.075070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:59.079544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:59.082184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:59.084796"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:59.084796"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R622900325' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R622900325%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R622900325' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'z-zGa6RWUmjK1APolWJZmw' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:59.092024"], ["currency", "USD"], ["email", "erick_lynch@rutherfordlangosh.name"], ["guest_token", "z-zGa6RWUmjK1APolWJZmw"], ["number", "R622900325"], ["state", "cart"], ["updated_at", "2014-12-02 23:03:59.092024"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:59.101520"], ["name", "ShippingCategory #5"], ["updated_at", "2014-12-02 23:03:59.101520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 697132' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.104301"], ["description", "Voluptas delectus suscipit in consequuntur harum."], ["name", "TaxCategory - 697132"], ["updated_at", "2014-12-02 23:03:59.104301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:59.107777"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:59.107777"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-5117' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-5117' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:59.100271"], ["created_at", "2014-12-02 23:03:59.112031"], ["description", "Soluta facere dolores asperiores necessitatibus earum omnis non laudantium. Quam iste fugiat est eos et labore qui. Qui velit nihil minus dolorum quasi. Rerum est iste sunt autem veritatis.\nDeleniti itaque assumenda voluptate accusantium beatae iusto. Impedit quia cupiditate nihil et aut veritatis. Aut impedit blanditiis praesentium cupiditate quaerat et. Dolorum vero ipsam commodi rerum ratione dolores aut. Dignissimos corporis dolores qui voluptatem qui et.\nMinima excepturi nemo saepe voluptatem doloribus dignissimos laboriosam. Maiores exercitationem aspernatur totam id. Cumque expedita ipsam alias officia aliquam eos dignissimos consequatur. Velit sit dolorem eaque corporis unde atque. Occaecati praesentium laboriosam consequatur suscipit corrupti officia dolores voluptatibus.\nNeque alias blanditiis quos est doloremque. Quidem sit quas aspernatur iure quisquam. Exercitationem corrupti excepturi voluptatem est praesentium autem. Non eligendi laboriosam provident consequuntur repellendus at recusandae fuga."], ["name", "Product #9 - 5117"], ["shipping_category_id", 1], ["slug", "product-9-5117"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.112031"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-12-02 23:03:59.114556"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.116576' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.117717' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.119018' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.119574' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.122934"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:59.122934"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.123877' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.124406' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.125552' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.126074' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.130436' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.131882' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.133129' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:59.136156"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.137312' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.138072' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.138831' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.139745' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.140474' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:59.145974"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.145974"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-5117' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.150185' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:59.154740' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-5700' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-5700' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:59.159521"], ["created_at", "2014-12-02 23:03:59.163251"], ["description", "Consectetur magni voluptatem voluptatum illum. Quia quod et repudiandae quo dolorem voluptatem unde. Ullam ex accusamus dolorem quo nesciunt repudiandae.\nPraesentium est dolorem mollitia velit non veniam eius. Laboriosam facilis occaecati ut ut voluptatibus est voluptas. Sapiente nesciunt sed magni voluptas dolorum earum quisquam."], ["name", "Product #10 - 5700"], ["shipping_category_id", 1], ["slug", "product-10-5700"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.163251"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-12-02 23:03:59.165470"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.167435' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.168511' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.169747' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.170302' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.173593"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:59.173593"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.174513' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.175053' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.176154' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.176669' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.180661' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.181179' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.181714' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:59.183621"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.184342' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.184862' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.185421' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.186057' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.186590' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:59.191419"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.191419"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-5700' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.195556' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:59.200223' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 23:03:59.209238' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 23:03:59.220727"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 23:03:59.220727"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:59.224280' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.224835' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.228578"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:59.228578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.230633"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:59.230633"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'clemmie_padberg@monahan.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141756143936910xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:59.233652"], ["email", "clemmie_padberg@monahan.com"], ["encrypted_password", "e279b01edc00f16e484c1f3963957466b2456a77e530e67a2e78e61e8320f03b5918ed09c5a4dd2a7ac6f63086a0e61d5db0fe20f3da0b14557624ea2e50b451"], ["login", "clemmie_padberg@monahan.com"], ["password_salt", "hgYo36D77ZMCze3ssPoh"], ["updated_at", "2014-12-02 23:03:59.233652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:59.236358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:59.237838"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:59.237838"], ["zipcode", "35005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R318703748' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R318703748%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R318703748' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'KDlljGECEFRZe3g5w5BZAQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 23:03:59.243947"], ["currency", "USD"], ["email", "clemmie_padberg@monahan.com"], ["guest_token", "KDlljGECEFRZe3g5w5BZAQ"], ["number", "R318703748"], ["state", "cart"], ["updated_at", "2014-12-02 23:03:59.243947"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '2FS9839R' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 23:03:59.246841"], ["identifier", "2FS9839R"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:59.246841"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.249335' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-541020' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-541020"], ["updated_at", "2014-12-02 23:03:59.250680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (5.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'madisen_bernier@tromp.name' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614392011xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:59.283637"], ["email", "madisen_bernier@tromp.name"], ["encrypted_password", "2b34e115cfc3004ffe0a8fd1b55e9bc3035aacec3beb957dc742385c6fe8154c5e8801925ca618f795a908485a628bcf5062db1295974cb7717a8095cf7bc45b"], ["login", "madisen_bernier@tromp.name"], ["password_salt", "YJ7Mkw7F5KT_asrC1Ff1"], ["updated_at", "2014-12-02 23:03:59.283637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:59.287976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:59.289291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:59.290715"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:59.290715"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R030156454' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R030156454%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R030156454' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ILoOp0qxEArBz8WVN2wOEg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:59.296270"], ["currency", "USD"], ["email", "madisen_bernier@tromp.name"], ["guest_token", "ILoOp0qxEArBz8WVN2wOEg"], ["number", "R030156454"], ["state", "cart"], ["updated_at", "2014-12-02 23:03:59.296270"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:59.304582"], ["name", "ShippingCategory #6"], ["updated_at", "2014-12-02 23:03:59.304582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 145715' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.307206"], ["description", "Id esse voluptates totam sunt veniam perferendis eius."], ["name", "TaxCategory - 145715"], ["updated_at", "2014-12-02 23:03:59.307206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:59.310523"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:59.310523"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-2635' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-2635' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:59.303508"], ["created_at", "2014-12-02 23:03:59.314225"], ["description", "Veniam est sed ad quas ullam aperiam unde nobis. Quo quidem iure nemo architecto dolores magnam sapiente. Quo aut ut et voluptatem dolorem nisi facilis nam. Maxime autem quaerat sit est nobis.\nLibero repellendus deleniti est ut. Occaecati architecto magnam sed recusandae voluptatem velit officiis dolorem. Impedit dolor consequatur dolores deleniti amet quia ipsam culpa. Tenetur unde qui velit non numquam perferendis. Quos ex repudiandae perferendis neque qui dolorem.\nExercitationem neque totam est cum maxime veniam. Et voluptatum voluptates sint est quia possimus quasi totam. Quam accusamus quod minima modi. Similique quo dicta at laudantium modi."], ["name", "Product #11 - 2635"], ["shipping_category_id", 1], ["slug", "product-11-2635"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.314225"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-12-02 23:03:59.316783"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.318849' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.320002' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.321258' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.321809' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.325148"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:59.325148"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.326119' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.326690' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.328047' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.328605' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.332877' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.333438' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.334014' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:59.335722"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.336467' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.336967' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.337483' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.338062' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.338604' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:59.343337"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.343337"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-2635' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.347651' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:59.352765' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-3634' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-3634' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:59.359552"], ["created_at", "2014-12-02 23:03:59.363567"], ["description", "Nam necessitatibus laboriosam commodi dolores vel fuga. Qui aut nobis laboriosam magni accusamus facere explicabo. At vel eaque delectus ut.\nConsequatur vel suscipit ad sit quae. Natus omnis error aliquam quae quis rerum dolorum adipisci. Ex sint vitae porro ullam aliquam eos. Incidunt eos aut accusantium impedit dolorum qui natus.\nEnim ducimus veritatis et delectus. Repudiandae sunt est quasi qui quo. Tenetur id in deleniti repudiandae cumque.\nFugit ex facilis id qui maiores consequatur. Consequatur vero sit molestiae et voluptates quo facilis repudiandae. Ut molestias deleniti ipsam quia et enim porro.\nExplicabo dolorem earum debitis aut. Error corrupti culpa voluptates est. Doloremque qui tenetur molestias ducimus."], ["name", "Product #12 - 3634"], ["shipping_category_id", 1], ["slug", "product-12-3634"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.363567"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-12-02 23:03:59.365771"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.367775' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.368853' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.370068' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.370619' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.373890"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:59.373890"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.374803' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.375299' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.376384' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.376933' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.380996' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.381574' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.382219' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:59.384007"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.384709' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.385261' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.385786' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.386404' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.386898' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:59.391559"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.391559"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-3634' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.395742' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:59.400195' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 23:03:59.408690' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 23:03:59.410401"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 23:03:59.410401"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:59.413136' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.413635' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.417288"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:59.417288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.419438"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:59.419438"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'estrella@casperstrosin.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141756143953212xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:59.422373"], ["email", "estrella@casperstrosin.name"], ["encrypted_password", "b75f5d1f5cc8d233b0f75e9202f973c5b92189ed0b65f3c7bbfccf97a216f9fbf601185a16c78c327a0ea3f1ee74897b231c5ae145cf6e193df99660ea179425"], ["login", "estrella@casperstrosin.name"], ["password_salt", "XZKTSVGhbczK-mMkmRyv"], ["updated_at", "2014-12-02 23:03:59.422373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:59.424891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:59.426275"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:59.426275"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R664214816' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R664214816%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R664214816' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'R77PdsK7_VLurwgbEkclTg' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 23:03:59.431461"], ["currency", "USD"], ["email", "estrella@casperstrosin.name"], ["guest_token", "R77PdsK7_VLurwgbEkclTg"], ["number", "R664214816"], ["state", "cart"], ["updated_at", "2014-12-02 23:03:59.431461"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '6P2FXFM7' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 23:03:59.433774"], ["identifier", "6P2FXFM7"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:59.433774"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.435930' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-321315' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-321315"], ["updated_at", "2014-12-02 23:03:59.437067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (5.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tia@abshire.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614392413xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:03:59.460082"], ["email", "tia@abshire.co.uk"], ["encrypted_password", "aa224a6f0cf77122d66ed4977c7f8841a72c826c5dc4413dbfa9fe547297cfbe9427eced345367d47bc20b73711970d2bd2a89b28a1f7ce2131758189fc7e929"], ["login", "tia@abshire.co.uk"], ["password_salt", "XxwAmdi_YWWzoRfHHsNf"], ["updated_at", "2014-12-02 23:03:59.460082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:03:59.464824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:59.466614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:59.468191"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:59.468191"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:03:59.470715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:03:59.471986"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:03:59.471986"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R541951014' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R541951014%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R541951014' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '1w9HV_-oUvB3D73mPAqFoA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:03:59.480737"], ["currency", "USD"], ["email", "tia@abshire.co.uk"], ["guest_token", "1w9HV_-oUvB3D73mPAqFoA"], ["number", "R541951014"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:03:59.480737"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:59.489235"], ["name", "ShippingCategory #7"], ["updated_at", "2014-12-02 23:03:59.489235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 310167' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.492220"], ["description", "Adipisci sunt ut quidem aut voluptatem."], ["name", "TaxCategory - 310167"], ["updated_at", "2014-12-02 23:03:59.492220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:59.495841"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:59.495841"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-7652' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-7652' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:59.488005"], ["created_at", "2014-12-02 23:03:59.499641"], ["description", "Quasi tenetur corrupti officiis et commodi omnis ex qui. Totam adipisci quas nesciunt perferendis temporibus. Quo porro pariatur iste nihil eos corporis rerum. Accusantium optio suscipit ut nesciunt consequatur. Ut accusamus nostrum optio et et ipsam.\nTenetur enim quam ut voluptatibus hic natus rerum. Qui sed mollitia atque odio nobis ratione fugit. Quisquam nobis sunt doloremque distinctio saepe. Alias ipsam quis ea ut omnis ut architecto.\nNon quasi atque modi laboriosam vel exercitationem est distinctio. Praesentium in ut et fugiat at ipsa porro. Et laudantium iusto dolorem voluptatem vero sunt. Veritatis voluptatem cupiditate perferendis qui recusandae cumque libero eaque."], ["name", "Product #13 - 7652"], ["shipping_category_id", 1], ["slug", "product-13-7652"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.499641"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-13"], ["updated_at", "2014-12-02 23:03:59.501820"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.503791' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.504889' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.506151' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.506776' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.510099"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:59.510099"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.511022' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.511525' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.512626' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.513114' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.516990' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.517824' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.519427' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-13' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:59.522685"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.523992' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.524789' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.525556' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.526480' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.527195' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:59.533147"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.533147"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-7652' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.546690' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:59.552872' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-5080' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-5080' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:59.557642"], ["created_at", "2014-12-02 23:03:59.561411"], ["description", "Neque ut sequi voluptatem error alias officia ut qui. Quod aut tempora odit molestiae. Deserunt et voluptas dolor at rerum et. Nisi beatae excepturi aspernatur quae. Consequatur officiis sit perferendis quasi impedit."], ["name", "Product #14 - 5080"], ["shipping_category_id", 1], ["slug", "product-14-5080"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.561411"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-14"], ["updated_at", "2014-12-02 23:03:59.563554"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.565483' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.566583' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.567839' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.568378' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.571843"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:59.571843"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.572849' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.573392' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.574512' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.575033' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.579129' WHERE "spree_products"."id" = 2 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.580668' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.581975' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-14' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:59.585143"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.586328' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.587043' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.587837' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.588704' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.589426' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:59.594874"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.594874"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-5080' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.600146' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:59.605710' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-3170' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-3170' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:59.611587"], ["created_at", "2014-12-02 23:03:59.615258"], ["description", "Et labore maiores dolores omnis iusto quis. Qui ut molestiae qui quae. Voluptas id architecto eum distinctio repellat ipsa itaque nisi. Ullam molestias sint numquam repellat tempore illo consequatur eveniet. Omnis quis praesentium pariatur id vero et asperiores placeat.\nNumquam accusamus voluptas fugit molestiae. Cum delectus aut quasi hic sed omnis odit. Ipsum tempora aut ducimus veniam ut soluta non et. Culpa expedita veniam suscipit consequatur. Autem et eaque velit illo qui.\nEst quas reiciendis adipisci et ullam qui. Vitae consequuntur repudiandae vel aut culpa. Iure voluptatem labore nostrum excepturi aut. Numquam molestiae qui earum voluptas cum."], ["name", "Product #15 - 3170"], ["shipping_category_id", 1], ["slug", "product-15-3170"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.615258"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-15"], ["updated_at", "2014-12-02 23:03:59.617381"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.619237' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.620308' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.621517' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.622063' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.624943"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:59.624943"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.625809' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.626328' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.627386' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.627910' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.631777' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.632267' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.632791' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-15' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:59.634313"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.634999' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.635445' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.635908' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.636459' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.636897' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:59.641482"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.641482"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-3170' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.647144' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:59.652745' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-9102' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-9102' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:59.657275"], ["created_at", "2014-12-02 23:03:59.661071"], ["description", "Vel inventore dolores eos omnis illo enim. Quia id reprehenderit consequatur soluta enim animi quisquam. Consequatur dolorem non optio qui vel sint. Quo quaerat cupiditate consequatur in dolores totam aut ut."], ["name", "Product #16 - 9102"], ["shipping_category_id", 1], ["slug", "product-16-9102"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.661071"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-16"], ["updated_at", "2014-12-02 23:03:59.663167"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.665041' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.666104' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.667371' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.667919' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.670837"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:59.670837"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.671741' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.672274' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.673352' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.673874' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.677814' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.678332' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.678883' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-16' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:59.680569"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.681268' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.681726' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.682249' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.682843' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.683334' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:59.688099"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.688099"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-9102' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.693962' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:59.699632' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-7144' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-7144' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:03:59.704182"], ["created_at", "2014-12-02 23:03:59.708015"], ["description", "Eum quia voluptatem amet explicabo enim fugit corporis ipsum. Eveniet itaque voluptatem perferendis numquam necessitatibus corporis est nisi. Voluptatem repellendus quaerat quis qui possimus. Porro molestiae occaecati a mollitia."], ["name", "Product #17 - 7144"], ["shipping_category_id", 1], ["slug", "product-17-7144"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.708015"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-17"], ["updated_at", "2014-12-02 23:03:59.710229"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.712224' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.713345' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.714582' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.715124' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.734004"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:03:59.734004"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.735114' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.735719' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.736998' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.737556' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.741579' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.742068' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.742619' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-17' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:03:59.744228"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.744896' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.745359' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.745831' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.746415' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.746876' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:03:59.752027"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:03:59.752027"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-7144' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.758229' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:59.764098' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:03:59.780316"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:03:59.780316"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.783886"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:59.783886"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.784887' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.786067' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.787329' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.787884' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.790414"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:59.790414"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.791258' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.792298' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.793443' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.793925' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.796231"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:59.796231"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.797066' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.798110' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.799949' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.801551' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.806209"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:59.806209"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.807567' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.809289' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.810911' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.811634' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:03:59.814254"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:03:59.814254"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:03:59.815183' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:03:59.816325' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:03:59.817576' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:03:59.818132' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H42780172812%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:59.823665"], ["number", "H42780172812"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:03:59.823665"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.824775' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:03:59.830828' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.847656"], ["description", "Voluptatem et consectetur magnam corporis similique."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:03:59.847656"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.850803"], ["updated_at", "2014-12-02 23:03:59.850803"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:03:59.893728"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:03:59.893728"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:03:59.894751"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:03:59.894751"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.896332"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:59.896332"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:03:59.910439"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:59.910439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.924437"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:59.924437"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:59.925555' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.926181' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.927596"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:59.927596"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:59.928227' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.928676' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.929972"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:59.929972"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:59.930602' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.931030' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.932285"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:59.932285"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:59.932937' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.933386' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.934679"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:03:59.934679"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:03:59.935304' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.935752' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:03:59.944032' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.980364"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:03:59.980364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:03:59.983940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.985606' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:03:59.986183' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.989674"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:03:59.989674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:03:59.991702"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:03:59.991702"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'Q92JUE5K' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:03:59.993357"], ["identifier", "Q92JUE5K"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:03:59.993357"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:03:59.995496' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-534124' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-534124"], ["updated_at", "2014-12-02 23:03:59.996675"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.007665"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:00.007665"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:00.009945' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.028298"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:00.028298"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:04:00.031385"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.033104' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:00.035666' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.037458"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:00.037458"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:00.038244' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:04:00.040734"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.041980' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:00.048554' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.068619"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:00.068619"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:04:00.071751"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.073367' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:00.075527' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:00.076687' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.080384"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:00.080384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'Q92JUE5K' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 23:04:00.083949"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.085163' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.091246"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:00.091246"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 23:04:00.093864' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.129439"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:00.129439"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:04:00.132696"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.134276' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:00.136418' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.138015"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:00.138015"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:00.138837' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.140079"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:00.140079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.149131"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:00.149131"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 23:04:00.150097' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.167406"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:00.167406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:04:00.170700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.172402' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:00.174551' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.176194"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:00.176194"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:04:00.177027' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (52.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'karolann.rice@marvinschimmel.name' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141756144032614xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:00.242734"], ["email", "karolann.rice@marvinschimmel.name"], ["encrypted_password", "12113c26abd712df5e77a45ab05c4d66bed4618e64c92fedba39b4d1a3a84b32686b862f6a093aa52b9b8cee53a7bb29cf465f355ec84d846694b34d64cd81e8"], ["login", "karolann.rice@marvinschimmel.name"], ["password_salt", "sbbw8kc3avgrgJJfo4bL"], ["updated_at", "2014-12-02 23:04:00.242734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:04:00.245986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:00.247260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:00.248655"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:00.248655"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:00.251177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:00.252447"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:04:00.252447"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R398518229' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R398518229%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R398518229' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'P7cuKb5Sn7PpvYZKXaGeOg' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:04:00.258638"], ["currency", "USD"], ["email", "karolann.rice@marvinschimmel.name"], ["guest_token", "P7cuKb5Sn7PpvYZKXaGeOg"], ["number", "R398518229"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:04:00.258638"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:00.266764"], ["name", "ShippingCategory #8"], ["updated_at", "2014-12-02 23:04:00.266764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 857194' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.269521"], ["description", "Praesentium nesciunt harum rem ab neque."], ["name", "TaxCategory - 857194"], ["updated_at", "2014-12-02 23:04:00.269521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:00.273060"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:00.273060"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-4056' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-4056' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:00.265560"], ["created_at", "2014-12-02 23:04:00.277276"], ["description", "Deleniti laudantium et at amet ea. Rem nihil commodi tenetur voluptatem voluptatum animi. Cum ad nesciunt a sit atque.\nMaxime quasi officiis dolorem expedita ratione aliquid suscipit laudantium. Omnis placeat laborum error consectetur natus molestiae. Impedit aut velit et fugit qui ab. Beatae deleniti rerum iure nobis velit ad culpa soluta.\nDignissimos id et quaerat voluptatem ut ut. Dolorum nam sed non dolores consequatur et amet. Magnam enim ullam voluptatum veritatis repellat aliquid iusto nemo."], ["name", "Product #18 - 4056"], ["shipping_category_id", 1], ["slug", "product-18-4056"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:00.277276"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-18"], ["updated_at", "2014-12-02 23:04:00.279626"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.281646' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.282968' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.284428' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.285058' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:00.288217"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:00.288217"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.289224' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.289737' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.290848' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.291359' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.295527' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.296119' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.296748' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-18' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:00.298625"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.299417' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.299987' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.300579' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.301253' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.301730' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:00.307513"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:00.307513"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-4056' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.314508' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:00.320179' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-6158' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-6158' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:00.326506"], ["created_at", "2014-12-02 23:04:00.330296"], ["description", "Repudiandae neque error autem dolorum. Veritatis quos voluptatum blanditiis ea dolore. Quam error deserunt velit voluptas ut laudantium.\nAb vitae non voluptatum velit voluptatem vel. Enim qui ut quo totam consequatur quas. Rerum ut asperiores corrupti occaecati.\nOmnis repellat blanditiis quia maiores velit. Nostrum expedita ut magni qui eum illo quaerat. Iste sit similique unde dolor fugit. Ea dolores porro eos omnis quidem. Libero nihil exercitationem et et asperiores labore officiis.\nLabore porro asperiores quod non. Voluptatem voluptates animi optio unde facere dolores id. Dolor eum blanditiis delectus et occaecati iste rerum. Sequi cumque quia amet vitae odit ut nesciunt. Alias unde possimus sunt sed fugiat provident a consectetur."], ["name", "Product #19 - 6158"], ["shipping_category_id", 1], ["slug", "product-19-6158"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:00.330296"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-19"], ["updated_at", "2014-12-02 23:04:00.332433"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.334421' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.335532' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.336839' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.337414' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:00.340251"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:00.340251"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.341191' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.341697' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.342819' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.343341' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.347327' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.347867' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.348413' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-19' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:00.350041"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.350726' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.351190' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.351675' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.352210' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.352646' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:00.361699"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:00.361699"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-6158' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.368886' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:00.374701' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-6884' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-6884' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:00.382508"], ["created_at", "2014-12-02 23:04:00.386329"], ["description", "Reiciendis accusamus at fuga adipisci consequuntur vitae. Ut sunt deserunt consequatur qui. Aspernatur quod voluptas dolore fugiat et saepe sit. Est corporis pariatur sunt sequi nobis necessitatibus quas cumque.\nAut suscipit consequatur consectetur occaecati sunt dolores sint aspernatur. Officiis veniam sit voluptatem veritatis ex optio. Quo dolores tempora veritatis et odio. Minus maxime quis magni accusantium exercitationem odit impedit quisquam. Saepe facere quibusdam suscipit dolore praesentium.\nMinima et a sit laborum id ad ab. Sit dolorum exercitationem quas dolores. Itaque ut quod iusto veritatis. Aut quasi occaecati adipisci ipsa. Est sit voluptates eligendi provident.\nPerspiciatis at est rerum ullam fuga quae aliquid soluta. Quisquam sit sit sit ad. Explicabo sit eius odio omnis provident esse. Aut nesciunt atque doloremque odit et impedit. Eos itaque laboriosam aperiam rerum.\nDolore est facilis natus ut quia vitae. Enim molestiae incidunt ea architecto quam. Officia cum totam et ducimus omnis dolore dolorem. Quia debitis dolores dolor ut est minus necessitatibus. Natus laborum iste est quo quidem qui ex magnam."], ["name", "Product #20 - 6884"], ["shipping_category_id", 1], ["slug", "product-20-6884"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:00.386329"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-20"], ["updated_at", "2014-12-02 23:04:00.388691"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.390602' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.391701' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.392912' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.393470' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:00.396563"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:00.396563"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.397547' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.398104' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.399304' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.399847' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.404064' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.404577' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.405103' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-20' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:00.406666"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.407308' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.407763' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.408247' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.408798' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.409257' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:00.414934"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:00.414934"], ["variant_id", 3]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-6884' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.424924' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:00.432589' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-9745' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-9745' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:00.438698"], ["created_at", "2014-12-02 23:04:00.442614"], ["description", "Sed cumque libero aut error. Magnam pariatur ipsam facere sit. Labore doloribus aperiam velit et fuga.\nError sint maiores in dolores fugit. Nam et ea ullam quia mollitia. Repellat soluta nihil ad est. Molestias et voluptates veniam sunt qui voluptatem minus.\nQui sit rerum inventore et quam eveniet. A architecto dolorum est explicabo totam sed. Voluptas qui molestias totam modi non quidem.\nLibero voluptatem fugit placeat optio. A perferendis similique facilis est cumque. Excepturi incidunt saepe ea molestiae nesciunt nostrum et. Qui cumque aperiam quae esse enim voluptatem qui."], ["name", "Product #21 - 9745"], ["shipping_category_id", 1], ["slug", "product-21-9745"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:00.442614"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-21"], ["updated_at", "2014-12-02 23:04:00.444695"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.446550' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.447589' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.448843' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.449403' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:00.452331"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:00.452331"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.453227' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.453721' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.454833' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.455318' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.459172' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.459697' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.460285' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-21' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:00.461816"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.462486' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.462933' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.463421' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.463983' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.464460' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:00.470156"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:00.470156"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-9745' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.480206' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:00.486475' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-9521' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-9521' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:00.491384"], ["created_at", "2014-12-02 23:04:00.495077"], ["description", "Ut vitae iure quo distinctio dolorum sed. Quo natus voluptatem porro sint mollitia velit exercitationem. Nihil quia suscipit accusamus vel qui et eos. Facilis vero perspiciatis et necessitatibus.\nExpedita consequatur aut quae in ut. Suscipit quibusdam facilis molestias quo. Et sunt iusto corporis nihil nostrum sint."], ["name", "Product #22 - 9521"], ["shipping_category_id", 1], ["slug", "product-22-9521"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:00.495077"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-22"], ["updated_at", "2014-12-02 23:04:00.497102"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.498974' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.500138' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.501392' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.501948' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:00.504802"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:00.504802"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.505666' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.506164' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.507271' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.507750' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.511581' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.512097' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.512609' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-22' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:00.514134"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.514781' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.515244' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.515712' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.516244' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.516686' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:00.521243"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:00.521243"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-9521' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.531243' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:00.538035' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:00.542897"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:00.542897"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:00.546391"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:00.546391"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.547336' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.548481' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.549706' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.550242' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:00.552926"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:00.552926"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.553870' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.554965' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.556300' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.556845' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:00.559452"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:00.559452"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.560307' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.561425' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.562824' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.563395' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:00.566132"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:00.566132"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.567040' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.568235' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.569539' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.570186' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:00.572795"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:00.572795"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:00.573692' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:00.574754' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:00.576093' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:00.576652' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H45824640468%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:00.579574"], ["number", "H45824640468"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:04:00.579574"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.580498' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:00.583539' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.587283"], ["description", "Dolorem qui saepe voluptatem a voluptatum animi et et."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:04:00.587283"]] Spree::ZoneMember Exists (12.2ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.601137"], ["updated_at", "2014-12-02 23:04:00.601137"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:00.610511"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:04:00.610511"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:04:00.611283"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:04:00.611283"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.612708"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:00.612708"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:00.615574"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:00.615574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.619213"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:00.619213"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:00.619975' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.620561' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.621937"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:00.621937"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:00.622564' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.623015' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.624292"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:00.624292"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:00.624958' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.625428' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.626724"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:00.626724"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:00.627370' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.627785' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.629098"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:00.629098"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:00.629700' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.630149' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:00.638268' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.656700"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:00.656700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:04:00.660124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.661682' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:04:00.662326' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.666128"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:04:00.666128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.668268"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:04:00.668268"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'ZUL8VAS3' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:04:00.670154"], ["identifier", "ZUL8VAS3"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:04:00.670154"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.672528' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-503311' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-503311"], ["updated_at", "2014-12-02 23:04:00.674020"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.677243"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:00.677243"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:00.678963' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.696215"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:00.696215"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:04:00.699253"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.700759' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:00.702976' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.704597"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:00.704597"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:00.705382' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:04:00.707796"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.708971' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:00.715375' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.734354"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:00.734354"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:04:00.737386"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.738935' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:00.741106' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:00.742268' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.743654"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:00.743654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'ZUL8VAS3' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "failed"], ["updated_at", "2014-12-02 23:04:00.747020"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.748221' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.753514"], ["name", "payment"], ["next_state", "failed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:00.753514"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:00.755990' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.775108"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:00.775108"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:04:00.778210"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.779924' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:00.782289' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'failed', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:00.783549' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.785071"], ["name", "payment"], ["next_state", "failed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:00.785071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:00.793912' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:00.810828"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:00.810828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:04:00.814073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:00.815824' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:00.818054' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'failed', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:04:00.819070' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (171.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'norris.lindgren@krajcik.us' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141756144153815xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:01.004062"], ["email", "norris.lindgren@krajcik.us"], ["encrypted_password", "b54209f4953d2f07c5c16156a37801f040f01584bdddd5028cdf55853d50dfe88771357389b1806abc210291fb13179b874910ba02505c306deb2e8b61cffc06"], ["login", "norris.lindgren@krajcik.us"], ["password_salt", "EfyBA2jQieezKqurHT6p"], ["updated_at", "2014-12-02 23:04:01.004062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:04:01.007280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:01.008529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:01.009975"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:01.009975"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:01.012542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:01.013851"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:04:01.013851"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R724403973' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R724403973%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R724403973' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ugEAbPhIkNahhkxg6gGGnA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:04:01.020084"], ["currency", "USD"], ["email", "norris.lindgren@krajcik.us"], ["guest_token", "ugEAbPhIkNahhkxg6gGGnA"], ["number", "R724403973"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:04:01.020084"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:01.027915"], ["name", "ShippingCategory #9"], ["updated_at", "2014-12-02 23:04:01.027915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 60875' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.030568"], ["description", "Quia consequatur voluptatem odit sit."], ["name", "TaxCategory - 60875"], ["updated_at", "2014-12-02 23:04:01.030568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:01.033907"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:01.033907"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-8754' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-8754' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:01.026798"], ["created_at", "2014-12-02 23:04:01.038146"], ["description", "Minus optio doloribus aut voluptatem quam enim. Neque nam hic aut sed itaque laboriosam quae. Et ut eum debitis et assumenda vel nesciunt ut. Sapiente placeat dicta ea dolores velit dolor blanditiis molestiae.\nIste expedita enim ipsum inventore dolorem laboriosam. Enim dignissimos pariatur rem et magnam labore ut omnis. Itaque molestiae qui incidunt temporibus fuga at adipisci."], ["name", "Product #23 - 8754"], ["shipping_category_id", 1], ["slug", "product-23-8754"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.038146"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-23"], ["updated_at", "2014-12-02 23:04:01.040503"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.042510' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.043603' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.044893' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.045444' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.048374"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:01.048374"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.049376' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.049863' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.050954' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.051433' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.055450' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.055969' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.056479' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-23' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:01.058015"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.058677' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.059185' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.059691' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.060262' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.060731' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:01.065463"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.065463"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-8754' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.072337' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:01.077991' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-1696' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-1696' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:01.083616"], ["created_at", "2014-12-02 23:04:01.087550"], ["description", "Necessitatibus hic consectetur eum praesentium neque. Est debitis magnam quaerat repellendus dolores ut quia suscipit. Magnam eum ipsam ipsum voluptas dolorem dolore ullam necessitatibus.\nNulla hic quis magni at voluptas autem eos id. Adipisci omnis consequuntur nihil culpa autem. Temporibus recusandae vitae consectetur sed sit mollitia aliquid reprehenderit. Architecto in necessitatibus dolor recusandae adipisci dignissimos. Velit aliquam ut non illum id libero eaque.\nExplicabo commodi ea et officia esse. Fugit enim reiciendis ea maiores minus libero molestiae. Eaque qui blanditiis voluptatibus ipsum aut tempora."], ["name", "Product #24 - 1696"], ["shipping_category_id", 1], ["slug", "product-24-1696"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.087550"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-24"], ["updated_at", "2014-12-02 23:04:01.089711"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.091710' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.092823' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.094076' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.094641' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.097717"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:01.097717"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.098742' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.099284' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.100504' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.101044' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.105044' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.105568' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.106123' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-24' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:01.107733"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.108395' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.108880' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.109392' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.109950' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.110420' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:01.115130"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.115130"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-1696' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.121053' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:01.126824' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-2397' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-2397' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:01.131516"], ["created_at", "2014-12-02 23:04:01.135441"], ["description", "Voluptate dolor quae ipsam non. Praesentium nesciunt commodi molestiae veniam fugiat ut. Facere nostrum porro quae delectus dolores odit. Autem odit ea velit ut pariatur harum et est. Ab delectus optio dolores impedit et perferendis laborum."], ["name", "Product #25 - 2397"], ["shipping_category_id", 1], ["slug", "product-25-2397"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.135441"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-25"], ["updated_at", "2014-12-02 23:04:01.137645"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.139561' WHERE "spree_variants"."id" = 3 Spree::Product Load (13.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.153984' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.155648' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.156304' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.159274"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:01.159274"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.160210' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.160725' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.161825' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.162353' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.166261' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.166796' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.167326' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-25' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:01.168913"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.169551' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.170008' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.170530' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.171089' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.171568' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:01.176418"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.176418"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-2397' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.182122' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:01.187708' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-2925' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-2925' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:01.192751"], ["created_at", "2014-12-02 23:04:01.196424"], ["description", "Nihil repudiandae reiciendis omnis accusamus cupiditate ut. Veritatis aliquid quibusdam temporibus ab magni harum maxime et. Corrupti sed in nam deleniti et autem dolores quod.\nAtque et qui nesciunt ut molestias. Ad deserunt sunt est autem error. Est maiores aut sit sed esse est. Aliquid quaerat sunt soluta quibusdam. Soluta fugit sed voluptatum ad assumenda."], ["name", "Product #26 - 2925"], ["shipping_category_id", 1], ["slug", "product-26-2925"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.196424"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-26"], ["updated_at", "2014-12-02 23:04:01.198485"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.200306' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.201351' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.202570' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.203101' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.205925"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:01.205925"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.206864' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.207362' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.208421' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.208919' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.212762' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.213256' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.213766' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-26' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:01.215389"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.216011' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.216491' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.216956' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.217518' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.217969' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:01.222943"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.222943"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-2925' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.228595' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:01.234196' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-4857' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-4857' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:01.240039"], ["created_at", "2014-12-02 23:04:01.244076"], ["description", "Eveniet harum quaerat similique ipsum asperiores minus commodi. Commodi neque illo sed est maiores est quia eos. Numquam rem impedit et non. Qui repellat et ut nihil a necessitatibus velit omnis. Commodi aspernatur ratione exercitationem et impedit.\nRecusandae et assumenda necessitatibus ducimus est et ut quia. Eos facere sint ut ad. Animi numquam eius quod rerum. Quisquam itaque vero modi nihil voluptatem cupiditate dolores nobis. Quas dignissimos dolor temporibus nesciunt perferendis.\nEarum blanditiis nihil est et minima at explicabo. Exercitationem est reprehenderit est facilis enim temporibus esse. Molestiae est sed accusantium ea ullam deleniti dolor. Fugit consequuntur et tempora est laboriosam."], ["name", "Product #27 - 4857"], ["shipping_category_id", 1], ["slug", "product-27-4857"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.244076"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-27"], ["updated_at", "2014-12-02 23:04:01.246219"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.248089' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.249144' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.250548' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.251180' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.254532"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:01.254532"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.255595' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.256209' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.257486' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.258034' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.262190' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.262762' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.263264' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-27' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:01.264866"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.265480' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.265922' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.266457' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.266987' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.267439' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:01.272174"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.272174"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-4857' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.277941' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:01.283663' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:01.288561"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:01.288561"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.292139"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:01.292139"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.293079' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.294190' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.295434' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.295979' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.298462"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:01.298462"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.299292' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.300365' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.301501' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.301982' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.304374"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:01.304374"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.305192' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.306237' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.307371' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.307947' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.310526"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:01.310526"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.311456' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.312649' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.313868' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.314360' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.316802"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:01.316802"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.317633' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.318661' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.320766' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.322214' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H74118824388%') SQL (0.3ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:01.327150"], ["number", "H74118824388"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:04:01.327150"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.328606' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:01.332832' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.336891"], ["description", "Consequuntur quidem non voluptatibus aspernatur dolores aperiam dolor sint."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:04:01.336891"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.338466"], ["updated_at", "2014-12-02 23:04:01.338466"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.4ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:01.347231"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:04:01.347231"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:04:01.349057"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:04:01.349057"]] SQL (0.2ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.352062"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:01.352062"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:01.357072"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:01.357072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.362546"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:01.362546"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:01.363470' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.364184' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.365735"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:01.365735"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:01.366433' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.366908' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.368211"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:01.368211"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:01.368886' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.369353' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.370640"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:01.370640"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:01.371298' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.371737' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.373091"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:01.373091"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:01.373746' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.374223' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:01.382704' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.402240"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:01.402240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:04:01.405603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.407178' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:04:01.407791' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.411355"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:04:01.411355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.413406"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:04:01.413406"], ["year", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'FEUQRSJY' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:04:01.415172"], ["identifier", "FEUQRSJY"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:04:01.415172"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.417380' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-502304' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-502304"], ["updated_at", "2014-12-02 23:04:01.418555"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.421467"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:01.421467"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:01.423169' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.440274"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:01.440274"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:04:01.443385"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.444845' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:01.447131' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.448787"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:01.448787"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:01.449578' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:04:01.451945"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.453130' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:01.459652' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.479211"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:01.479211"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:04:01.482411"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.484000' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:01.486231' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:01.487390' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.488822"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:01.488822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'FEUQRSJY' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "void"], ["updated_at", "2014-12-02 23:04:01.492415"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.493716' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:01.500389' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.532588"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:01.532588"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:04:01.535706"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.537297' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:01.539570' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:01.540712' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.542088"], ["name", "payment"], ["next_state", "void"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:01.542088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:01.550905' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.567817"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:01.567817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:04:01.571166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.572979' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:01.575424' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:04:01.576563' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (4.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.3ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kendall_kulas@stantonbartell.ca' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141756144116916xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:01.595054"], ["email", "kendall_kulas@stantonbartell.ca"], ["encrypted_password", "b4b196a488778a1c4c66fee4cde1d377859a0e7e12aa7ce104a5776521f007c62775ff09e1fd70ef881c948d8383c1f322d9fe165b0f295b1ec8ace2ef53d0cf"], ["login", "kendall_kulas@stantonbartell.ca"], ["password_salt", "uxykmof2BxpXXSmfE2Cs"], ["updated_at", "2014-12-02 23:04:01.595054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:04:01.598342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:01.599629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:01.601051"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:01.601051"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:01.603584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:01.604845"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:04:01.604845"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R101110124' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R101110124%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R101110124' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'mmWPPDsCv1-33DGZE7MJbQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:04:01.611018"], ["currency", "USD"], ["email", "kendall_kulas@stantonbartell.ca"], ["guest_token", "mmWPPDsCv1-33DGZE7MJbQ"], ["number", "R101110124"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:04:01.611018"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:01.618925"], ["name", "ShippingCategory #10"], ["updated_at", "2014-12-02 23:04:01.618925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 69705' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.621507"], ["description", "Voluptas rem voluptatem praesentium ut."], ["name", "TaxCategory - 69705"], ["updated_at", "2014-12-02 23:04:01.621507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:01.624724"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:01.624724"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-4631' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-4631' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:01.617873"], ["created_at", "2014-12-02 23:04:01.628845"], ["description", "Et mollitia officiis et at velit accusantium. Dolorem expedita rerum voluptatem maxime dolores eligendi eveniet ut. At aut perferendis id odio est est ratione.\nOdio beatae nam modi corrupti. Qui corporis ipsa voluptatem inventore deserunt exercitationem nisi ex. Fuga earum est voluptatum quaerat voluptate dignissimos consequatur. Possimus nesciunt ex quam saepe esse tempora quisquam.\nDolorem illum ut officiis mollitia fugiat. Labore aut et id quia. Ut ex qui voluptates temporibus labore. Quae et omnis aut fuga. Aperiam molestiae quis enim ab eum."], ["name", "Product #28 - 4631"], ["shipping_category_id", 1], ["slug", "product-28-4631"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.628845"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-28"], ["updated_at", "2014-12-02 23:04:01.631160"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.633173' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.634268' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.635509' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.636069' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.638931"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:01.638931"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.639827' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.640353' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.641579' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.642084' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.646230' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.646819' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.647342' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-28' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:01.648924"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.649576' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.650066' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.650525' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.651061' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.651506' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:01.656115"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.656115"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-4631' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.661894' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:01.667309' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-8876' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-8876' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:01.672857"], ["created_at", "2014-12-02 23:04:01.676988"], ["description", "Est maiores aut autem soluta laudantium. Doloremque dignissimos vitae numquam saepe. Id sequi tempora et ab. Dolor fugit placeat nihil molestias qui rerum est facilis.\nVoluptas impedit dicta velit eligendi veniam. Dolores quia et est autem ullam ut aut quae. Et earum ut vel quaerat consequatur a.\nSed doloribus aspernatur debitis laudantium iste soluta at mollitia. Doloremque eius ipsa consequatur ut non nulla possimus quia. Pariatur nobis quo dolorum molestias non error. Facere ut veritatis aut at vel. A suscipit quidem ipsam quibusdam."], ["name", "Product #29 - 8876"], ["shipping_category_id", 1], ["slug", "product-29-8876"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.676988"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-29"], ["updated_at", "2014-12-02 23:04:01.679069"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.681000' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.682118' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.683823' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.684369' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.687227"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:01.687227"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.688208' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.688717' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.690232' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.690725' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.695033' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.695551' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.696082' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-29' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:01.697936"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.698603' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.699042' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.699547' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.700120' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.700565' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:01.705723"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.705723"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-8876' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.711434' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:01.716929' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-3368' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-3368' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:01.723081"], ["created_at", "2014-12-02 23:04:01.727070"], ["description", "Dicta sunt labore ex ipsa quae temporibus. Molestiae quo illo cumque ullam sequi et. Repellendus est quo suscipit commodi eveniet. Voluptas aperiam ipsum porro quia ut. Molestias aliquam alias nostrum quidem ut tempore quod.\nTempora maxime quas aut quae voluptatem cum repellat velit. Ab et quam nisi consequatur ut ea. Esse repellat reprehenderit rerum voluptatibus nulla et ducimus autem. Qui modi qui dolore voluptatem itaque quis ipsam impedit. Ad quidem consequatur vitae autem libero rerum aspernatur.\nPlaceat nemo et maiores voluptatem deserunt expedita eaque. Ut qui consequatur eum velit maxime consequuntur voluptatem. Mollitia adipisci eum sapiente inventore ducimus nisi. Et atque dolores eum qui quis amet nisi cum."], ["name", "Product #30 - 3368"], ["shipping_category_id", 1], ["slug", "product-30-3368"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.727070"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-30"], ["updated_at", "2014-12-02 23:04:01.730112"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.731965' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.733045' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.734290' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.734819' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.737676"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:01.737676"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.738595' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.739065' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.740161' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.740638' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.745034' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.745597' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.746204' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-30' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:01.747783"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.748404' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.748853' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.749360' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.749908' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.750351' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:01.754902"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.754902"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-3368' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.760751' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:01.766244' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-31-5561' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-31-5561' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:01.770637"], ["created_at", "2014-12-02 23:04:01.774278"], ["description", "Dignissimos et cum nihil sed reprehenderit et et sequi. Quia sint quia quo aut nemo voluptatum asperiores molestiae. Praesentium sunt dolores non id et perspiciatis minima quas. Porro deserunt qui inventore doloremque velit et."], ["name", "Product #31 - 5561"], ["shipping_category_id", 1], ["slug", "product-31-5561"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.774278"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-31' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-31"], ["updated_at", "2014-12-02 23:04:01.776404"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.778259' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.779332' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.780562' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.781111' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.783978"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:01.783978"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.784864' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.785366' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.786442' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.786955' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.790775' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.791300' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.791809' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-31' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:01.793418"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.794114' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.794604' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.795110' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.795645' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.796133' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:01.801164"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.801164"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-31-5561' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.806871' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:01.812461' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-32-6885' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-32-6885' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:01.817735"], ["created_at", "2014-12-02 23:04:01.821317"], ["description", "Quibusdam distinctio et omnis et autem. Adipisci suscipit consequatur ut cumque mollitia esse eum. Atque exercitationem totam provident occaecati. Modi et quam at unde aut. Assumenda nesciunt omnis adipisci temporibus.\nUllam illum labore numquam enim rerum atque sapiente quo. Perspiciatis est ut itaque in. Atque doloribus aut error autem ratione. Explicabo ut voluptates fuga repudiandae quod tempora laboriosam. Nesciunt eum magni consectetur voluptatem."], ["name", "Product #32 - 6885"], ["shipping_category_id", 1], ["slug", "product-32-6885"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.821317"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-32' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-32"], ["updated_at", "2014-12-02 23:04:01.823431"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.825272' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.826316' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.827546' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.828106' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.830921"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:01.830921"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.831874' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.832368' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.833474' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.834007' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.837936' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.838450' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.838960' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-32' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:01.840609"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.841285' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.841768' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.842288' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.842883' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.843359' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:01.848029"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:01.848029"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-32-6885' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.853879' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:01.859518' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:01.864401"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:01.864401"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.867944"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:01.867944"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.868839' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.869989' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.871330' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.871904' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.874565"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:01.874565"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.875475' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.876535' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.877709' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.878231' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.880663"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:01.880663"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.881517' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.882578' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.939346' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.939999' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.942836"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:01.942836"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.943824' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.944946' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.946136' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.946672' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:01.949115"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:01.949115"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:01.949980' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:01.951008' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:01.952314' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:01.952871' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H54513200047%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:01.955713"], ["number", "H54513200047"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:04:01.955713"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.956697' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:01.959743' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.963459"], ["description", "Esse quaerat porro numquam omnis consectetur quis minima."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:04:01.963459"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.964993"], ["updated_at", "2014-12-02 23:04:01.964993"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:01.973898"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:04:01.973898"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:04:01.974668"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:04:01.974668"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.976011"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:01.976011"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:01.978993"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:01.978993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.983057"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:01.983057"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:01.983858' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.984435' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.985792"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:01.985792"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:01.986459' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.986876' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.988162"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:01.988162"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:01.988810' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.989222' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.990497"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:01.990497"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:01.991163' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.991641' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:01.993056"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:01.993056"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:01.993806' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:01.994345' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:02.002876' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:02.022288"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:02.022288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:04:02.025657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:02.027223' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:04:02.027858' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:02.031344"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:04:02.031344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:02.033331"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:04:02.033331"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'HEXLNWX4' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:04:02.035040"], ["identifier", "HEXLNWX4"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:04:02.035040"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:02.037253' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-254322' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-254322"], ["updated_at", "2014-12-02 23:04:02.038492"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:02.041447"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:02.041447"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:02.043145' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:02.060083"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:02.060083"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:04:02.063261"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:02.064764' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:02.066964' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:02.068599"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:02.068599"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:02.069373' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:04:02.071688"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:02.072970' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:02.079752' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:02.099421"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:02.099421"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:04:02.102556"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:02.104164' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:02.106759' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:02.107986' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:02.109425"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:02.109425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'HEXLNWX4' ORDER BY spree_payments.created_at LIMIT 1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:02.122496' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:02.141860"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:02.141860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:04:02.145163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:02.147031' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:02.149653' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:04:02.150814' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (170.5ms) rollback transaction  (0.1ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"payment"} Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "mercado_pago_notifications" ("created_at", "operation_id", "topic", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:14.469591"], ["operation_id", "op123"], ["topic", "payment"], ["updated_at", "2014-12-02 23:04:14.469591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 31ms (Views: 6.8ms | ActiveRecord: 1.0ms) MercadoPago::Notification Load (0.2ms) SELECT "mercado_pago_notifications".* FROM "mercado_pago_notifications" ORDER BY "mercado_pago_notifications"."created_at" DESC LIMIT 1  (35.8ms) rollback transaction  (0.2ms) begin transaction Processing by Spree::MercadoPagoController#ipn as HTML Parameters: {"id"=>"op123", "topic"=>"nonexistent_topic"} Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 400 Bad Request in 6ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brandon_bechtelar@heaney.com' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614546121xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:14.578834"], ["email", "brandon_bechtelar@heaney.com"], ["encrypted_password", "03611dd5ac528e5952eec5ee48b3de5104114a279829ed32b69e43492662718c5d86d5a7fd1e40471db9db9074d1bb191185d69e245c0e44f46fcea1809908ab"], ["login", "brandon_bechtelar@heaney.com"], ["password_salt", "qBTT8pLqdikVXeRKEpQo"], ["updated_at", "2014-12-02 23:04:14.578834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:04:14.611688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:14.617982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:14.626243"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:14.626243"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R438914255' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R438914255%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R438914255' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'p7pXZVd0eUKqBtaNuMmmNA' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:04:14.669411"], ["currency", "USD"], ["email", "brandon_bechtelar@heaney.com"], ["guest_token", "p7pXZVd0eUKqBtaNuMmmNA"], ["number", "R438914255"], ["state", "cart"], ["updated_at", "2014-12-02 23:04:14.669411"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:14.723558"], ["name", "ShippingCategory #1"], ["updated_at", "2014-12-02 23:04:14.723558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 511376' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:14.733533"], ["description", "Consequatur qui voluptas aliquid inventore quia aut."], ["name", "TaxCategory - 511376"], ["updated_at", "2014-12-02 23:04:14.733533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:14.757743"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:14.757743"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-8362' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-8362' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:14.719528"], ["created_at", "2014-12-02 23:04:14.763274"], ["description", "Laudantium autem aut et nam et dolores. Mollitia a libero consequatur officiis iusto velit. Laborum sunt ut est consectetur.\nDolorum architecto labore numquam nemo optio modi vel. Ad soluta et et excepturi voluptatem nulla. Voluptatum ipsam enim doloribus ea ipsa. Non culpa sunt ut magni omnis velit. Et qui ipsum ut odio illum repellendus.\nEarum et alias maiores ratione eos dolor officiis. Veritatis minima et aut temporibus quae deserunt libero quas. Et sequi officiis rerum omnis. Modi et voluptatibus consequuntur iure.\nIpsum sit vitae adipisci nemo libero nulla. Autem quo earum numquam molestiae exercitationem magnam. Perferendis et rem laborum nisi optio ut dolorem. Dolorem consequatur quia atque iure. Distinctio quas qui assumenda ut accusantium dignissimos.\nOdio non non laborum numquam voluptate magnam et fuga. Eos nesciunt quia est consectetur voluptatem. Aliquam totam mollitia minus est suscipit."], ["name", "Product #1 - 8362"], ["shipping_category_id", 1], ["slug", "product-1-8362"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:14.763274"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 23:04:14.766117"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:14.773888' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:14.775316' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:14.790213' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:14.791645' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:14.872076"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:14.872076"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:14.873402' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:14.874021' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:14.875292' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:14.875858' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:14.886438' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:14.887105' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:14.887681' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-1' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:14.889430"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:14.890659' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:14.891179' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:14.892035' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:14.892615' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:14.893059' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:14.914611"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:14.914611"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-8362' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:14.922937' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:14.931345' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-2763' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-2763' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:14.935978"], ["created_at", "2014-12-02 23:04:14.939795"], ["description", "Laboriosam quia sequi debitis atque natus. A quasi neque dolores vero fuga sint. Assumenda et sapiente qui aliquid. Maiores ea possimus non culpa beatae. Excepturi vero et exercitationem qui."], ["name", "Product #2 - 2763"], ["shipping_category_id", 1], ["slug", "product-2-2763"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:14.939795"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-12-02 23:04:14.941887"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:14.943837' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:14.945000' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:14.946207' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:14.946776' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:14.951743"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:14.951743"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:14.953153' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:14.953890' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:14.955230' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:14.955812' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:14.960192' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:14.960853' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:14.961584' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-2' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:14.963380"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:14.964136' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:14.964594' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:14.965064' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:14.965601' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:14.966087' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:14.970758"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:14.970758"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-2763' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:14.975256' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:14.979964' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 23:04:14.997716' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.020156"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:04:15.020156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.032769"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:04:15.032769"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'deonte_wiegand@boyle.co.uk' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417561455392xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:15.037425"], ["email", "deonte_wiegand@boyle.co.uk"], ["encrypted_password", "aecbda4804aee1f58087decc4dedc3618629280bff18e2ed8ca8f5f96d692c3f9d2e20ae4b29fee7eac7cb63e48f53a5bc1925f6d5a54822a43a62735fc029a1"], ["login", "deonte_wiegand@boyle.co.uk"], ["password_salt", "dAmfLZgz9MdPaY-zaxsk"], ["updated_at", "2014-12-02 23:04:15.037425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:15.040110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.041513"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:04:15.041513"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R816170258' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R816170258%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R816170258' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'SNpZMAe5RDgVSgAVz3mmXQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 23:04:15.046972"], ["currency", "USD"], ["email", "deonte_wiegand@boyle.co.uk"], ["guest_token", "SNpZMAe5RDgVSgAVz3mmXQ"], ["number", "R816170258"], ["state", "cart"], ["updated_at", "2014-12-02 23:04:15.046972"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'UH8KE7AD' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 23:04:15.059256"], ["identifier", "UH8KE7AD"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:04:15.059256"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.062307' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-423522' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-423522"], ["updated_at", "2014-12-02 23:04:15.063708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (5.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'olaf@cruickshank.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614559193xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:15.085992"], ["email", "olaf@cruickshank.us"], ["encrypted_password", "9df646169599d09c25e49943cc4546a3d3a2cb6f01f5b3dc312729d4592b6db9b2892ed3db22b0bf06403ae1626ee2cc869c2f4478babec2f2da706a9069c82c"], ["login", "olaf@cruickshank.us"], ["password_salt", "5TV_Q9b6xQxK2jXwb5He"], ["updated_at", "2014-12-02 23:04:15.085992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:04:15.090043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:15.091283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.092756"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:15.092756"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R111668987' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R111668987%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R111668987' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Ud8g7ARpnRCzPCS0G49ZHQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:04:15.098182"], ["currency", "USD"], ["email", "olaf@cruickshank.us"], ["guest_token", "Ud8g7ARpnRCzPCS0G49ZHQ"], ["number", "R111668987"], ["state", "cart"], ["updated_at", "2014-12-02 23:04:15.098182"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:15.105429"], ["name", "ShippingCategory #2"], ["updated_at", "2014-12-02 23:04:15.105429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 978417' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.108122"], ["description", "Ut alias delectus et aut voluptatem omnis laboriosam."], ["name", "TaxCategory - 978417"], ["updated_at", "2014-12-02 23:04:15.108122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.111587"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:15.111587"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-6125' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-6125' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:15.104313"], ["created_at", "2014-12-02 23:04:15.115590"], ["description", "Non delectus et nulla sunt nostrum nemo aut sit. Totam blanditiis voluptate dolores soluta ut ut quia. Aliquam quaerat dolorem omnis animi in itaque commodi nihil. Quia deleniti eligendi nisi voluptate optio fugit neque. Magnam excepturi ratione ex ut voluptate optio autem dolorem."], ["name", "Product #3 - 6125"], ["shipping_category_id", 1], ["slug", "product-3-6125"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.115590"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-12-02 23:04:15.118138"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.120383' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.121755' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.123328' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.123975' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:15.127662"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:15.127662"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.128641' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.129229' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.130336' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.130889' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.134951' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.135455' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.136070' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-3' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:15.137880"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.138630' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.139135' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.139655' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.140253' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.140684' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:15.145504"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.145504"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-6125' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.149919' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:15.155125' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-6754' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-6754' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:15.161233"], ["created_at", "2014-12-02 23:04:15.164948"], ["description", "Earum rerum dolor quidem praesentium molestiae ipsa quia. Et consequatur assumenda qui quo quos. Animi dolor est voluptatibus odio. Et nemo fuga rem voluptatem aspernatur ut dolorem et.\nVitae eligendi modi aut voluptatem. Fuga rem quo laudantium impedit repellat nobis quis consequatur. Ut aut dolor sit enim.\nArchitecto similique placeat quas et sed ut. Nam exercitationem provident aliquid ducimus dolores veritatis consectetur. Voluptates eos id nesciunt velit.\nEst aut eum voluptas quibusdam laudantium nihil provident. Vero consequatur nesciunt mollitia occaecati. Non molestias quidem mollitia aut fugiat excepturi. Velit consequatur enim rerum ex fugit. Laboriosam excepturi sed dicta consectetur tempore dolor cumque."], ["name", "Product #4 - 6754"], ["shipping_category_id", 1], ["slug", "product-4-6754"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.164948"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-12-02 23:04:15.167122"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.169093' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.170197' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.171403' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.171972' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:15.175388"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:15.175388"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.176316' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.176850' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.177911' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.178448' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.182371' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.182905' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.183549' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-4' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:15.185405"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.186185' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.186717' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.187249' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.187897' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.188379' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:15.193072"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.193072"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-6754' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.197128' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:15.201658' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 23:04:15.210358' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.214417"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:04:15.214417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.216517"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:04:15.216517"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shirley@heidenreich.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx1417561455914xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:15.219536"], ["email", "shirley@heidenreich.com"], ["encrypted_password", "cb8ad7ed881ac2c053c1da03df9632f740ee6533b6da708d3f4f9049538bac77cf3021624cb9121014119389908b339c95ef7f8ec7815d8e4a2ed5c1aa5af40a"], ["login", "shirley@heidenreich.com"], ["password_salt", "USV69MD6H1x3ZwHYzV2L"], ["updated_at", "2014-12-02 23:04:15.219536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:15.222240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.223638"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:04:15.223638"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R494689817' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R494689817%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R494689817' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'lud_HAdzCFd12pYrgdFOyA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 23:04:15.228955"], ["currency", "USD"], ["email", "shirley@heidenreich.com"], ["guest_token", "lud_HAdzCFd12pYrgdFOyA"], ["number", "R494689817"], ["state", "cart"], ["updated_at", "2014-12-02 23:04:15.228955"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '63Z9EF77' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 23:04:15.231417"], ["identifier", "63Z9EF77"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:04:15.231417"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.233641' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-424235' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-424235"], ["updated_at", "2014-12-02 23:04:15.234843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hyman@williamson.ca' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614552145xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:15.252404"], ["email", "hyman@williamson.ca"], ["encrypted_password", "10a838a5a52cd3cafc9cdcb1e363881f05120f8e33ca952bab26d7056b470f0dc7d7ca63613e3cf3e2d30d281fbe67a892d602ccdf1cb0a96906f8f272f39ac0"], ["login", "hyman@williamson.ca"], ["password_salt", "Ks7_YHxpYAD-suCqk5VU"], ["updated_at", "2014-12-02 23:04:15.252404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:04:15.256763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:15.258020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.259489"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:15.259489"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R961021517' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R961021517%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R961021517' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Tx0LmkgX82IZz4zaF0nLBw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:04:15.265219"], ["currency", "USD"], ["email", "hyman@williamson.ca"], ["guest_token", "Tx0LmkgX82IZz4zaF0nLBw"], ["number", "R961021517"], ["state", "cart"], ["updated_at", "2014-12-02 23:04:15.265219"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:15.272067"], ["name", "ShippingCategory #3"], ["updated_at", "2014-12-02 23:04:15.272067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 686294' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.274816"], ["description", "Est earum deleniti est voluptas repudiandae optio mollitia eum."], ["name", "TaxCategory - 686294"], ["updated_at", "2014-12-02 23:04:15.274816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.278280"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:15.278280"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-872' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-872' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:15.270990"], ["created_at", "2014-12-02 23:04:15.281959"], ["description", "Fuga expedita repellendus ipsum corrupti molestiae odit aliquid. Sed libero temporibus nesciunt quas odit. Nulla minus error veritatis placeat earum alias sed rerum."], ["name", "Product #5 - 872"], ["shipping_category_id", 1], ["slug", "product-5-872"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.281959"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-12-02 23:04:15.284474"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.286568' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.287734' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.289133' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.289917' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:15.293815"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:15.293815"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.294860' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.295419' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.296652' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.297173' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.301333' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.302064' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.302689' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-5' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:15.304488"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.305256' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.305800' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.306374' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.306996' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.307473' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:15.312310"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.312310"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-872' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.331953' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:15.337255' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-7604' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-7604' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:15.341540"], ["created_at", "2014-12-02 23:04:15.345668"], ["description", "Eos enim quia modi nam reiciendis. Ad tempore voluptas nesciunt aut voluptatem esse molestiae repellat. Error explicabo deserunt et est et ut."], ["name", "Product #6 - 7604"], ["shipping_category_id", 1], ["slug", "product-6-7604"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.345668"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-12-02 23:04:15.347708"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.350046' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.351093' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.352295' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.352825' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:15.356077"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:15.356077"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.357079' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.357569' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.358671' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.359175' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.363115' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.363644' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.364174' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-6' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:15.366073"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.366793' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.367300' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.367828' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.368455' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.368951' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:15.373827"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.373827"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-7604' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.377968' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:15.382405' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 23:04:15.390792' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.394638"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:04:15.394638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.397086"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:04:15.397086"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cydney.jones@schoenklocko.name' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614555686xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:15.400426"], ["email", "cydney.jones@schoenklocko.name"], ["encrypted_password", "04ce5c9364aa813db2fbaeebaa6c2ac2d3170be2b516f19905f04192501beb0af94d1ce22cd0952eea6eac49f91a36aa384abe56704bb341177871791e28b0b5"], ["login", "cydney.jones@schoenklocko.name"], ["password_salt", "Bo5f1HUpUKqb_sd6_54o"], ["updated_at", "2014-12-02 23:04:15.400426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:15.403098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.404458"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:04:15.404458"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R778822657' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R778822657%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R778822657' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LdXBIKhbmdqlxD5w3Z14wQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 23:04:15.409619"], ["currency", "USD"], ["email", "cydney.jones@schoenklocko.name"], ["guest_token", "LdXBIKhbmdqlxD5w3Z14wQ"], ["number", "R778822657"], ["state", "cart"], ["updated_at", "2014-12-02 23:04:15.409619"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '9BCAAJS7' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 23:04:15.412136"], ["identifier", "9BCAAJS7"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:04:15.412136"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.414522' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-350131' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-350131"], ["updated_at", "2014-12-02 23:04:15.415789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brady_denesik@dickimacejkovic.name' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614558537xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:15.429445"], ["email", "brady_denesik@dickimacejkovic.name"], ["encrypted_password", "6c979a825a0abaa3d8dea1548e536af7dd383aa4c6f7976b1f504feaa1d072654781b414023fa66256126389fcdde742a5a21092733754e88691d4fab3845f11"], ["login", "brady_denesik@dickimacejkovic.name"], ["password_salt", "QfNa1XS34qsVeyxDqV4z"], ["updated_at", "2014-12-02 23:04:15.429445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:04:15.432504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:15.433839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.435350"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:15.435350"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R462606759' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R462606759%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R462606759' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'lBunaoIrq4-sw8FqQgLsBg' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:04:15.440809"], ["currency", "USD"], ["email", "brady_denesik@dickimacejkovic.name"], ["guest_token", "lBunaoIrq4-sw8FqQgLsBg"], ["number", "R462606759"], ["state", "cart"], ["updated_at", "2014-12-02 23:04:15.440809"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:15.453699"], ["name", "ShippingCategory #4"], ["updated_at", "2014-12-02 23:04:15.453699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 537622' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.457817"], ["description", "Nihil voluptatem tempora doloremque atque."], ["name", "TaxCategory - 537622"], ["updated_at", "2014-12-02 23:04:15.457817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.461398"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:15.461398"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-8817' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-8817' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:15.451989"], ["created_at", "2014-12-02 23:04:15.465483"], ["description", "Repellat dolorum et quis reprehenderit cum non. Eum reprehenderit facere minus eveniet dolorem aut quisquam. Doloremque accusantium porro quasi asperiores est aut. Omnis eos enim possimus maiores reprehenderit.\nMolestiae labore qui dolorem dolor. Doloremque et voluptate aut tempore perferendis quia ab aliquid. Perferendis iste aliquam provident eligendi laboriosam dicta. Repudiandae sint saepe non officiis fugit ipsam dolorum consequatur.\nOmnis est ut aut sed modi officia suscipit. Nemo qui dolor voluptates repellendus molestiae atque. Atque non molestiae voluptatum et at ipsum nostrum. Voluptas adipisci enim et vero dicta nesciunt incidunt."], ["name", "Product #7 - 8817"], ["shipping_category_id", 1], ["slug", "product-7-8817"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.465483"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-12-02 23:04:15.467745"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.470194' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.471462' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.472869' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.473511' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:15.477447"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:15.477447"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.478589' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.479172' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.480434' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.480991' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.485314' WHERE "spree_products"."id" = 1 SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.486740' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.488076' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-7' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:15.491253"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.492433' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.493196' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.493975' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.494937' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.495659' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:15.501149"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.501149"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-8817' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.505468' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:15.510276' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-7533' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-7533' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:15.515328"], ["created_at", "2014-12-02 23:04:15.519253"], ["description", "Nobis modi voluptas delectus quia consequuntur explicabo eius. Nisi incidunt vero enim reprehenderit error eius consequatur. Voluptatem delectus non officiis deserunt aut est.\nQuidem at sit est illum omnis explicabo. Esse aspernatur recusandae asperiores sint at earum sed id. Velit quo magni dolores sunt qui est rerum maxime."], ["name", "Product #8 - 7533"], ["shipping_category_id", 1], ["slug", "product-8-7533"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.519253"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-12-02 23:04:15.521617"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.523605' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.526005' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.528262' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.528992' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:15.535424"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:15.535424"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.536735' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.537418' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.538738' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.539250' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.2ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.544305' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.545284' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.546175' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-8' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:15.548300"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.549159' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.549783' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.550427' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.551147' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.551721' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:15.557781"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.557781"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-7533' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.562938' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:15.568458' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 23:04:15.577971' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.581876"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:04:15.581876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.584047"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:04:15.584047"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'robert_bradtke@manteking.com' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614553058xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:15.587058"], ["email", "robert_bradtke@manteking.com"], ["encrypted_password", "0ebc9c42f0e5a36ef3d9b51b48fc3dafa3029103a0403955e405b3ab5cf897def40ee19d2191e212dfb18ee9914d357b7b656c5c305073f77f9ffca3126b4cc8"], ["login", "robert_bradtke@manteking.com"], ["password_salt", "2hFo4UjwGoUKYzUzjseb"], ["updated_at", "2014-12-02 23:04:15.587058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:15.589619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.591024"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:04:15.591024"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R802783416' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R802783416%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R802783416' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'rsPim6jyNkV8elMcScBPdQ' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 23:04:15.596233"], ["currency", "USD"], ["email", "robert_bradtke@manteking.com"], ["guest_token", "rsPim6jyNkV8elMcScBPdQ"], ["number", "R802783416"], ["state", "cart"], ["updated_at", "2014-12-02 23:04:15.596233"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'CKL2B4CJ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 23:04:15.598712"], ["identifier", "CKL2B4CJ"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:04:15.598712"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.600875' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-052330' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-052330"], ["updated_at", "2014-12-02 23:04:15.602061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (5.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'doris@daugherty.co.uk' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614552869xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:15.616612"], ["email", "doris@daugherty.co.uk"], ["encrypted_password", "d01d908cc936c8542fbf0f173f5be9111c091aa3638dab0fc901e928e138af17eff1b49bf894c8964737c28ae71e2f9206cc16f6e0e2ee685b42d35774ebd157"], ["login", "doris@daugherty.co.uk"], ["password_salt", "2W5hU9x2Rt_NB-f9HtPY"], ["updated_at", "2014-12-02 23:04:15.616612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:04:15.619745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:15.621173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.622748"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:15.622748"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R257414918' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R257414918%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R257414918' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NDpJo1F6EYQ0PXaWba_8mw' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:04:15.628578"], ["currency", "USD"], ["email", "doris@daugherty.co.uk"], ["guest_token", "NDpJo1F6EYQ0PXaWba_8mw"], ["number", "R257414918"], ["state", "cart"], ["updated_at", "2014-12-02 23:04:15.628578"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:15.641145"], ["name", "ShippingCategory #5"], ["updated_at", "2014-12-02 23:04:15.641145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 865197' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.645010"], ["description", "Cumque ut dicta qui ex consequatur amet."], ["name", "TaxCategory - 865197"], ["updated_at", "2014-12-02 23:04:15.645010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.649942"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:15.649942"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-7887' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-7887' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:15.639148"], ["created_at", "2014-12-02 23:04:15.654037"], ["description", "Nihil exercitationem quo nulla veniam qui natus dolores. Ut delectus doloribus voluptatem optio. Et dolores dolor voluptas ut reprehenderit enim qui tempora.\nOdit et veniam nostrum enim. Aliquid corrupti eveniet et distinctio earum voluptatem. Laboriosam quia magni voluptatem quidem. Rerum corporis vel velit sit cum voluptatem eaque vitae.\nCorrupti vel aut aliquid dolores in beatae. Quia aliquid aut asperiores delectus excepturi. Excepturi ut eius non labore ut.\nEt non omnis voluptas maxime quibusdam sit minima culpa. Optio recusandae omnis qui ab repellat sunt. Nobis architecto libero et alias itaque nesciunt laboriosam. Vitae et deserunt tempore voluptatibus voluptatum velit voluptas.\nMolestias iusto voluptatum ut debitis voluptates animi. Ut perferendis voluptas nihil non illo cupiditate. Consequuntur sequi placeat et laboriosam ea dolorem voluptas maxime. Aut at accusantium tempora nemo aliquam non in."], ["name", "Product #9 - 7887"], ["shipping_category_id", 1], ["slug", "product-9-7887"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.654037"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-12-02 23:04:15.656452"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.658873' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.660162' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.661579' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.662176' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:15.665734"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:15.665734"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.666787' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.667344' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.668476' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.668989' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.673124' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.673685' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.674429' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-9' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:15.676214"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.676966' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.677466' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.677968' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.678931' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.679843' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:15.687275"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.687275"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-7887' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.691707' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:15.696350' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-7978' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-7978' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:15.700540"], ["created_at", "2014-12-02 23:04:15.704180"], ["description", "Repudiandae cupiditate ipsum aut ut suscipit. Doloremque mollitia similique inventore eligendi voluptas odio. Quod quae accusamus excepturi quidem aut repellendus."], ["name", "Product #10 - 7978"], ["shipping_category_id", 1], ["slug", "product-10-7978"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.704180"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-12-02 23:04:15.706300"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.708286' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.709363' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.710625' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.711166' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:15.714486"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:15.714486"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.715460' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.715978' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.717033' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.717575' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.721401' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.721945' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.722552' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-10' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:15.724355"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.725130' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.725655' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.726191' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.726809' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.727321' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:15.732217"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.732217"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-7978' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.736365' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:15.741025' WHERE "spree_line_items"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 23:04:15.749701' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 23:04:15.761134"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 23:04:15.761134"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:15.764748' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.765323' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.769101"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:04:15.769101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.771146"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:04:15.771146"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'peggie.witting@jacobsonsteuber.info' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141756145580110xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:15.774224"], ["email", "peggie.witting@jacobsonsteuber.info"], ["encrypted_password", "3bd21d81f09f90c4462aa5ec3e6a62ad1ee17acf7cc966de4a3d51d4d6fb4052d5f6bd0d3b7a19da10b83ac581d56205125af43b4f69e07b18e368b2d2e66a28"], ["login", "peggie.witting@jacobsonsteuber.info"], ["password_salt", "4vxPsQ7bA9WkFFVjzka5"], ["updated_at", "2014-12-02 23:04:15.774224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:15.776855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.778293"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:04:15.778293"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R199867946' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R199867946%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R199867946' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Jk8UUB_Xj_r3j7KrZVsKtQ' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 23:04:15.783684"], ["currency", "USD"], ["email", "peggie.witting@jacobsonsteuber.info"], ["guest_token", "Jk8UUB_Xj_r3j7KrZVsKtQ"], ["number", "R199867946"], ["state", "cart"], ["updated_at", "2014-12-02 23:04:15.783684"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'VYAVWN66' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 23:04:15.786172"], ["identifier", "VYAVWN66"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:04:15.786172"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.788458' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-300535' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.1ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-300535"], ["updated_at", "2014-12-02 23:04:15.789683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (4.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mireille.spencer@ferry.biz' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141756145533411xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:15.818804"], ["email", "mireille.spencer@ferry.biz"], ["encrypted_password", "086b9fed0a5fda52c07160a0222d8fb58ea44d2bf6737b82a7c3961f9e3a4b8eb37fb16c38f771e71f0e2e1cc6df17d101b0658997c502831dc8ace73462d0d9"], ["login", "mireille.spencer@ferry.biz"], ["password_salt", "Ei59ensVuepL-hm_kXzs"], ["updated_at", "2014-12-02 23:04:15.818804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:04:15.821881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:15.823119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.824495"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:15.824495"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R423301020' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R423301020%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R423301020' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Znj1gRopykhfBTVQU-dcgw' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:04:15.829898"], ["currency", "USD"], ["email", "mireille.spencer@ferry.biz"], ["guest_token", "Znj1gRopykhfBTVQU-dcgw"], ["number", "R423301020"], ["state", "cart"], ["updated_at", "2014-12-02 23:04:15.829898"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:15.843527"], ["name", "ShippingCategory #6"], ["updated_at", "2014-12-02 23:04:15.843527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 512961' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.846594"], ["description", "Et enim asperiores possimus ut libero ut."], ["name", "TaxCategory - 512961"], ["updated_at", "2014-12-02 23:04:15.846594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.849979"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:15.849979"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-2133' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-2133' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:15.841966"], ["created_at", "2014-12-02 23:04:15.853602"], ["description", "Ullam inventore doloribus quis sequi. Numquam ducimus non tempore esse maiores distinctio voluptatem. Maiores id aut inventore unde. Corporis cum et recusandae qui. Fuga quis quod necessitatibus voluptas esse incidunt saepe et.\nCorporis odit rerum non vitae ut fugit. Eos voluptas aut dicta voluptate libero. Facere rem vel quos rerum incidunt dolore est voluptatibus. Et modi vero sunt distinctio sit necessitatibus omnis. Labore qui et et deserunt facere ea.\nBeatae odio est aut quo et animi nisi. Voluptatem reiciendis maxime alias at cumque similique quidem officia. Quia quam consectetur aut sit. Ut sit natus laboriosam dolores."], ["name", "Product #11 - 2133"], ["shipping_category_id", 1], ["slug", "product-11-2133"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.853602"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-12-02 23:04:15.855765"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.857799' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.858940' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.860235' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.860829' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:15.864161"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:15.864161"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.865087' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.865633' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.866744' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.867240' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.871243' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.871733' WHERE 1=0 SQL (0.4ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.872576' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-11' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:15.876353"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.877750' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.878680' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.879560' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.880440' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.881137' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:15.887365"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.887365"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-2133' AND "spree_products"."id" != 1) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.891563' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:15.896150' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-6301' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-6301' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:15.902456"], ["created_at", "2014-12-02 23:04:15.906212"], ["description", "Debitis eos dignissimos quod molestiae sequi similique ea. Eum voluptatibus adipisci porro ratione nihil aspernatur. Labore totam cum enim enim dolor ratione. Deleniti totam mollitia dicta dolorem molestias eos. Sit vero quo et quia et dolores velit.\nEt omnis maiores autem voluptatibus reiciendis eum dicta. Vel aperiam perspiciatis non consequatur ut. Nihil eos rem quo iusto animi itaque exercitationem repellat.\nTotam sed ut voluptatem ut et eum. Nobis eveniet similique nisi eaque dolorum. Ducimus sit incidunt impedit hic sed recusandae non quam. Et aut et quas esse. Aut et et laborum quia maiores.\nSequi deserunt dolore fugiat nemo soluta harum qui ipsam. Ab ut beatae cum voluptates. Quae assumenda voluptates illum aut consequatur. Iste mollitia quibusdam nam autem."], ["name", "Product #12 - 6301"], ["shipping_category_id", 1], ["slug", "product-12-6301"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.906212"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-12-02 23:04:15.908310"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.910266' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.911341' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.912680' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.913251' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:15.916498"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:15.916498"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:15.917425' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.917929' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.919009' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.919546' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.923552' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.924102' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.924627' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-12' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:15.928469"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:15.929816' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.930708' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.931695' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:15.932638' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:15.933370' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:15.939622"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:15.939622"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-6301' AND "spree_products"."id" != 2) LIMIT 1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.943848' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:15.948415' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 20.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 20.0, "updated_at" = '2014-12-02 23:04:15.957018' WHERE "spree_orders"."id" = 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["amount", -10.0], ["created_at", "2014-12-02 23:04:15.958698"], ["label", "Descuento"], ["order_id", 1], ["state", "open"], ["updated_at", "2014-12-02 23:04:15.958698"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' SQL (0.1ms) UPDATE "spree_orders" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:15.961517' WHERE "spree_orders"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.962025' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.965849"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:04:15.965849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:15.967818"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:04:15.967818"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'roosevelt.boyer@harvey.us' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx14175614558912xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:15.970857"], ["email", "roosevelt.boyer@harvey.us"], ["encrypted_password", "888bca8b0591af913c8ae3b31d56c0caca435191f72bf4a81364a43e819b2aa427b10a1d1edf98088033a0060224f1d9ac761376f7eb244d4e34858622cd500c"], ["login", "roosevelt.boyer@harvey.us"], ["password_salt", "j_rVYx8d5CLWfuine6mB"], ["updated_at", "2014-12-02 23:04:15.970857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:15.973377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:15.974732"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:04:15.974732"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R716481681' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R716481681%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R716481681' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'DYhSldkiZN_H6DsNk1OFBw' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 2], ["created_at", "2014-12-02 23:04:15.979896"], ["currency", "USD"], ["email", "roosevelt.boyer@harvey.us"], ["guest_token", "DYhSldkiZN_H6DsNk1OFBw"], ["number", "R716481681"], ["state", "cart"], ["updated_at", "2014-12-02 23:04:15.979896"], ["user_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'UPYNMTAY' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["created_at", "2014-12-02 23:04:15.982242"], ["identifier", "UPYNMTAY"], ["order_id", 2], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:04:15.982242"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 2]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:15.984431' WHERE "spree_orders"."id" = 2 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-245121' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-245121"], ["updated_at", "2014-12-02 23:04:15.985651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (4.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kayley@block.us' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141756145546613xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:16.000940"], ["email", "kayley@block.us"], ["encrypted_password", "4d3c7be6ed9d05035764488e621df7b48d4d1b7867ff7bc9504865b6679367653a951e21159db56380878a984c59e7f75d02623b9b3e2237242f7ffeeecb8ede"], ["login", "kayley@block.us"], ["password_salt", "V5gNqYN6TgVCw81Tqmvy"], ["updated_at", "2014-12-02 23:04:16.000940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:04:16.004197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:16.005508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:16.006915"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:16.006915"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:16.009438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:16.010709"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:04:16.010709"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R617137344' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R617137344%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R617137344' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '4yC9-ht0LS5lkRha6P851A' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:04:16.019097"], ["currency", "USD"], ["email", "kayley@block.us"], ["guest_token", "4yC9-ht0LS5lkRha6P851A"], ["number", "R617137344"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:04:16.019097"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:16.027666"], ["name", "ShippingCategory #7"], ["updated_at", "2014-12-02 23:04:16.027666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 502729' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.030394"], ["description", "Et est quis voluptatem perferendis."], ["name", "TaxCategory - 502729"], ["updated_at", "2014-12-02 23:04:16.030394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:16.033935"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:16.033935"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-8882' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-8882' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:16.026577"], ["created_at", "2014-12-02 23:04:16.037772"], ["description", "Nemo dolor doloribus sint tenetur. Qui qui accusamus et quod tempore. Sapiente minus doloribus consequatur veritatis ut eum ipsum et.\nProvident odio non id minus expedita incidunt. Reprehenderit voluptas vel nulla natus est facilis perferendis. Aliquid fugiat mollitia quisquam voluptatem alias. Praesentium quisquam et ut et nihil delectus natus.\nOptio perferendis molestiae officia vel ullam esse. Nemo dignissimos quia laborum non et quidem saepe eum. Quia laboriosam aut nemo adipisci repellat illum eaque.\nVelit sequi possimus sed dicta. Deleniti expedita doloribus et omnis vitae ipsa molestiae. Et iusto fugit molestias dolorem amet qui aut. Et sit quasi eos quibusdam soluta sit dolore. Est placeat sint accusamus incidunt qui eos velit quia."], ["name", "Product #13 - 8882"], ["shipping_category_id", 1], ["slug", "product-13-8882"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.037772"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-13"], ["updated_at", "2014-12-02 23:04:16.039936"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.041950' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.043035' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.044469' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.045067' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.048618"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:16.048618"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.049649' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.050179' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.051311' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.051825' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.055934' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.056474' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.057091' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-13' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:16.058797"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.059508' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.060037' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.060571' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.061206' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.061689' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:16.066746"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.066746"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-8882' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.079286' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:16.085040' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-2326' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-2326' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:16.091054"], ["created_at", "2014-12-02 23:04:16.094804"], ["description", "Fugit molestiae explicabo et sint blanditiis enim. Animi aut velit rem qui et est velit. Itaque est et maiores error sit quis.\nSed aliquam minima alias sunt repellat. Commodi labore beatae facere id animi nisi quasi quisquam. Velit blanditiis consequuntur voluptas omnis.\nSoluta rerum cupiditate quidem molestiae. Tempore sunt voluptates autem deserunt provident eveniet et id. Voluptas aut eum rerum nam. Rerum perspiciatis atque dolorum perferendis velit dolor sunt.\nCumque quia sint optio deleniti. Dicta maiores ipsa id itaque dolorem possimus quod. Ad esse omnis est perspiciatis consequuntur. Placeat rerum quaerat temporibus nostrum eum."], ["name", "Product #14 - 2326"], ["shipping_category_id", 1], ["slug", "product-14-2326"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.094804"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-14"], ["updated_at", "2014-12-02 23:04:16.096928"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.098868' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.099969' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.101340' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.101931' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.105334"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:16.105334"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.106257' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.106779' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.107871' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.108419' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.112380' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.112950' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.113511' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-14' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:16.117378"]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.118686' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.119625' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.120548' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.121424' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.122132' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:16.128254"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.128254"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-2326' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.133328' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:16.139173' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-2933' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-2933' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:16.145685"], ["created_at", "2014-12-02 23:04:16.149355"], ["description", "Id eveniet rerum nesciunt aperiam dignissimos aut quia. Quia doloremque vero sit neque dolore harum perferendis. Perspiciatis sit voluptatibus ab sed. Nostrum omnis corrupti et aut quam maiores eos.\nDolores delectus voluptatem consequatur consequatur et molestiae. Ratione hic porro sint voluptatem. Distinctio et temporibus labore reprehenderit ratione nobis qui occaecati. Molestiae id voluptatem inventore laborum labore vel minus deleniti. Eius sit molestiae sit officiis et.\nDeleniti delectus rerum non natus. Sed nobis consequatur et aspernatur. Maxime veritatis temporibus dolorem provident iure velit cupiditate. Deserunt temporibus aut necessitatibus consequatur illo. Sunt quia quas est sit est expedita cum.\nError ea aliquid doloremque ab et. Eveniet perferendis sunt deserunt nulla. Alias eius iure vel aut dolor magni illo autem. Quia qui maiores ea qui."], ["name", "Product #15 - 2933"], ["shipping_category_id", 1], ["slug", "product-15-2933"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.149355"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-15"], ["updated_at", "2014-12-02 23:04:16.151442"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.153265' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.154341' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.155516' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.156074' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.158932"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:16.158932"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.159816' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.160291' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.161345' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.161870' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.165671' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.166205' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.166765' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-15' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:16.168361"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.169041' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.169475' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.169977' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.170517' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.170942' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:16.175543"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.175543"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-2933' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.181229' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:16.186718' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-4097' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-4097' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:16.192248"], ["created_at", "2014-12-02 23:04:16.195874"], ["description", "Sint quod nemo asperiores accusamus rerum molestiae quaerat. Laborum error aut in non ex illum et. Ut et placeat autem et voluptate exercitationem eaque molestiae. Consequuntur maiores deserunt et omnis.\nAsperiores esse nostrum quia in. Incidunt exercitationem ratione occaecati cupiditate ipsam distinctio. Nostrum et corrupti quibusdam est tempora itaque et. Officiis blanditiis reprehenderit optio aperiam modi. Qui aut sed iusto minima ut assumenda quos et.\nRatione omnis rerum voluptatem molestias laboriosam neque. Officia vel est est deserunt quidem labore. Provident quae rerum quis qui cum sit non."], ["name", "Product #16 - 4097"], ["shipping_category_id", 1], ["slug", "product-16-4097"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.195874"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-16"], ["updated_at", "2014-12-02 23:04:16.198079"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.199973' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.201102' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.202378' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.202945' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.205857"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:16.205857"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.206757' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.207261' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.208338' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.208869' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.212836' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.213405' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.213988' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-16' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:16.215659"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.216344' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.216815' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.217301' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.217864' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.218328' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:16.223140"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.223140"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-4097' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.228941' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:16.234706' WHERE "spree_line_items"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-2449' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-2449' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:16.240558"], ["created_at", "2014-12-02 23:04:16.244839"], ["description", "Aut assumenda omnis impedit et quidem. Sequi vitae explicabo a est. Ut optio hic ab quisquam.\nMaiores vitae qui vero fugiat itaque error. Laboriosam placeat deleniti quia ratione sed iure. Quaerat provident eius consequuntur magnam cumque similique optio qui.\nPossimus et labore aut voluptatem adipisci dolores eveniet atque. Maxime et aperiam facilis odit voluptas. Eaque qui iure qui laborum. Nam ut commodi rerum repellendus. Consequatur assumenda voluptatum dolorem non ut aliquid."], ["name", "Product #17 - 2449"], ["shipping_category_id", 1], ["slug", "product-17-2449"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.244839"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-17"], ["updated_at", "2014-12-02 23:04:16.247316"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.249394' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.250510' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.251806' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.252385' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.255259"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:16.255259"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.256210' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.256766' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.272862' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.273466' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.277573' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.278142' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.278713' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-17' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:16.280363"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.281051' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.281526' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.282027' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.282588' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.283037' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:16.287723"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.287723"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-2449' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.293507' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:16.299007' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:16.314361"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:16.314361"], ["zipcode", "20500"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.317899"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:16.317899"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.318827' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.319990' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.321246' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.321774' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.324258"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:16.324258"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.325064' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.326088' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.327248' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.327774' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.330151"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:16.330151"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.331002' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.332079' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.333323' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.333873' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.336471"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:16.336471"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.337391' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.338549' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.339713' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.340288' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.342802"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:16.342802"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.343666' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.344729' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.345920' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.346457' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H71862328523%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:16.352160"], ["number", "H71862328523"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:04:16.352160"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.353232' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:16.359288' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.376271"], ["description", "Exercitationem provident dolores ex odit tempore velit."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:04:16.376271"]] Spree::ZoneMember Exists (0.1ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.2ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.379403"], ["updated_at", "2014-12-02 23:04:16.379403"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:16.422121"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:04:16.422121"]] SQL (0.2ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:04:16.423223"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:04:16.423223"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.424814"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:16.424814"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:16.439848"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:16.439848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.455895"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:16.455895"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:16.457225' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.457889' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.459455"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:16.459455"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:16.460103' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.460540' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.461866"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:16.461866"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:16.462496' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.462962' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.464325"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:16.464325"], ["variant_id", 4]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:16.465757' WHERE "spree_shipments"."id" = 1 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.466983' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.469753"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:16.469753"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:16.471091' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.471822' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:16.482045' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.519066"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:16.519066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:04:16.522661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.524312' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:04:16.524897' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.528491"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:04:16.528491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.530595"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:04:16.530595"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'SPQCARN5' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:04:16.532281"], ["identifier", "SPQCARN5"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:04:16.532281"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.534514' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-523303' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-523303"], ["updated_at", "2014-12-02 23:04:16.535675"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.2ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.546541"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:16.546541"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.2ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:16.549820' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.571797"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:16.571797"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:04:16.574846"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.576373' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:16.578741' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.580469"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:16.580469"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:16.581229' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:04:16.583733"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.584993' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:16.591784' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.611285"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:16.611285"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:04:16.614355"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.616001' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:16.618182' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:16.619324' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.623193"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:16.623193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'SPQCARN5' ORDER BY spree_payments.created_at LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "completed"], ["updated_at", "2014-12-02 23:04:16.627096"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.628437' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.634655"], ["name", "payment"], ["next_state", "paid"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:16.634655"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 23:04:16.637380' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.673445"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:16.673445"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:04:16.676541"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.678179' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:16.680328' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.681928"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:16.681928"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'paid', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:16.682735' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.683995"], ["name", "payment"], ["next_state", "completed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:16.683995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.693073"], ["name", "payment"], ["next_state", "credit_owed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:16.693073"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'ready', "updated_at" = '2014-12-02 23:04:16.694128' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.711452"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:16.711452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:04:16.714726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.716471' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:16.718645' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.720278"], ["name", "shipment"], ["next_state", "ready"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:16.720278"], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'credit_owed', "shipment_state" = 'ready', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 150.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:04:16.721122' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (5.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'coy@grady.biz' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141756145685814xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:16.740013"], ["email", "coy@grady.biz"], ["encrypted_password", "1ead76ab40177f89380d49303f0a842c335d1f22c07f00789a979fdeed6cfcc776b81157a0e82268a50172b1b358fb3024a6150c87f8cdf4f787ab0a27dda190"], ["login", "coy@grady.biz"], ["password_salt", "xnYtJftXFBVx1WxgLPHR"], ["updated_at", "2014-12-02 23:04:16.740013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:04:16.743129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:16.744384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:16.745801"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:16.745801"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:16.748342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:16.749654"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:04:16.749654"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R755135244' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R755135244%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R755135244' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9MCmk7cCdWIyOIVd7iFnEg' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:04:16.759816"], ["currency", "USD"], ["email", "coy@grady.biz"], ["guest_token", "9MCmk7cCdWIyOIVd7iFnEg"], ["number", "R755135244"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:04:16.759816"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:16.771234"], ["name", "ShippingCategory #8"], ["updated_at", "2014-12-02 23:04:16.771234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 684202' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:16.774195"], ["description", "Voluptatibus et dolor autem qui."], ["name", "TaxCategory - 684202"], ["updated_at", "2014-12-02 23:04:16.774195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:16.777521"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:16.777521"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-9663' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-9663' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:16.769906"], ["created_at", "2014-12-02 23:04:16.781460"], ["description", "Sed repellendus et debitis minima reprehenderit in odio. Temporibus porro iusto accusamus doloremque. Est vel voluptatem adipisci libero optio autem. Enim dolor qui et nemo.\nCommodi sed sapiente iste libero rerum tempore aut. Aspernatur perspiciatis accusantium sit magnam vitae. Tempore odio voluptates animi quibusdam. Consequuntur ad nihil ducimus dignissimos itaque atque autem. Voluptatem similique nostrum vel dolor qui qui.\nEnim accusantium fuga mollitia dolorem quibusdam quasi. At vel molestias corrupti commodi possimus sunt et. Autem esse debitis deserunt dignissimos sed voluptatem quasi necessitatibus. Rerum cupiditate qui nemo tempore a ducimus.\nIpsum iusto doloremque vitae molestias soluta delectus. Quia amet veniam molestias inventore assumenda. Eius illum aut omnis voluptatem. Eveniet neque ut aut et dolorum voluptate voluptas. Ea aut et accusantium provident.\nFugiat ea nemo nam cumque voluptatem facilis tempora. Voluptate nesciunt est distinctio harum illum ut. Corrupti sed magni rerum veritatis officia ipsum architecto. Qui assumenda cumque quae tempora voluptates omnis inventore. Quis magni dolore porro suscipit."], ["name", "Product #18 - 9663"], ["shipping_category_id", 1], ["slug", "product-18-9663"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.781460"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-18"], ["updated_at", "2014-12-02 23:04:16.783889"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.786105' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.787215' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.788489' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.789044' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.791936"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:16.791936"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.792903' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.793441' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.794642' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.795153' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.799120' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.799650' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.800201' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-18' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:16.801848"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.802507' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.802968' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.803458' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.804043' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.804467' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:16.809369"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.809369"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-9663' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.815291' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:16.820886' WHERE "spree_line_items"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-9569' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-9569' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:16.828076"], ["created_at", "2014-12-02 23:04:16.832153"], ["description", "Hic et ipsum beatae aut. Iusto et commodi aut aliquam sequi soluta deserunt. Sint earum hic nihil sapiente dignissimos eum modi reiciendis. Itaque minima deserunt esse aliquid alias magni maiores. Quos laboriosam eum atque dignissimos.\nEum sit velit sunt voluptatibus. Laudantium laboriosam odit ratione nesciunt. Earum quaerat possimus ut quae saepe odit sunt. Voluptatem debitis vel fugit ratione expedita dolores. Harum et quae et omnis omnis ut dignissimos dolorem.\nVoluptates earum non eius enim molestias rerum voluptatum nemo. Et aliquid deleniti quod id nulla dignissimos voluptatem. Quidem est nulla tempore numquam quia et quia. Sit qui cum tempora vero harum mollitia.\nMinima eos qui et laborum dolor reiciendis. Eos temporibus esse amet odio aperiam sunt quam. Ea autem aliquid nemo omnis sint tempora sed ex. Eveniet aliquam itaque odio rerum dignissimos explicabo est exercitationem. Et doloribus saepe qui omnis temporibus ut repellendus quo."], ["name", "Product #19 - 9569"], ["shipping_category_id", 1], ["slug", "product-19-9569"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.832153"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-19"], ["updated_at", "2014-12-02 23:04:16.834492"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.836677' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.837786' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.839189' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.839741' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.842576"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:16.842576"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.843547' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.844064' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.845177' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.845702' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.849524' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.850044' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.850553' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-19' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:16.852217"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.853023' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.853503' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.853996' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.854562' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.855016' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:16.860407"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.860407"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-9569' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.3ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.870695' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:16.877081' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-2225' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-2225' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:16.883730"], ["created_at", "2014-12-02 23:04:16.887494"], ["description", "Est ipsa commodi architecto facilis. Et fuga in nisi corporis magnam aut. Cum molestiae doloribus velit aut sequi asperiores reiciendis iusto. Consequatur nostrum sunt facilis doloribus id consectetur quisquam. Dicta ipsa expedita odit omnis eligendi molestiae numquam.\nConsequuntur aliquam omnis ab odio ducimus beatae sint asperiores. Eligendi ipsa ipsam qui maxime. Distinctio quisquam optio recusandae earum doloribus. Eveniet aut soluta et ut nam optio repellendus illo.\nEnim omnis qui aspernatur occaecati accusantium veritatis. Minus hic quas dolores vero. Quia sit voluptatem aliquid culpa. Unde similique beatae necessitatibus consequuntur sed.\nSoluta unde minus placeat distinctio fugiat. Numquam rem aut eos possimus vel eum voluptatum. Soluta laboriosam esse qui quas officia hic cum quia. Vero eos enim est et. Voluptatem non possimus aliquam dicta placeat sit omnis."], ["name", "Product #20 - 2225"], ["shipping_category_id", 1], ["slug", "product-20-2225"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.887494"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-20"], ["updated_at", "2014-12-02 23:04:16.889564"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.891523' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.892747' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.894037' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.894647' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.897581"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:16.897581"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.898577' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.899131' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.900332' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.900863' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.904841' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.905348' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.905873' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-20' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:16.907446"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.908095' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.908570' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.909038' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.909601' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.910051' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:16.914688"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.914688"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-2225' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.920574' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:16.926098' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.1ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-8575' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-8575' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:16.931648"], ["created_at", "2014-12-02 23:04:16.935357"], ["description", "Quo aliquid quaerat eligendi alias quis est ratione quam. Voluptate ad quidem et exercitationem hic repellat est nam. Vero iste beatae officia dolorum unde tempore sint doloribus.\nQui ducimus sunt voluptatum recusandae. Voluptatem eveniet laborum unde assumenda. Asperiores non in aliquid harum doloremque occaecati.\nEt est delectus qui a libero quidem consequuntur voluptatibus. Tenetur alias ipsa ut ex cumque corporis nostrum. Eos nobis voluptas quod quaerat est vitae totam. Necessitatibus velit nostrum aliquid enim facilis odit. Ut at maiores modi ut."], ["name", "Product #21 - 8575"], ["shipping_category_id", 1], ["slug", "product-21-8575"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.935357"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-21"], ["updated_at", "2014-12-02 23:04:16.937428"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.939339' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.940410' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.941632' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.942173' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.945074"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:16.945074"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.945980' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.946486' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.947555' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.948133' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.952476' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.952993' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.953530' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-21' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:16.955124"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.955750' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.956181' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.956684' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.957304' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.957746' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:16.962492"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.962492"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-8575' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:16.968239' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:16.973892' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-1200' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-1200' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:16.978771"], ["created_at", "2014-12-02 23:04:16.982435"], ["description", "Similique animi quaerat sit quidem. Omnis earum voluptatum non tempore id. Sit consequuntur deleniti modi itaque tempore libero sint similique. Vel impedit nulla debitis placeat non nesciunt accusamus voluptatem.\nExpedita dolor tempora in pariatur praesentium suscipit. Itaque enim atque asperiores omnis exercitationem perferendis. Qui debitis doloremque atque velit enim saepe."], ["name", "Product #22 - 1200"], ["shipping_category_id", 1], ["slug", "product-22-1200"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:16.982435"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-22"], ["updated_at", "2014-12-02 23:04:16.984609"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.986453' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.987486' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.988717' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.989285' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:16.992214"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:16.992214"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:16.993133' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.993648' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.994716' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:16.995237' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:16.999077' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:16.999576' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.000127' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-22' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:17.001669"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.002275' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.002725' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.003194' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.003731' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.004171' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:17.008826"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:17.008826"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-1200' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.014679' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:17.020406' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:17.025337"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:17.025337"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.028907"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:17.028907"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.029868' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.031050' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.032255' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.032812' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.035348"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:17.035348"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.036206' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.037235' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.038348' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.038869' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.041376"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:17.041376"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.042229' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.043312' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.044483' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.045088' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.047809"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:17.047809"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.048730' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.049803' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.050982' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.051519' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.053942"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:17.053942"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.054789' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.056045' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.2ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.059225' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.060323' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H27220546671%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:17.065023"], ["number", "H27220546671"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:04:17.065023"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.066487' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:17.070284' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.086801"], ["description", "Voluptatem recusandae sed qui provident ullam placeat id."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:04:17.086801"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.088517"], ["updated_at", "2014-12-02 23:04:17.088517"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:17.097806"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:04:17.097806"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:04:17.098597"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:04:17.098597"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.099936"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:17.099936"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:17.102806"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:17.102806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.106561"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:17.106561"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:17.107380' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.107939' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.109360"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:17.109360"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:17.110045' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.110486' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.111798"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:17.111798"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:17.112467' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.112902' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.114241"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:17.114241"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:17.114870' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.115345' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.118134"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:17.118134"], ["variant_id", 5]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:17.119646' WHERE "spree_shipments"."id" = 1 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.120587' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:17.131959' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.151121"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:17.151121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:04:17.154888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.156508' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:04:17.157100' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.160881"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:04:17.160881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.162954"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:04:17.162954"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'U9WEK45V' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:04:17.164711"], ["identifier", "U9WEK45V"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:04:17.164711"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.166939' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-025125' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-025125"], ["updated_at", "2014-12-02 23:04:17.168120"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.171009"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:17.171009"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:17.172728' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.190443"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:17.190443"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:04:17.193915"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.195471' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:17.197874' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.199605"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:17.199605"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:17.200451' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:04:17.202878"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.204100' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:17.210575' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.229769"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:17.229769"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:04:17.232822"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.234375' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:17.236529' WHERE "spree_shipments"."id" = 1  (0.1ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:17.237672' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.239076"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:17.239076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'U9WEK45V' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "failed"], ["updated_at", "2014-12-02 23:04:17.242445"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.243658' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.248992"], ["name", "payment"], ["next_state", "failed"], ["previous_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:17.248992"], ["user_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:17.251524' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.270937"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:17.270937"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:04:17.274022"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.275588' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:17.277788' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'failed', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:17.278902' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.280279"], ["name", "payment"], ["next_state", "failed"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:17.280279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:17.289126' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.305958"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:17.305958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:04:17.309429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.311330' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:17.313698' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'failed', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:04:17.314752' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (166.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.1ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'gudrun_hudson@oreilly.ca' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141756145791415xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:17.490732"], ["email", "gudrun_hudson@oreilly.ca"], ["encrypted_password", "00f4522d4eff6b6506d55ca26c6ed927442dd4b5332c0db00bba22d7bf3ad44dbb66d1a30b1d564df03c7a133583f924835532f552847e55676120d5651008ba"], ["login", "gudrun_hudson@oreilly.ca"], ["password_salt", "y9_hwKy2CWou681mrKyC"], ["updated_at", "2014-12-02 23:04:17.490732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:04:17.494168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:17.495588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:17.497161"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:17.497161"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:17.499742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:17.501010"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:04:17.501010"], ["zipcode", "35005"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R928125601' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R928125601%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R928125601' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'pGohLqAZb0ZqYZ_wj5Mhlg' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:04:17.512349"], ["currency", "USD"], ["email", "gudrun_hudson@oreilly.ca"], ["guest_token", "pGohLqAZb0ZqYZ_wj5Mhlg"], ["number", "R928125601"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:04:17.512349"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:17.519823"], ["name", "ShippingCategory #9"], ["updated_at", "2014-12-02 23:04:17.519823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 786728' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.522471"], ["description", "Dolorem repellendus architecto et vel dicta."], ["name", "TaxCategory - 786728"], ["updated_at", "2014-12-02 23:04:17.522471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:17.525730"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:17.525730"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-2800' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-2800' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:17.518759"], ["created_at", "2014-12-02 23:04:17.529313"], ["description", "Dolorem sed omnis ex ipsum ratione. Quia ut vitae debitis nesciunt. Quam nobis commodi sit consectetur. Sunt odio rerum ab qui cupiditate distinctio. Reiciendis repudiandae fugit odit consequatur laboriosam."], ["name", "Product #23 - 2800"], ["shipping_category_id", 1], ["slug", "product-23-2800"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:17.529313"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-23"], ["updated_at", "2014-12-02 23:04:17.531433"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.533465' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.534539' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.535782' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.536335' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.539230"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:17.539230"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.540156' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.540670' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.541722' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.542251' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.546250' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.546801' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.547339' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-23' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:17.548942"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.549596' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.550040' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.550532' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.551093' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.551546' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.4ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:17.556465"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:17.556465"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-2800' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.567148' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:17.573397' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-9235' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-9235' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:17.577716"], ["created_at", "2014-12-02 23:04:17.581415"], ["description", "Ipsum ea et voluptatem debitis vero. Veritatis debitis incidunt quis distinctio et reiciendis ut. Commodi nam eius autem enim facere."], ["name", "Product #24 - 9235"], ["shipping_category_id", 1], ["slug", "product-24-9235"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:17.581415"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-24"], ["updated_at", "2014-12-02 23:04:17.583572"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.585546' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.586623' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.587862' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.588421' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.591308"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:17.591308"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.592240' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.592756' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.593843' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.594348' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.598282' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.598799' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.599336' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-24' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:17.600905"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.601584' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.602035' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.602522' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.603070' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.603517' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:17.608202"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:17.608202"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-9235' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.614061' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:17.619809' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-9610' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-9610' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:17.625397"], ["created_at", "2014-12-02 23:04:17.629189"], ["description", "Ea neque quam cumque quas cum. Quibusdam aut laboriosam labore nesciunt similique tempora consequuntur. Et perspiciatis quibusdam quas modi enim fuga nesciunt eos. Animi inventore placeat velit voluptatem nemo ratione.\nVero velit accusantium explicabo voluptatibus soluta sequi sit molestiae. Fugiat et ut quia iusto. Libero explicabo quos deserunt quis quod temporibus. Dicta non aut qui velit voluptates eveniet sed optio.\nSequi vel quia inventore est nesciunt dignissimos accusantium. Ut quia commodi ratione omnis unde culpa. Illum voluptate aliquid quia expedita."], ["name", "Product #25 - 9610"], ["shipping_category_id", 1], ["slug", "product-25-9610"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:17.629189"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-25"], ["updated_at", "2014-12-02 23:04:17.643717"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.645890' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.647004' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.648257' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.648792' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.651709"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:17.651709"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.652604' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.653107' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.654185' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.654714' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.658585' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.659148' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.659674' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-25' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:17.661262"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.661907' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.662352' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.662841' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.663378' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.663807' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:17.668546"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:17.668546"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-9610' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.674337' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:17.680119' WHERE "spree_line_items"."id" = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-8247' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-8247' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:17.685452"], ["created_at", "2014-12-02 23:04:17.689127"], ["description", "Et deleniti et sequi molestiae maiores. Et quia quod ea quia nisi a. Molestiae ut voluptatem aut voluptatibus aperiam nostrum molestiae. Qui nemo eligendi dolorem fugiat ratione.\nQuis quia sed cumque asperiores. Sint ullam quae esse ipsam animi vero deserunt. Accusantium sunt enim numquam animi.\nQuas doloremque quia aut sapiente molestiae sunt ut recusandae. Suscipit in ut fuga voluptate dolores. Aliquam soluta distinctio ipsum doloribus recusandae et earum ullam."], ["name", "Product #26 - 8247"], ["shipping_category_id", 1], ["slug", "product-26-8247"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:17.689127"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-26"], ["updated_at", "2014-12-02 23:04:17.691175"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.693044' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.694123' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.695358' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.695906' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.698793"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:17.698793"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.699683' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.700218' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.701289' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.701795' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.705606' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.706125' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.706679' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-26' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:17.708190"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.708822' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.709259' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.709749' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.710315' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.710757' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:17.715433"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:17.715433"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-8247' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.721121' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:17.726756' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-9526' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-9526' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:17.733129"], ["created_at", "2014-12-02 23:04:17.736806"], ["description", "Illum esse tempore ea et enim earum. Aspernatur repellat corrupti quo deleniti eius quisquam rerum. Minus nostrum veritatis dolores consequatur autem. Ut qui repudiandae ut consectetur cumque. Molestiae nostrum autem et sit aspernatur enim ipsum.\nBlanditiis veritatis animi quam aut. Dolor occaecati asperiores quae iste neque consequatur nostrum. Voluptas ipsa omnis odio maxime dignissimos. Nulla quam aliquid sint nemo aut dolor. Eum adipisci dolores nemo rem cupiditate.\nVoluptas dolorum nihil voluptate minus velit. Tempora omnis nisi ullam ipsum consequatur assumenda. Facere deserunt minus ab minima et et. Aut at et repellendus nostrum vel nam sint.\nTenetur eos ipsam et eveniet recusandae sapiente. Voluptas quia tenetur voluptatum iure enim. Dicta ut numquam odit recusandae voluptatem ut."], ["name", "Product #27 - 9526"], ["shipping_category_id", 1], ["slug", "product-27-9526"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:17.736806"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-27"], ["updated_at", "2014-12-02 23:04:17.738960"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.740798' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.741867' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.743091' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.743676' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.746595"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:17.746595"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.747486' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.747975' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.749063' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.749575' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.753496' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.754021' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.754539' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-27' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:17.756145"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.756765' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.757201' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.757686' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.758218' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.758693' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:17.763372"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:17.763372"], ["variant_id", 5]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-9526' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.769114' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:17.774945' WHERE "spree_line_items"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:17.779956"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:17.779956"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.783490"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:17.783490"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.784418' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.785545' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.786783' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.787305' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.789728"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:17.789728"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.790585' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.791574' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.792658' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.793177' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.795499"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:17.795499"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.796328' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.797318' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.798425' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.798975' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.801616"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:17.801616"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.802574' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.803680' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.804845' WHERE 1=0 SQL (0.3ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.805373' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:17.807922"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:17.807922"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:17.808750' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:17.809758' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:17.810986' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:17.811555' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H65254730860%') SQL (0.2ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:17.814268"], ["number", "H65254730860"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:04:17.814268"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.815237' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:17.818303' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.821941"], ["description", "Soluta consequatur consequatur qui quae praesentium."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:04:17.821941"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.823396"], ["updated_at", "2014-12-02 23:04:17.823396"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:17.832073"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:04:17.832073"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:04:17.832839"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:04:17.832839"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.834155"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:17.834155"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:17.836920"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:17.836920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.840584"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:17.840584"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:17.841380' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.841979' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.843409"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:17.843409"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:17.844060' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.844537' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.845847"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:17.845847"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:17.846535' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.846952' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.848277"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:17.848277"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:17.848908' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.849358' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.850648"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:17.850648"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:17.851290' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.851755' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.3ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:17.859999' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.878689"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:17.878689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:04:17.882200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.883766' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:04:17.884369' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.887921"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:04:17.887921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.889892"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:04:17.889892"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'HUWU86SB' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:04:17.891581"], ["identifier", "HUWU86SB"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:04:17.891581"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.893750' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-133503' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-133503"], ["updated_at", "2014-12-02 23:04:17.894880"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.4ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.897729"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:17.897729"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:17.899665' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.916559"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:17.916559"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:04:17.919622"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.921074' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:17.923249' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.924841"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:17.924841"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:17.925603' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:04:17.927952"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.929148' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:17.935503' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.954909"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:17.954909"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:04:17.958053"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.959641' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:17.961862' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:17.963006' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:17.964470"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:17.964470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'HUWU86SB' ORDER BY spree_payments.created_at LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.0ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "void"], ["updated_at", "2014-12-02 23:04:17.967927"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:17.969134' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:17.975603' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.007455"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:18.007455"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:04:18.010525"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.012129' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:18.014286' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:18.015413' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.016793"], ["name", "payment"], ["next_state", "void"], ["previous_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:18.016793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:18.025322' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (5) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.042374"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:18.042374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 6]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 6 [["selected", "t"], ["updated_at", "2014-12-02 23:04:18.045598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.047265' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:18.049432' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:04:18.050434' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (7.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::User Exists (0.2ms) SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'aliyah@jacobs.co.uk' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["authentication_token", "xxxx141756145842616xxxxxxxxxxxxx"], ["created_at", "2014-12-02 23:04:18.071766"], ["email", "aliyah@jacobs.co.uk"], ["encrypted_password", "1a04ceb96bc9ab2a9afae5e444e901217f6f9077d6786e94b638069c05d29cf969cf41e78c5f1118eca8768c74fd3b0ef78c08b4023bb32fa39148e9aae045d6"], ["login", "aliyah@jacobs.co.uk"], ["password_salt", "z9LThzUjHnBNRzL5EKg_"], ["updated_at", "2014-12-02 23:04:18.071766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 23:04:18.075353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:18.076673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:18.078116"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:18.078116"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?) [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 23:04:18.080726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "10 Lovely Street"], ["address2", "Northwest"], ["alternative_phone", "123-456-7899"], ["city", "Herndon"], ["company", "Company"], ["country_id", 1], ["created_at", "2014-12-02 23:04:18.082004"], ["firstname", "John"], ["lastname", "Doe"], ["phone", "123-456-7890"], ["state_id", 2], ["updated_at", "2014-12-02 23:04:18.082004"], ["zipcode", "35005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R356222473' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R356222473%') Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R356222473' LIMIT 1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ZQQ9F-du6lEAvmIJvVWxXg' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bill_address_id", 1], ["created_at", "2014-12-02 23:04:18.092143"], ["currency", "USD"], ["email", "aliyah@jacobs.co.uk"], ["guest_token", "ZQQ9F-du6lEAvmIJvVWxXg"], ["number", "R356222473"], ["ship_address_id", 2], ["state", "complete"], ["updated_at", "2014-12-02 23:04:18.092143"], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:18.101885"], ["name", "ShippingCategory #10"], ["updated_at", "2014-12-02 23:04:18.101885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Exists (0.1ms) SELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 664168' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.104912"], ["description", "Sequi reiciendis sunt vel nihil adipisci ut repudiandae et."], ["name", "TaxCategory - 664168"], ["updated_at", "2014-12-02 23:04:18.104912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations" Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:18.108789"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:18.108789"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-6849' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-6849' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:18.100667"], ["created_at", "2014-12-02 23:04:18.112674"], ["description", "Ratione iure sunt deserunt minima reiciendis culpa aperiam. Asperiores occaecati mollitia nobis blanditiis vitae quia. Nemo ex alias maxime itaque et aut. Qui aspernatur illum id voluptatem repellat corporis. A reiciendis nam consectetur molestias amet expedita qui soluta.\nAb et ut repellat itaque et saepe et aut. Unde cum corporis incidunt ad aspernatur voluptatem consequatur rem. At similique nobis officiis facilis et. Reprehenderit a et nihil est assumenda. Consequatur assumenda consequatur fugit cumque provident odit dignissimos.\nIste voluptatem mollitia ut temporibus similique non reiciendis ea. Adipisci officia id est quia ad. Voluptas id repellat voluptate qui. Earum soluta et autem fuga voluptatem facere ea rem. Quia aspernatur est sequi et quo."], ["name", "Product #28 - 6849"], ["shipping_category_id", 1], ["slug", "product-28-6849"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:18.112674"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-28"], ["updated_at", "2014-12-02 23:04:18.114864"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.116875' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.118050' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.119283' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.119849' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:18.122687"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:18.122687"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.123624' WHERE "spree_variants"."id" = 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.124109' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.125151' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.125655' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.129693' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.130234' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.130756' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-28' AND "spree_variants"."id" != 1) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:18.132369"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.133013' WHERE "spree_products"."id" = 1 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.133483' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.133960' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.134504' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.134965' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (0.4ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:18.139584"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:18.139584"], ["variant_id", 1]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-6849' AND "spree_products"."id" != 1) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.150150' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:18.156560' WHERE "spree_line_items"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-8476' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-8476' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:18.162426"], ["created_at", "2014-12-02 23:04:18.166095"], ["description", "Molestiae dolorem quia recusandae aperiam et. Eligendi sit nulla dolorem ut esse. Facere nobis fugiat aut ea. Est sint assumenda tempore architecto et. Corporis aspernatur veritatis aut quis reiciendis est.\nEsse id tempore voluptatem delectus. Provident rerum qui ea deserunt consequatur iusto perferendis. Ut sit enim ad sequi sapiente.\nTemporibus fugiat quos laudantium sit placeat voluptates voluptatem numquam. Debitis exercitationem porro voluptatibus provident. Soluta culpa consequatur omnis exercitationem consequatur quisquam laborum consectetur. Id accusamus blanditiis distinctio totam dolore adipisci sit. Consequuntur distinctio aut ducimus facere nobis voluptas ad eveniet."], ["name", "Product #29 - 8476"], ["shipping_category_id", 1], ["slug", "product-29-8476"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:18.166095"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-29"], ["updated_at", "2014-12-02 23:04:18.168173"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.170121' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.171198' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.172411' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.172952' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:18.175871"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:18.175871"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.176842' WHERE "spree_variants"."id" = 2 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.177425' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.178557' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.179067' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.182975' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.183536' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.184047' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-29' AND "spree_variants"."id" != 2) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:18.185591"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.186333' WHERE "spree_products"."id" = 2 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.186812' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.187276' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.187832' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.188261' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:18.192926"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:18.192926"], ["variant_id", 2]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-8476' AND "spree_products"."id" != 2) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.198538' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:18.203992' WHERE "spree_line_items"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-8160' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-8160' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:18.210702"], ["created_at", "2014-12-02 23:04:18.214469"], ["description", "Architecto iusto quia aliquid molestiae neque. At omnis voluptatem qui delectus quia ut est vitae. Ea amet et ad rerum. Non repudiandae sed occaecati voluptas. Suscipit dolores cumque dignissimos ipsam.\nHic quo modi voluptatem ea qui aliquid occaecati voluptatem. Eum repudiandae enim dolores et nihil cupiditate rerum. Ab laboriosam odio eveniet quo cumque amet.\nCorporis quae vero ratione molestiae qui aliquid voluptatem porro. In sed et rerum sint reprehenderit repellat ipsa maxime. Nesciunt eos aliquid ut consectetur natus. Aperiam sit ipsa repellendus nostrum facilis temporibus provident. Quia et aut fuga est recusandae debitis excepturi vitae.\nVoluptatibus ab et delectus adipisci porro. Et voluptatem porro rerum aut sit. Rem dolores quaerat voluptas fugit quia.\nFuga modi aut architecto est quisquam velit. Eum soluta tenetur consectetur odio. Quia quae dolore minus placeat impedit voluptatibus. Enim culpa non vero temporibus exercitationem."], ["name", "Product #30 - 8160"], ["shipping_category_id", 1], ["slug", "product-30-8160"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:18.214469"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-30"], ["updated_at", "2014-12-02 23:04:18.216578"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.218448' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.219506' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.220695' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.221254' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:18.224089"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:18.224089"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.224971' WHERE "spree_variants"."id" = 3 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.225469' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.226514' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.227006' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.230867' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.231365' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.231876' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-30' AND "spree_variants"."id" != 3) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:18.233432"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.234068' WHERE "spree_products"."id" = 3 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.234507' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.234990' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.235550' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.235987' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:18.240547"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:18.240547"], ["variant_id", 3]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-8160' AND "spree_products"."id" != 3) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.246189' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:18.251815' WHERE "spree_line_items"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-31-3254' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-31-3254' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:18.257578"], ["created_at", "2014-12-02 23:04:18.261158"], ["description", "In nisi consectetur quo dolorem magnam modi consequuntur. Iusto delectus nihil sunt iure dolor. Nam doloremque iste quam laborum voluptatum veritatis. Voluptas voluptatem dicta esse tenetur et corporis. Ab molestiae harum quaerat non id.\nDolores fugit ut eum quam id doloribus numquam mollitia. Minus veritatis libero qui perferendis illum porro ut. Sint dolorem ut necessitatibus dolores tempore. Quo architecto nostrum est autem. Tenetur voluptate corrupti incidunt sunt.\nMinus aspernatur est quia qui. Consequatur possimus voluptas soluta dolores ea aut modi qui. Hic explicabo rerum accusamus et mollitia eos expedita. Placeat magnam a numquam voluptatem."], ["name", "Product #31 - 3254"], ["shipping_category_id", 1], ["slug", "product-31-3254"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:18.261158"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-31' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-31"], ["updated_at", "2014-12-02 23:04:18.263206"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.265079' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.266085' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.267351' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.267886' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:18.270672"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:18.270672"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.271542' WHERE "spree_variants"."id" = 4 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.272017' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.273074' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.273572' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.277362' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.277871' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.278404' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-31' AND "spree_variants"."id" != 4) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:18.279970"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.280608' WHERE "spree_products"."id" = 4 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.281048' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.281508' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.282045' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.282493' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:18.287159"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:18.287159"], ["variant_id", 4]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-31-3254' AND "spree_products"."id" != 4) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.292760' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:18.298289' WHERE "spree_line_items"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_stock_locations"  (0.0ms) SAVEPOINT active_record_1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-32-9562' LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-32-9562' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["available_on", "2013-12-02 23:04:18.303177"], ["created_at", "2014-12-02 23:04:18.306757"], ["description", "Consequatur sint totam eos nemo. Voluptatem recusandae autem facilis sequi ut velit qui. Et laborum aliquam vero eius nisi. Consequatur magni quas eum id consequuntur.\nAsperiores et fugit modi quis eum fuga. Sed iure atque expedita provident eos ipsam. Ut suscipit hic itaque illum expedita praesentium. Magni autem est esse laudantium."], ["name", "Product #32 - 9562"], ["shipping_category_id", 1], ["slug", "product-32-9562"], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:18.306757"]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-32' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-32"], ["updated_at", "2014-12-02 23:04:18.309134"]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.311398' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.312604' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.313902' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.314484' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 1 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:18.317632"], ["stock_location_id", 1], ["updated_at", "2014-12-02 23:04:18.317632"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.318637' WHERE "spree_variants"."id" = 5 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.319197' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.320405' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.320919' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.1ms) SELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' [["product_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.324953' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.325490' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.326023' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE ("spree_variants"."sku" = 'SKU-32' AND "spree_variants"."id" != 5) AND "spree_variants"."deleted_at" IS NULL LIMIT 1 SQL (0.1ms) UPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5 [["is_master", "t"], ["updated_at", "2014-12-02 23:04:18.327592"]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.328255' WHERE "spree_products"."id" = 5 SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.328684' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.329173' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.329729' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.330176' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::TaxCategory Load (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' SQL (0.2ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2014-12-02 23:04:18.334950"], ["currency", "USD"], ["order_id", 1], ["price", 10.0], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2014-12-02 23:04:18.334950"], ["variant_id", 5]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-32-9562' AND "spree_products"."id" != 5) LIMIT 1 SQL (0.2ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.345160' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:18.351844' WHERE "spree_line_items"."id" = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 Pennsylvania Ave NW"], ["backorderable_default", "t"], ["city", "Washington"], ["country_id", 1], ["created_at", "2014-12-02 23:04:18.356749"], ["name", "NY Warehouse"], ["phone", "(202) 456-1111"], ["state_id", 1], ["updated_at", "2014-12-02 23:04:18.356749"], ["zipcode", "20500"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 1 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:18.360384"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:18.360384"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.361370' WHERE "spree_variants"."id" = 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.362535' WHERE "spree_products"."id" = 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.363795' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.364346' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 2 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:18.366851"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:18.366851"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.367696' WHERE "spree_variants"."id" = 2 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.368740' WHERE "spree_products"."id" = 2 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.433781' WHERE 1=0 SQL (0.2ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.434376' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 3 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:18.437090"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:18.437090"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.437990' WHERE "spree_variants"."id" = 3 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.439119' WHERE "spree_products"."id" = 3 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.440271' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.440772' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 4 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:18.443173"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:18.443173"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.444011' WHERE "spree_variants"."id" = 4 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.445057' WHERE "spree_products"."id" = 4 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 4]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.446233' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.446837' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position) Spree::StockItem Exists (0.1ms) SELECT 1 AS one FROM "spree_stock_items" WHERE ("spree_stock_items"."variant_id" = 5 AND "spree_stock_items"."stock_location_id" = 2 AND "spree_stock_items"."deleted_at" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?) [["backorderable", "t"], ["created_at", "2014-12-02 23:04:18.449498"], ["stock_location_id", 2], ["updated_at", "2014-12-02 23:04:18.449498"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_variants" SET "updated_at" = '2014-12-02 23:04:18.450428' WHERE "spree_variants"."id" = 5 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2014-12-02 23:04:18.451504' WHERE "spree_products"."id" = 5 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 5]] SQL (0.1ms) UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 23:04:18.452657' WHERE 1=0 SQL (0.1ms) UPDATE "spree_taxonomies" SET "updated_at" = '2014-12-02 23:04:18.453171' WHERE "spree_taxonomies"."id" IN (SELECT "spree_taxonomies"."id" FROM "spree_taxonomies" WHERE 1=0 ORDER BY spree_taxonomies.position)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H50120021134%') SQL (0.1ms) INSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:18.455721"], ["number", "H50120021134"], ["order_id", 1], ["state", "pending"], ["stock_location_id", 2], ["tracking", "U10000"], ["updated_at", "2014-12-02 23:04:18.455721"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.456673' WHERE "spree_orders"."id" = 1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-12-02 23:04:18.459780' WHERE "spree_shipments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries"  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.463861"], ["description", "Corporis voluptatem velit temporibus maxime facere et nesciunt non."], ["name", "GlobalZone"], ["updated_at", "2014-12-02 23:04:18.463861"]] Spree::ZoneMember Exists (0.0ms) SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] SQL (0.1ms) INSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.465234"], ["updated_at", "2014-12-02 23:04:18.465234"], ["zone_id", 1], ["zoneable_id", 1], ["zoneable_type", "Spree::Country"]] SQL (0.1ms) UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country') [["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-02 23:04:18.473713"], ["name", "UPS Ground"], ["updated_at", "2014-12-02 23:04:18.473713"]] SQL (0.1ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"], ["created_at", "2014-12-02 23:04:18.474521"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2014-12-02 23:04:18.474521"]] SQL (0.1ms) INSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.475854"], ["shipping_category_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:18.475854"]] SQL (0.1ms) INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 100.0], ["created_at", "2014-12-02 23:04:18.478578"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:18.478578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.482240"], ["line_item_id", 1], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:18.482240"], ["variant_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:18.483015' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.483594' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.484978"], ["line_item_id", 2], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:18.484978"], ["variant_id", 2]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:18.485628' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.486114' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.487482"], ["line_item_id", 3], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:18.487482"], ["variant_id", 3]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:18.488107' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.488892' WHERE "spree_orders"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.490214"], ["line_item_id", 4], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:18.490214"], ["variant_id", 4]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:18.490861' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.491307' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.492642"], ["line_item_id", 5], ["shipment_id", 1], ["state", "on_hand"], ["updated_at", "2014-12-02 23:04:18.492642"], ["variant_id", 5]] SQL (0.1ms) UPDATE "spree_shipments" SET "updated_at" = '2014-12-02 23:04:18.493317' WHERE "spree_shipments"."id" = 1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.493791' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:18.502155' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (1) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.521624"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:18.521624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 2 [["selected", "t"], ["updated_at", "2014-12-02 23:04:18.524948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.526539' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "completed_at" = '2014-12-02 23:04:18.527152' WHERE "spree_orders"."id" = 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.530656"], ["environment", "test"], ["name", "Credit Card"], ["preferences", "---\n:server: test\n:test_mode: true\n"], ["type", "Spree::Gateway::Bogus"], ["updated_at", "2014-12-02 23:04:18.530656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.532717"], ["last_digits", "1111"], ["month", 12], ["name", "Spree Commerce"], ["updated_at", "2014-12-02 23:04:18.532717"], ["year", 2014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XCEZNMJT' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 150.0], ["created_at", "2014-12-02 23:04:18.534406"], ["identifier", "XCEZNMJT"], ["order_id", 1], ["payment_method_id", 1], ["response_code", "12345"], ["source_id", 1], ["source_type", "Spree::CreditCard"], ["state", "checkout"], ["updated_at", "2014-12-02 23:04:18.534406"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.536650' WHERE "spree_orders"."id" = 1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."gateway_customer_profile_id" = 'BGS-555144' ORDER BY "spree_credit_cards"."id" ASC LIMIT 1 SQL (0.0ms) UPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1 [["gateway_customer_profile_id", "BGS-555144"], ["updated_at", "2014-12-02 23:04:18.537901"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.540785"], ["name", "payment"], ["next_state", "balance_due"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:18.540785"], ["user_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:18.542581' WHERE "spree_shipments"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (2) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.560211"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:18.560211"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 3]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 3 [["selected", "t"], ["updated_at", "2014-12-02 23:04:18.563364"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.564869' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:18.567136' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.568758"], ["name", "shipment"], ["next_state", "pending"], ["stateful_id", 1], ["stateful_type", "Spree::Order"], ["updated_at", "2014-12-02 23:04:18.568758"], ["user_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:18.569534' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_payments" SET "state" = ?, "updated_at" = ? WHERE "spree_payments"."id" = 1 [["state", "pending"], ["updated_at", "2014-12-02 23:04:18.571949"]] Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.573131' WHERE "spree_orders"."id" = 1 Spree::PaymentMethod Load (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:18.579733' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]] SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (3) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.599928"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:18.599928"]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 4]] SQL (0.0ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 4 [["selected", "t"], ["updated_at", "2014-12-02 23:04:18.603012"]] SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.604704' WHERE "spree_orders"."id" = 1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:18.606935' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 100.0, "promo_total" = 0.0, "total" = 150.0, "updated_at" = '2014-12-02 23:04:18.608075' WHERE "spree_orders"."id" = 1 SQL (0.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.609567"], ["name", "payment"], ["next_state", "pending"], ["previous_state", "checkout"], ["stateful_id", 1], ["stateful_type", "Spree::Payment"], ["updated_at", "2014-12-02 23:04:18.609567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XCEZNMJT' ORDER BY spree_payments.created_at LIMIT 1 Spree::Order Load (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]]  (0.0ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))  (0.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]  (0.0ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]]  (0.0ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) [["order_id", 1]] Spree::Shipment Load (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] SQL (0.1ms) UPDATE "spree_shipments" SET "state" = 'pending', "updated_at" = '2014-12-02 23:04:18.622690' WHERE "spree_shipments"."id" = 1 Spree::Address Load (0.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 2]] Spree::Country Load (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::StockLocation Load (0.0ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 2]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (1, 2, 3, 4, 5) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] Spree::ShippingCategory Load (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.0ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.0ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::ShippingRate Load (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" IN (4) [["shipment_id", 1]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-02 23:04:18.642293"], ["selected", "t"], ["shipment_id", 1], ["shipping_method_id", 1], ["updated_at", "2014-12-02 23:04:18.642293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingMethod Load (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 1], ["id", 5]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 5 [["selected", "t"], ["updated_at", "2014-12-02 23:04:18.645588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "spree_orders" SET "updated_at" = '2014-12-02 23:04:18.647415' WHERE "spree_orders"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] Spree::Adjustment Load (0.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0.0, "adjustment_total" = 0, "updated_at" = '2014-12-02 23:04:18.649709' WHERE "spree_shipments"."id" = 1  (0.0ms) SELECT "spree_shipments"."state" FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] SQL (0.1ms) UPDATE "spree_orders" SET "payment_state" = 'balance_due', "shipment_state" = 'pending', "item_total" = 50.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 50.0, "updated_at" = '2014-12-02 23:04:18.650778' WHERE "spree_orders"."id" = 1 Spree::Payment Load (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."id" = ? LIMIT 1 [["id", 1]]  (148.0ms) rollback transaction